Skip to content

Commit

Permalink
Define some symbols as weak so they can be redefined in Clover
Browse files Browse the repository at this point in the history
(MemoryTracker)
  • Loading branch information
jief committed Nov 20, 2023
1 parent 6ac9ed1 commit f80e377
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
@return A pointer to the allocated buffer or NULL if allocation fails.
**/
__attribute__((weak))
VOID *
InternalAllocatePages (
IN EFI_MEMORY_TYPE MemoryType,
Expand Down Expand Up @@ -132,6 +133,7 @@ AllocateReservedPages (
@param Pages The number of 4 KB pages to free.
**/
__attribute__((weak))
VOID
EFIAPI
FreePages (
Expand Down Expand Up @@ -170,6 +172,7 @@ FreePages (
@return A pointer to the allocated buffer or NULL if allocation fails.
**/
__attribute__((weak))
VOID *
InternalAllocateAlignedPages (
IN EFI_MEMORY_TYPE MemoryType,
Expand Down Expand Up @@ -351,6 +354,7 @@ AllocateAlignedReservedPages (
@param Pages The number of 4 KB pages to free.
**/
__attribute__((weak))
VOID
EFIAPI
FreeAlignedPages (
Expand Down Expand Up @@ -381,6 +385,7 @@ FreeAlignedPages (
@return A pointer to the allocated buffer or NULL if allocation fails.
**/
__attribute__((weak))
VOID *
InternalAllocatePool (
IN EFI_MEMORY_TYPE MemoryType,
Expand Down Expand Up @@ -832,6 +837,7 @@ ReallocateReservedPool (
@param Buffer The pointer to the buffer to free.
**/
__attribute__((weak))
VOID
EFIAPI
FreePool(
Expand Down

0 comments on commit f80e377

Please sign in to comment.