summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.3.3/gcc43-build-id.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.3.3/gcc43-build-id.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.3.3/gcc43-build-id.patch74
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.3.3/gcc43-build-id.patch b/meta/recipes-devtools/gcc/gcc-4.3.3/gcc43-build-id.patch
new file mode 100644
index 0000000000..4e162e6472
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.3.3/gcc43-build-id.patch
@@ -0,0 +1,74 @@
12007-07-22 Roland McGrath <roland@redhat.com>
2
3 * config/rs6000/sysv4.h (LINK_EH_SPEC): Add --build-id for
4 non-relocatable link.
5 * config/linux.h (LINK_EH_SPEC): Likewise.
6 * config/sparc/linux.h (LINK_EH_SPEC): Likewise.
7 * config/sparc/linux64.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--- gcc/config/rs6000/sysv4.h.~1~
12+++ gcc/config/rs6000/sysv4.h
13@@ -1044,7 +1044,7 @@ extern int fixuplabelno;
14 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
15
16 #if defined(HAVE_LD_EH_FRAME_HDR)
17-# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
18+# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
19 #endif
20
21 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
22--- gcc/config/linux.h.~1~
23+++ gcc/config/linux.h
24@@ -85,7 +85,7 @@ Boston, MA 02110-1301, USA. */
25 } while (0)
26
27 #if defined(HAVE_LD_EH_FRAME_HDR)
28-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
29+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
30 #endif
31
32 /* Define this so we can compile MS code for use with WINE. */
33--- gcc/config/sparc/linux64.h.~1~
34+++ gcc/config/sparc/linux64.h
35@@ -316,7 +316,7 @@ do { \
36 #define DITF_CONVERSION_LIBFUNCS 1
37
38 #if defined(HAVE_LD_EH_FRAME_HDR)
39-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
40+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
41 #endif
42
43 #ifdef HAVE_AS_TLS
44--- gcc/config/sparc/linux.h.~1~
45+++ gcc/config/sparc/linux.h
46@@ -188,7 +188,7 @@ do { \
47 #define DITF_CONVERSION_LIBFUNCS 1
48
49 #if defined(HAVE_LD_EH_FRAME_HDR)
50-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
51+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
52 #endif
53
54 #ifdef HAVE_AS_TLS
55--- gcc/config/alpha/elf.h.~1~
56+++ gcc/config/alpha/elf.h
57@@ -453,5 +453,5 @@ extern int alpha_this_gpdisp_sequence_nu
58 I imagine that other systems will catch up. In the meantime, it
59 doesn't harm to make sure that the data exists to be used later. */
60 #if defined(HAVE_LD_EH_FRAME_HDR)
61-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
62+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
63 #endif
64--- gcc/config/ia64/linux.h.~1~
65+++ gcc/config/ia64/linux.h
66@@ -56,7 +56,7 @@ do { \
67 Signalize that because we have fde-glibc, we don't need all C shared libs
68 linked against -lgcc_s. */
69 #undef LINK_EH_SPEC
70-#define LINK_EH_SPEC ""
71+#define LINK_EH_SPEC "%{!r:--build-id} "
72
73 #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"
74