From f80e3774c46a6ac8fca9fb76c2f789e3e120f944 Mon Sep 17 00:00:00 2001 From: jief Date: Mon, 20 Nov 2023 20:01:37 +0100 Subject: [PATCH] Define some symbols as weak so they can be redefined in Clover (MemoryTracker) --- .../Library/UefiMemoryAllocationLib/MemoryAllocationLib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c b/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c index 6d9006d9a..3d68be974 100644 --- a/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c +++ b/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c @@ -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, @@ -132,6 +133,7 @@ AllocateReservedPages ( @param Pages The number of 4 KB pages to free. **/ +__attribute__((weak)) VOID EFIAPI FreePages ( @@ -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, @@ -351,6 +354,7 @@ AllocateAlignedReservedPages ( @param Pages The number of 4 KB pages to free. **/ +__attribute__((weak)) VOID EFIAPI FreeAlignedPages ( @@ -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, @@ -832,6 +837,7 @@ ReallocateReservedPool ( @param Buffer The pointer to the buffer to free. **/ +__attribute__((weak)) VOID EFIAPI FreePool(