1
# DP: Link using --hash-style=gnu (alpha, amd64, armel, armhf, ia64, i386, powerpc, ppc64, s390, sparc)
3
2006-07-11 Jakub Jelinek <jakub@redhat.com>
5
* config/i386/linux.h (LINK_SPEC): Add --hash-style=gnu.
6
* config/i386/linux64.h (LINK_SPEC): Likewise.
7
* config/rs6000/sysv4.h (LINK_OS_LINUX_SPEC): Likewise.
8
* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
9
LINK_OS_LINUX_SPEC64): Likewise.
10
* config/s390/linux.h (LINK_SPEC): Likewise.
11
* config/ia64/linux.h (LINK_SPEC): Likewise.
12
* config/sparc/linux.h (LINK_SPEC): Likewise.
13
* config/sparc/linux64.h (LINK_SPEC, LINK_ARCH32_SPEC,
14
LINK_ARCH64_SPEC): Likewise.
15
* config/alpha/linux-elf.h (LINK_SPEC): Likewise.
17
2009-12-21 Matthias Klose <doko@ubuntu.com>
19
* config/arm/linux-elf.h (LINK_SPEC): Add --hash-style=gnu.
22
gcc/config/alpha/linux-elf.h | 2 +-
23
gcc/config/i386/linux.h | 2 +-
24
gcc/config/i386/linux64.h | 2 +-
25
gcc/config/ia64/linux.h | 2 +-
26
gcc/config/rs6000/linux64.h | 4 ++--
27
gcc/config/rs6000/sysv4.h | 2 +-
28
gcc/config/s390/linux.h | 2 +-
29
gcc/config/sparc/linux.h | 2 +-
30
8 files changed, 9 insertions(+), 9 deletions(-)
32
Index: b/src/gcc/config/alpha/linux-elf.h
33
===================================================================
34
--- a/src/gcc/config/alpha/linux-elf.h
35
+++ b/src/gcc/config/alpha/linux-elf.h
38
#define ELF_DYNAMIC_LINKER GNU_USER_DYNAMIC_LINKER
40
-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
41
+#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax} \
42
%{O*:-O3} %{!O*:-O1} \
45
Index: b/src/gcc/config/ia64/linux.h
46
===================================================================
47
--- a/src/gcc/config/ia64/linux.h
48
+++ b/src/gcc/config/ia64/linux.h
50
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
54
+#define LINK_SPEC " --hash-style=gnu \
58
Index: b/src/gcc/config/rs6000/linux64.h
59
===================================================================
60
--- a/src/gcc/config/rs6000/linux64.h
61
+++ b/src/gcc/config/rs6000/linux64.h
63
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
66
-#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
67
+#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
68
%{rdynamic:-export-dynamic} \
69
-dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "}}"
71
-#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
72
+#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=gnu %{!shared: %{!static: \
73
%{rdynamic:-export-dynamic} \
74
-dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "}}"
76
Index: b/src/gcc/config/rs6000/sysv4.h
77
===================================================================
78
--- a/src/gcc/config/rs6000/sysv4.h
79
+++ b/src/gcc/config/rs6000/sysv4.h
81
#define GNU_USER_DYNAMIC_LINKER \
82
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
84
-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
85
+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
86
%{rdynamic:-export-dynamic} \
87
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
89
Index: b/src/gcc/config/s390/linux.h
90
===================================================================
91
--- a/src/gcc/config/s390/linux.h
92
+++ b/src/gcc/config/s390/linux.h
97
- "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
98
+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
102
Index: b/src/gcc/config/sparc/linux.h
103
===================================================================
104
--- a/src/gcc/config/sparc/linux.h
105
+++ b/src/gcc/config/sparc/linux.h
107
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
110
-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
111
+#define LINK_SPEC "-m elf32_sparc --hash-style=gnu -Y P,/usr/lib %{shared:-shared} \
112
%{!mno-relax:%{!r:-relax}} \
115
Index: b/src/gcc/config/arm/linux-elf.h
116
===================================================================
117
--- a/src/gcc/config/arm/linux-elf.h
118
+++ b/src/gcc/config/arm/linux-elf.h
120
%{rdynamic:-export-dynamic} \
121
-dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
124
%{mbig-endian:-EB} %{mlittle-endian:-EL}" \
125
SUBTARGET_EXTRA_LINK_SPEC
127
Index: gcc/config/i386/gnu-user.h
128
===================================================================
129
--- a/src/gcc/config/i386/gnu-user.h
130
+++ b/src/gcc/config/i386/gnu-user.h
132
{ "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
135
-#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
136
+#define LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
139
%{rdynamic:-export-dynamic} \
140
Index: gcc/config/i386/gnu-user64.h
141
===================================================================
142
--- a/src/gcc/config/i386/gnu-user64.h
143
+++ b/src/gcc/config/i386/gnu-user64.h
145
#define LINK_SPEC "%{" SPEC_64 ":-m " GNU_USER_LINK_EMULATION64 "} \
146
%{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \
147
%{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \