3 # DP: Link using --hash-style=both (alpha, amd64, ia64, i386, powerpc, ppc64, s390, sparc)
6 if [ $# -eq 3 -a "$2" = '-d' ]; then
9 elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 #cd ${dir}gcc && autoconf
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"
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
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} \
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
59 - "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
60 + "%{m31
:-m elf_s390
}%{m64
:-m elf64_s390
} --hash-style=both \
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
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}} \
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
78 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC
}, \
79 { "link_arch", LINK_ARCH_SPEC
},
81 -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
82 +#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=both -Y P,%R/usr/lib %{shared:-shared} \
90 -#define LINK_ARCH64_SPEC "-m elf64_sparc
-Y P
,%R
/usr
/lib64
%{shared
:-shared} \
91 +#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=both -Y P,%R/usr/lib64 %{shared:-shared} \
96 #else /* !SPARC_BI_ARCH */
99 -#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
100 +#define LINK_SPEC "-m elf64_sparc --hash-style=both -Y P,%R/usr/lib64 %{shared:-shared} \
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
107 { "dynamic_linker", LINUX_DYNAMIC_LINKER
}
110 -#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
111 +#define LINK_SPEC "-m %(link_emulation) --hash-style=both %{shared:-shared} \
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
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 \
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
129 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
132 -#define LINK_SPEC "\
133 +#define LINK_SPEC "--hash-style=both \
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
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 "}}}"