]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - gcc/patches/gcc47-no-add-needed.patch0
Merge remote-tracking branch 'stevee/openvswitch-systemd'
[people/amarx/ipfire-3.x.git] / gcc / patches / gcc47-no-add-needed.patch0
CommitLineData
23dbe6d7
MT
12010-02-08 Roland McGrath <roland@redhat.com>
2
3 * config/rs6000/sysv4.h (LINK_EH_SPEC): Pass --no-add-needed to the
4 linker.
3c926509 5 * config/gnu-user.h (LINK_EH_SPEC): Likewise.
23dbe6d7
MT
6 * config/alpha/elf.h (LINK_EH_SPEC): Likewise.
7 * config/ia64/linux.h (LINK_EH_SPEC): Likewise.
8
3c926509
MT
9--- gcc/config/alpha/elf.h.jj 2011-01-03 12:52:31.118056764 +0100
10+++ gcc/config/alpha/elf.h 2011-01-04 18:14:10.931874160 +0100
11@@ -438,7 +438,7 @@ extern int alpha_this_gpdisp_sequence_nu
23dbe6d7
MT
12 I imagine that other systems will catch up. In the meantime, it
13 doesn't harm to make sure that the data exists to be used later. */
14 #if defined(HAVE_LD_EH_FRAME_HDR)
15-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
16+#define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} "
17 #endif
18
19 /* A C statement (sans semicolon) to output to the stdio stream STREAM
3c926509
MT
20--- gcc/config/ia64/linux.h.jj 2011-01-03 13:02:11.462994522 +0100
21+++ gcc/config/ia64/linux.h 2011-01-04 18:14:10.931874160 +0100
4de56d3e 22@@ -77,7 +77,7 @@ do { \
23dbe6d7
MT
23 Signalize that because we have fde-glibc, we don't need all C shared libs
24 linked against -lgcc_s. */
25 #undef LINK_EH_SPEC
26-#define LINK_EH_SPEC ""
27+#define LINK_EH_SPEC "--no-add-needed "
28
4de56d3e
MT
29 /* Put all *tf routines in libgcc. */
30 #undef LIBGCC2_HAS_TF_MODE
3c926509
MT
31--- gcc/config/gnu-user.h.jj 2011-01-03 12:53:03.739057299 +0100
32+++ gcc/config/gnu-user.h 2011-01-04 18:14:10.932814884 +0100
33@@ -82,7 +82,7 @@ see the files COPYING3 and COPYING.RUNTI
34 #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
23dbe6d7
MT
35
36 #if defined(HAVE_LD_EH_FRAME_HDR)
37-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
38+#define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} "
39 #endif
40
3c926509
MT
41 #undef LINK_GCC_C_SEQUENCE_SPEC
42--- gcc/config/rs6000/sysv4.h.jj 2011-01-03 13:02:18.255994215 +0100
43+++ gcc/config/rs6000/sysv4.h 2011-01-04 18:14:10.933888871 +0100
4de56d3e
MT
44@@ -820,7 +820,7 @@ extern int fixuplabelno;
45 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
23dbe6d7
MT
46
47 #if defined(HAVE_LD_EH_FRAME_HDR)
48-# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
49+# define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} "
50 #endif
51
52 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \