diff mbox series

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

Message ID 20180612152306.25998-3-ard.biesheuvel@linaro.org
State New
Headers show
Series GCC/X64: use hidden visibility for LTO PIE code | expand

Commit Message

Ard Biesheuvel June 12, 2018, 3:22 p.m. UTC
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(+)

-- 
2.17.1

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

Patch

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
   )