]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StandaloneMmPkg/Core/StandaloneMmCore.inf
StandaloneMmPkg: generate position independent code for StMM core
[mirror_edk2.git] / StandaloneMmPkg / Core / StandaloneMmCore.inf
index d17ff9965bdcd0ff506c841dd1feb4ee3b586273..87bf6e9440a77b3c737a439be07896e2fcb406a2 100644 (file)
@@ -75,3 +75,7 @@
   gEfiEventLegacyBootGuid\r
   gEfiEventExitBootServicesGuid\r
   gEfiEventReadyToBootGuid\r
+\r
+[BuildOptions]\r
+  GCC:*_*_*_CC_FLAGS = -fpie\r
+  GCC:*_*_*_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\r