]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the dynamic linker commands for...
authorBen Cheng <bccheng@google.com>
Mon, 17 Sep 2012 17:33:05 +0000 (17:33 +0000)
committerJing Yu <jingyu@gcc.gnu.org>
Mon, 17 Sep 2012 17:33:05 +0000 (17:33 +0000)
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.

From-SVN: r191401

gcc/ChangeLog
gcc/config/arm/linux-elf.h

index bc8257c052b66fe4baba8dea987d8cee288630d4..c6e6b54ce978db6510d632a350638c182b18775f 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2012-09-17  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
index 82b4bfc7b74ac39c532556cb66a1f34ddc66a1b7..63b0606327d69f6284d9bf28e45123116be51b6f 100644 (file)
@@ -65,8 +65,9 @@
    %{static:-Bstatic} \
    %{shared:-shared} \
    %{symbolic:-Bsymbolic} \
-   %{rdynamic:-export-dynamic} \
-   -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
+   %{!static: \
+     %{rdynamic:-export-dynamic} \
+     -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
    -X \
    %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
    SUBTARGET_EXTRA_LINK_SPEC