aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-04-12 11:37:25 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-04-12 11:37:25 +0800
commit6706e57f51bf3a953d26071ef98a93cd2173d0a2 (patch)
treec0b4fddff4d0321edf67b76f040d129d8a411db1 /gcc-4.6
parent5d65342898686feb3faceb3beb10529501d67b48 (diff)
downloadtoolchain_gcc-6706e57f51bf3a953d26071ef98a93cd2173d0a2.zip
toolchain_gcc-6706e57f51bf3a953d26071ef98a93cd2173d0a2.tar.gz
toolchain_gcc-6706e57f51bf3a953d26071ef98a93cd2173d0a2.tar.bz2
Fix GCC4.4.3/4.6/4.7 to supress -export-dynamic for statically linked programs
r191401 | jingyu | 2012-09-18 01:33:05 +0800 (Tue, 18 Sep 2012) | 6 lines 2012-09-17 Ben Cheng <bccheng@google.com * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the dynamic linker commands for statically linked programs. Change-Id: Ib8a27fb054ddb12242d500ef8b3ceb2b0215cb3e
Diffstat (limited to 'gcc-4.6')
-rw-r--r--gcc-4.6/gcc/config/arm/linux-elf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.6/gcc/config/arm/linux-elf.h b/gcc-4.6/gcc/config/arm/linux-elf.h
index e74a02e..587e284 100644
--- a/gcc-4.6/gcc/config/arm/linux-elf.h
+++ b/gcc-4.6/gcc/config/arm/linux-elf.h
@@ -68,8 +68,9 @@
%{static:-Bstatic} \
%{shared:-shared} \
%{symbolic:-Bsymbolic} \
- %{rdynamic:-export-dynamic} \
- -dynamic-linker " LINUX_DYNAMIC_LINKER " \
+ %{!static: \
+ %{rdynamic:-export-dynamic} \
+ -dynamic-linker " LINUX_DYNAMIC_LINKER "} \
-X \
%{mbig-endian:-EB} %{mlittle-endian:-EL}" \
SUBTARGET_EXTRA_LINK_SPEC