summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/gcc-hash-style-gnu.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/gcc-hash-style-gnu.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/gcc-hash-style-gnu.dpatch163
1 files changed, 163 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/gcc-hash-style-gnu.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/gcc-hash-style-gnu.dpatch
new file mode 100644
index 0000000000..8c6e2691b1
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/gcc-hash-style-gnu.dpatch
@@ -0,0 +1,163 @@
1#! /bin/sh -e
2
3# DP: Link using --hash-style=gnu (alpha, amd64, ia64, i386, powerpc, ppc64, s390, sparc)
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 #cd ${dir}gcc && autoconf
17 ;;
18 -unpatch)
19 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
20 #rm ${dir}gcc/configure
21 ;;
22 *)
23 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
24 exit 1
25esac
26exit 0
27
282006-07-11 Jakub Jelinek <jakub@redhat.com>
29
30 * config/i386/linux.h (LINK_SPEC): Add --hash-style=gnu.
31 * config/i386/linux64.h (LINK_SPEC): Likewise.
32 * config/rs6000/sysv4.h (LINK_OS_LINUX_SPEC): Likewise.
33 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
34 LINK_OS_LINUX_SPEC64): Likewise.
35 * config/s390/linux.h (LINK_SPEC): Likewise.
36 * config/ia64/linux.h (LINK_SPEC): Likewise.
37 * config/sparc/linux.h (LINK_SPEC): Likewise.
38 * config/sparc/linux64.h (LINK_SPEC, LINK_ARCH32_SPEC,
39 LINK_ARCH64_SPEC): Likewise.
40 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
41
42--- gcc/config/alpha/linux-elf.h.orig 2007-09-01 15:49:36.997832511 +0200
43+++ gcc/config/alpha/linux-elf.h 2007-09-01 15:49:48.538006592 +0200
44@@ -39,7 +39,7 @@
45
46 #define ELF_DYNAMIC_LINKER LINUX_DYNAMIC_LINKER
47
48-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
49+#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax} \
50 %{O*:-O3} %{!O*:-O1} \
51 %{shared:-shared} \
52 %{!shared: \
53--- gcc/config/s390/linux.h.orig 2007-09-01 15:49:36.997832511 +0200
54+++ gcc/config/s390/linux.h 2007-09-01 15:49:48.548006743 +0200
55@@ -77,7 +77,7 @@
56
57 #undef LINK_SPEC
58 #define LINK_SPEC \
59- "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
60+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
61 %{shared:-shared} \
62 %{!shared: \
63 %{static:-static} \
64--- gcc/config/sparc/linux.h.orig 2007-09-01 15:49:36.997832511 +0200
65+++ gcc/config/sparc/linux.h 2007-09-01 15:49:48.548006743 +0200
66@@ -132,7 +132,7 @@
67
68
69 #undef LINK_SPEC
70-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
71+#define LINK_SPEC "-m elf32_sparc --hash-style=gnu -Y P,/usr/lib %{shared:-shared} \
72 %{!mno-relax:%{!r:-relax}} \
73 %{!shared: \
74 %{!ibcs: \
75--- gcc/config/sparc/linux64.h.orig 2007-09-01 15:49:36.997832511 +0200
76+++ gcc/config/sparc/linux64.h 2007-09-01 15:49:48.548006743 +0200
77@@ -166,7 +166,7 @@
78 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
79 { "link_arch", LINK_ARCH_SPEC },
80
81-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
82+#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=gnu -Y P,/usr/lib %{shared:-shared} \
83 %{!shared: \
84 %{!ibcs: \
85 %{!static: \
86@@ -175,7 +175,7 @@
87 %{static:-static}}} \
88 "
89
90-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
91+#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=gnu -Y P,/usr/lib64 %{shared:-shared} \
92 %{!shared: \
93 %{!ibcs: \
94 %{!static: \
95@@ -256,7 +256,7 @@
96 #else /* !SPARC_BI_ARCH */
97
98 #undef LINK_SPEC
99-#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
100+#define LINK_SPEC "-m elf64_sparc --hash-style=gnu -Y P,/usr/lib64 %{shared:-shared} \
101 %{!shared: \
102 %{!ibcs: \
103 %{!static: \
104--- gcc/config/i386/linux.h.orig 2007-09-01 15:49:37.007832662 +0200
105+++ gcc/config/i386/linux.h 2007-09-01 15:49:48.548006743 +0200
106@@ -108,7 +108,7 @@
107 { "dynamic_linker", LINUX_DYNAMIC_LINKER }
108
109 #undef LINK_SPEC
110-#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
111+#define LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
112 %{!shared: \
113 %{!ibcs: \
114 %{!static: \
115--- gcc/config/i386/linux64.h.orig 2007-09-01 15:49:37.007832662 +0200
116+++ gcc/config/i386/linux64.h 2007-09-01 15:50:49.068919687 +0200
117@@ -65,7 +65,7 @@
118 #endif
119
120 #undef LINK_SPEC
121-#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} \
122+#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} --hash-style=gnu \
123 %{shared:-shared} \
124 %{!shared: \
125 %{!static: \
126--- gcc/config/ia64/linux.h.orig 2007-09-01 15:49:37.007832662 +0200
127+++ gcc/config/ia64/linux.h 2007-09-01 15:49:48.548006743 +0200
128@@ -40,7 +40,7 @@
129 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
130
131 #undef LINK_SPEC
132-#define LINK_SPEC "\
133+#define LINK_SPEC "--hash-style=gnu \
134 %{shared:-shared} \
135 %{!shared: \
136 %{!static: \
137--- gcc/config/rs6000/sysv4.h.orig 2007-09-01 15:49:37.007832662 +0200
138+++ gcc/config/rs6000/sysv4.h 2007-09-01 15:49:48.548006743 +0200
139@@ -901,7 +901,7 @@
140 #define LINUX_DYNAMIC_LINKER \
141 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
142
143-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
144+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
145 %{rdynamic:-export-dynamic} \
146 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
147
148--- gcc/config/rs6000/linux64.h.orig 2007-09-01 15:49:37.007832662 +0200
149+++ gcc/config/rs6000/linux64.h 2007-09-01 15:49:48.548006743 +0200
150@@ -354,11 +354,11 @@
151 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
152
153
154-#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
155+#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
156 %{rdynamic:-export-dynamic} \
157 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "}}}"
158
159-#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
160+#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=gnu %{!shared: %{!static: \
161 %{rdynamic:-export-dynamic} \
162 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}"
163