]> granicus.if.org Git - clang/commitdiff
[libclang] Don't set dylib load address to 0xe000000.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 20 Apr 2012 22:07:11 +0000 (22:07 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 20 Apr 2012 22:07:11 +0000 (22:07 +0000)
Per Greg Clayton:
libclang.dylib is trying to be smart and load itself at a valid address
to be able to load faster which would work for 32 bit systems,
bit won't make any difference on 64 bit systems.
It should either pick a better 64 bit address, or just let itself be loaded at zero.

rdar://11159142

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

tools/libclang/CMakeLists.txt
tools/libclang/Makefile

index fb0b91f00d753e5747c64ad1b72eeafcdb542de5..650bcd863c51e0c30de655245c2fb4fd4b9d1683 100644 (file)
@@ -61,7 +61,7 @@ if( LLVM_ENABLE_PIC )
 
   if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
     set(LIBCLANG_LINK_FLAGS
-      "-Wl,-compatibility_version -Wl,1 -Wl,-dead_strip -Wl,-seg1addr -Wl,0xE0000000")
+      "-Wl,-compatibility_version -Wl,1 -Wl,-dead_strip")
     set_target_properties(libclang
       PROPERTIES
       LINK_FLAGS "${LIBCLANG_LINK_FLAGS}"
index f2d29ee6ecf16ff5ad751f9b7d6424d92ad8e902..e0187afd9234de3deec17745f488aa6f41d1d4d5 100644 (file)
@@ -42,7 +42,7 @@ ifeq ($(HOST_OS),Darwin)
     endif
 
     # Extra options to override libtool defaults.
-    LLVMLibsOptions += -Wl,-dead_strip -Wl,-seg1addr,0xE0000000 
+    LLVMLibsOptions += -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/')