]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - gcc/patches/gcc46-no-add-needed.patch0
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / gcc / patches / gcc46-no-add-needed.patch0
1 2010-02-08 Roland McGrath <roland@redhat.com>
2
3 * config/rs6000/sysv4.h (LINK_EH_SPEC): Pass --no-add-needed to the
4 linker.
5 * config/gnu-user.h (LINK_EH_SPEC): Likewise.
6 * config/alpha/elf.h (LINK_EH_SPEC): Likewise.
7 * config/ia64/linux.h (LINK_EH_SPEC): Likewise.
8
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
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
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
22 @@ -82,7 +82,7 @@ do { \
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
29 #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"
30
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
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
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
44 @@ -869,7 +869,7 @@ extern int fixuplabelno;
45 -dynamic-linker " LINUX_DYNAMIC_LINKER "}}"
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__ \