diff mbox series

[edk2,RFC,07/11] MdeModulePkg: annotate module entry points with EFI_ENTRYPOINT

Message ID 20180612152306.25998-8-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:23 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>

---
 MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c | 1 +
 1 file changed, 1 insertion(+)

-- 
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/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c b/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c
index e1871c3c2ad5..0dc0b819e57e 100644
--- a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c
+++ b/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c
@@ -219,6 +219,7 @@  PageFaultHandler (
 **/
 EFI_STATUS
 EFIAPI
+EFI_ENTRYPOINT
 _ModuleEntryPoint (
   SWITCH_32_TO_64_CONTEXT       *EntrypointContext,
   SWITCH_64_TO_32_CONTEXT       *ReturnContext