updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gcc43 / gcc-hash-style-both.patch
blob8fea7586d005e36a806712bf5e17755fc55dc6e4
1 #! /bin/sh -e
3 # DP: Link using --hash-style=both (alpha, amd64, ia64, i386, powerpc, ppc64, s390, sparc)
5 dir=
6 if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9 elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
13 case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 #cd ${dir}gcc && autoconf
18 -unpatch)
19 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
20 #rm ${dir}gcc/configure
23 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
24 exit 1
25 esac
26 exit 0
28 2006-07-11 Jakub Jelinek <jakub@redhat.com>
30 * config/i386/linux.h (LINK_SPEC): Add --hash-style=both.
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.
42 --- gcc/config/alpha/linux-elf.h.orig 2007-08-04 08:55:58.000000000 +0200
43 +++ gcc/config/alpha/linux-elf.h 2007-09-01 15:47:26.605865578 +0200
44 @@ -39,7 +39,7 @@
46 #define ELF_DYNAMIC_LINKER LINUX_DYNAMIC_LINKER
48 -#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
49 +#define LINK_SPEC "-m elf64alpha --hash-style=both %{G*} %{relax:-relax} \
50 %{O*:-O3} %{!O*:-O1} \
51 %{shared:-shared} \
52 %{!shared: \
53 --- gcc/config/s390/linux.h.orig 2007-08-04 08:55:59.000000000 +0200
54 +++ gcc/config/s390/linux.h 2007-09-01 15:47:26.605865578 +0200
55 @@ -77,7 +77,7 @@
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=both \
61 %{shared:-shared} \
62 %{!shared: \
63 %{static:-static} \
64 --- gcc/config/sparc/linux.h.orig 2007-08-04 08:56:01.000000000 +0200
65 +++ gcc/config/sparc/linux.h 2007-09-01 15:47:26.605865578 +0200
66 @@ -132,7 +132,7 @@
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=both -Y P,/usr/lib %{shared:-shared} \
72 %{!mno-relax:%{!r:-relax}} \
73 %{!shared: \
74 %{!ibcs: \
75 --- gcc/config/sparc/linux64.h.orig 2007-08-04 08:56:01.000000000 +0200
76 +++ gcc/config/sparc/linux64.h 2007-09-01 15:47:26.605865578 +0200
77 @@ -166,7 +166,7 @@
78 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
79 { "link_arch", LINK_ARCH_SPEC },
81 -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
82 +#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=both -Y P,/usr/lib %{shared:-shared} \
83 %{!shared: \
84 %{!ibcs: \
85 %{!static: \
86 @@ -175,7 +175,7 @@
87 %{static:-static}}} \
90 -#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
91 +#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=both -Y P,/usr/lib64 %{shared:-shared} \
92 %{!shared: \
93 %{!ibcs: \
94 %{!static: \
95 @@ -256,7 +256,7 @@
96 #else /* !SPARC_BI_ARCH */
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=both -Y P,/usr/lib64 %{shared:-shared} \
101 %{!shared: \
102 %{!ibcs: \
103 %{!static: \
104 --- gcc/config/i386/linux.h.orig 2007-08-04 08:56:07.000000000 +0200
105 +++ gcc/config/i386/linux.h 2007-09-01 15:47:26.605865578 +0200
106 @@ -108,7 +108,7 @@
107 { "dynamic_linker", LINUX_DYNAMIC_LINKER }
109 #undef LINK_SPEC
110 -#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
111 +#define LINK_SPEC "-m %(link_emulation) --hash-style=both %{shared:-shared} \
112 %{!shared: \
113 %{!ibcs: \
114 %{!static: \
115 --- gcc/config/i386/linux64.h.orig 2007-08-04 08:56:07.000000000 +0200
116 +++ gcc/config/i386/linux64.h 2007-09-01 15:48:27.336781690 +0200
117 @@ -65,7 +65,7 @@
118 #endif
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=both \
123 %{shared:-shared} \
124 %{!shared: \
125 %{!static: \
126 --- gcc/config/ia64/linux.h.orig 2006-12-12 18:59:53.000000000 +0100
127 +++ gcc/config/ia64/linux.h 2007-09-01 15:47:26.605865578 +0200
128 @@ -40,7 +40,7 @@
129 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
131 #undef LINK_SPEC
132 -#define LINK_SPEC "\
133 +#define LINK_SPEC "--hash-style=both \
134 %{shared:-shared} \
135 %{!shared: \
136 %{!static: \
137 --- gcc/config/rs6000/sysv4.h.orig 2007-08-08 23:37:49.000000000 +0200
138 +++ gcc/config/rs6000/sysv4.h 2007-09-01 15:47:26.615865729 +0200
139 @@ -901,7 +901,7 @@
140 #define LINUX_DYNAMIC_LINKER \
141 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
143 -#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
144 +#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=both %{!shared: %{!static: \
145 %{rdynamic:-export-dynamic} \
146 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
148 --- gcc/config/rs6000/linux64.h.orig 2007-08-04 08:56:12.000000000 +0200
149 +++ gcc/config/rs6000/linux64.h 2007-09-01 15:47:26.615865729 +0200
150 @@ -354,11 +354,11 @@
151 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
154 -#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
155 +#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=both %{!shared: %{!static: \
156 %{rdynamic:-export-dynamic} \
157 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "}}}"
159 -#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
160 +#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=both %{!shared: %{!static: \
161 %{rdynamic:-export-dynamic} \
162 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}"