~ubuntu-branches/ubuntu/raring/gcc-4.7/raring

« back to all changes in this revision

Viewing changes to debian/patches/gcc-no-add-needed.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-12-17 23:19:46 UTC
  • Revision ID: package-import@ubuntu.com-20111217231946-n668coanjbjgqxq7
Tags: 4.7-20111217-1
* GCC-4.7 snapshot build.
  - Including the GFDL documentation; will stay in experimental
    until the 4.7.0 release sometime next year.
* Update patches for the trunk.
* Update symbols files.
* Build libitm packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: On linux targets pass --no-add-needed to the linker.
 
2
 
 
3
2010-02-08  Roland McGrath  <roland@redhat.com>
 
4
 
 
5
        * config/rs6000/sysv4.h (LINK_EH_SPEC): Pass --no-add-needed to the
 
6
        linker.
 
7
        * config/linux.h (LINK_EH_SPEC): Likewise.
 
8
        * config/alpha/elf.h (LINK_EH_SPEC): Likewise.
 
9
        * config/ia64/linux.h (LINK_EH_SPEC): Likewise.
 
10
 
 
11
--- a/src/gcc/config/rs6000/sysv4.h
 
12
+++ b/src/gcc/config/rs6000/sysv4.h
 
13
@@ -836,7 +836,7 @@
 
14
 
 
15
 #if defined(HAVE_LD_EH_FRAME_HDR)
 
16
 # undef  LINK_EH_SPEC
 
17
-# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
 
18
+# define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} "
 
19
 #endif
 
20
 
 
21
 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
 
22
--- a/src/gcc/config/gnu-user.h
 
23
+++ b/src/gcc/config/gnu-user.h
 
24
@@ -82,7 +82,9 @@
 
25
 #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
 
26
 
 
27
 #if defined(HAVE_LD_EH_FRAME_HDR)
 
28
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
 
29
+#define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} "
 
30
+#else
 
31
+#define LINK_EH_SPEC "--no-add-needed "
 
32
 #endif
 
33
 
 
34
 #undef LINK_GCC_C_SEQUENCE_SPEC
 
35
--- a/src/gcc/config/alpha/elf.h
 
36
+++ b/src/gcc/config/alpha/elf.h
 
37
@@ -438,7 +438,7 @@
 
38
    I imagine that other systems will catch up.  In the meantime, it
 
39
    doesn't harm to make sure that the data exists to be used later.  */
 
40
 #if defined(HAVE_LD_EH_FRAME_HDR)
 
41
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
 
42
+#define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} "
 
43
 #endif
 
44
 
 
45
 /* A C statement (sans semicolon) to output to the stdio stream STREAM
 
46
--- a/src/gcc/config/ia64/linux.h
 
47
+++ b/src/gcc/config/ia64/linux.h
 
48
@@ -82,7 +82,7 @@
 
49
    Signalize that because we have fde-glibc, we don't need all C shared libs
 
50
    linked against -lgcc_s.  */
 
51
 #undef LINK_EH_SPEC
 
52
-#define LINK_EH_SPEC ""
 
53
+#define LINK_EH_SPEC "--no-add-needed "
 
54
 
 
55
 #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"
 
56