[edk2] [RFC PATCH 02/11] DuetPkg: annotate module entry points with EFI_ENTRYPOINT

Ard Biesheuvel posted 11 patches 6 years, 2 months ago
[edk2] [RFC PATCH 02/11] DuetPkg: annotate module entry points with EFI_ENTRYPOINT
Posted by Ard Biesheuvel 6 years, 2 months ago
Annotate module entry points with EFI_ENTRYPOINT so we can classify
the resulting symbol as global explicitly at link time.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 DuetPkg/DxeIpl/DxeInit.c   | 1 +
 DuetPkg/EfiLdr/EfiLoader.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/DuetPkg/DxeIpl/DxeInit.c b/DuetPkg/DxeIpl/DxeInit.c
index b9a40a8209c1..9c86279c17c1 100644
--- a/DuetPkg/DxeIpl/DxeInit.c
+++ b/DuetPkg/DxeIpl/DxeInit.c
@@ -269,6 +269,7 @@ Returns:
 
 EFI_STATUS
 EFIAPI
+EFI_ENTRYPOINT
 _ModuleEntryPoint (
   IN EFILDRHANDOFF  *Handoff
   )
diff --git a/DuetPkg/EfiLdr/EfiLoader.c b/DuetPkg/EfiLdr/EfiLoader.c
index ac950b55fa6d..89c8ff3885ff 100644
--- a/DuetPkg/EfiLdr/EfiLoader.c
+++ b/DuetPkg/EfiLdr/EfiLoader.c
@@ -282,6 +282,7 @@ PrintHeader ('F');
 
 EFI_STATUS
 EFIAPI
+EFI_ENTRYPOINT
 _ModuleEntryPoint (
   UINT32    BiosMemoryMapBaseAddress
   )
-- 
2.17.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel