diff mbox series

[edk2,RFC,04/11] EmbeddedPkg: annotate module entry points with EFI_ENTRYPOINT

Message ID 20180612152306.25998-5-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>

---
 EmbeddedPkg/TemplateSec/TemplateSec.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/EmbeddedPkg/TemplateSec/TemplateSec.c b/EmbeddedPkg/TemplateSec/TemplateSec.c
index c63adbb6f90f..09bc779aced3 100644
--- a/EmbeddedPkg/TemplateSec/TemplateSec.c
+++ b/EmbeddedPkg/TemplateSec/TemplateSec.c
@@ -21,6 +21,7 @@ 
 #include <Ppi/GuidedSectionExtraction.h>
 
 VOID
+EFI_ENTRYPOINT
 _ModuleEntryPoint (
   VOID
   )