1 Do not pass -dynamic-linker to linker when !shared.
2 Fixes <http://bugs.gnu.org/20102>.
4 ARM 'link' spec issue reported at
5 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65711 and
6 https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01387.html.
8 Patch by Ludovic Courtès <ludo@gnu.org>.
10 --- gcc-4.8.4/gcc/config/arm/linux-elf.h.orig 2015-04-08 20:31:20.376900478 +0200
11 +++ gcc-4.8.4/gcc/config/arm/linux-elf.h 2015-04-08 20:31:36.437014437 +0200
13 %{symbolic:-Bsymbolic} \
15 %{rdynamic:-export-dynamic} \
16 - -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
17 + %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
19 %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
20 SUBTARGET_EXTRA_LINK_SPEC