Remove "-Wl,-seg1addr -Wl,0xE0000000" from link options.
authorBob Wilson <bob.wilson@apple.com>
Tue, 4 Jun 2013 15:26:37 +0000 (15:26 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 4 Jun 2013 15:26:37 +0000 (15:26 +0000)
Specifying the load address for Darwin i386 dylibs was a performance
optimization for dyld that is not relevant for x86_64 or arm. We can just
remove this now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183230 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libprofile/Makefile
tools/llvm-shlib/Makefile
tools/lto/Makefile

index 6c3701b268716e2b5a688cd182b8798dc4cbedf1..b82e995ced34319cc21c86941f82588f1640764f 100644 (file)
@@ -35,8 +35,7 @@ ifeq ($(HOST_OS),Darwin)
     endif
     # Extra options to override libtool defaults.
     LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -Wl,-dead_strip \
-                         -Wl,-seg1addr -Wl,0xE0000000 
+                         -Wl,-dead_strip
 
     # Mac OS X 10.4 and earlier tools do not allow a second -install_name on
     # command line.
index 6d6c6e9f14be50aca9b9bfc097921ed04f760d21..8697bbfb7a9fdaa0d12d2144d0b693603f35b967 100644 (file)
@@ -51,8 +51,7 @@ ifeq ($(HOST_OS),Darwin)
     LLVMLibsOptions    := $(LLVMLibsOptions) -all_load
     # extra options to override libtool defaults 
     LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -Wl,-dead_strip \
-                         -Wl,-seg1addr -Wl,0xE0000000 
+                         -Wl,-dead_strip
 
     # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
index ab2e16e5fab625cf22ed892916d96f7240045dd1..30719f49b1dfbbfe6f9584d4836e98f37f62e162 100644 (file)
@@ -39,8 +39,7 @@ ifeq ($(HOST_OS),Darwin)
     endif
     # extra options to override libtool defaults 
     LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -Wl,-dead_strip \
-                         -Wl,-seg1addr -Wl,0xE0000000 
+                         -Wl,-dead_strip
 
     # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')