summaryrefslogtreecommitdiff
path: root/BaseTools/Conf/tools_def.template
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-19 14:55:41 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-19 14:55:41 +0000
commit8a83f2c897818c4f4e509fbc8d69176fd8241d72 (patch)
treed369cb32540d3a829db9ecb35397452cfadab7db /BaseTools/Conf/tools_def.template
parentfba0ee1f4cfd80ae2ac2ae5b82a01a17c72dfef5 (diff)
downloadedk2-8a83f2c897818c4f4e509fbc8d69176fd8241d72.zip
edk2-8a83f2c897818c4f4e509fbc8d69176fd8241d72.tar.gz
edk2-8a83f2c897818c4f4e509fbc8d69176fd8241d72.tar.bz2
use -pie(Position Independent for executable file) instead of "-dll". A EFI image generated by UNIXGCC tool chain should be relocated when loaded.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7911 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Conf/tools_def.template')
-rw-r--r--BaseTools/Conf/tools_def.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
index 5658268..b52db99 100644
--- a/BaseTools/Conf/tools_def.template
+++ b/BaseTools/Conf/tools_def.template
@@ -424,7 +424,7 @@ RELEASE_WINDDK3790x1830_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT
# UINIXGCC - UINIX GCC
*_UNIXGCC_*_*_FAMILY = GCC
-*_UNIXGCC_*_DLINK_FLAGS = -nostdlib -s --dll --entry _$(IMAGE_ENTRY_POINT) --file-alignment 0x20 --section-alignment 0x20 -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map --image-base 0x0
+*_UNIXGCC_*_DLINK_FLAGS = -nostdlib -s --pie --entry _$(IMAGE_ENTRY_POINT) --file-alignment 0x20 --section-alignment 0x20 -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map --image-base 0x0
*_UNIXGCC_*_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
*_UNIXGCC_*_PP_FLAGS = -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
*_UNIXGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include $(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h