1
# DP: Link using --hash-style=gnu (aarch64, alpha, amd64, armel, armhf, ia64,
2
# DP: i386, powerpc, ppc64, s390, sparc)
4
2006-07-11 Jakub Jelinek <jakub@redhat.com>
6
* config/i386/linux.h (LINK_SPEC): Add --hash-style=gnu.
7
* config/i386/linux64.h (LINK_SPEC): Likewise.
8
* config/rs6000/sysv4.h (LINK_OS_LINUX_SPEC): Likewise.
9
* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
10
LINK_OS_LINUX_SPEC64): Likewise.
11
* config/s390/linux.h (LINK_SPEC): Likewise.
12
* config/ia64/linux.h (LINK_SPEC): Likewise.
13
* config/sparc/linux.h (LINK_SPEC): Likewise.
14
* config/sparc/linux64.h (LINK_SPEC, LINK_ARCH32_SPEC,
15
LINK_ARCH64_SPEC): Likewise.
16
* config/alpha/linux-elf.h (LINK_SPEC): Likewise.
18
2009-12-21 Matthias Klose <doko@ubuntu.com>
20
* config/arm/linux-elf.h (LINK_SPEC): Add --hash-style=gnu.
22
2012-11-17 Matthias Klose <doko@ubuntu.com>
24
* config/aarch64/aarch64-linux.h (LINK_SPEC): Add --hash-style=gnu.
27
gcc/config/alpha/linux-elf.h | 2 +-
28
gcc/config/i386/linux.h | 2 +-
29
gcc/config/i386/linux64.h | 2 +-
30
gcc/config/ia64/linux.h | 2 +-
31
gcc/config/rs6000/linux64.h | 4 ++--
32
gcc/config/rs6000/sysv4.h | 2 +-
33
gcc/config/s390/linux.h | 2 +-
34
gcc/config/sparc/linux.h | 2 +-
35
8 files changed, 9 insertions(+), 9 deletions(-)
37
Index: b/src/gcc/config/alpha/linux-elf.h
38
===================================================================
39
--- a/src/gcc/config/alpha/linux-elf.h
40
+++ b/src/gcc/config/alpha/linux-elf.h
43
#define ELF_DYNAMIC_LINKER GNU_USER_DYNAMIC_LINKER
45
-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
46
+#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax} \
47
%{O*:-O3} %{!O*:-O1} \
50
Index: b/src/gcc/config/ia64/linux.h
51
===================================================================
52
--- a/src/gcc/config/ia64/linux.h
53
+++ b/src/gcc/config/ia64/linux.h
55
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
59
+#define LINK_SPEC " --hash-style=gnu \
63
Index: b/src/gcc/config/rs6000/linux64.h
64
===================================================================
65
--- a/src/gcc/config/rs6000/linux64.h
66
+++ b/src/gcc/config/rs6000/linux64.h
68
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
71
-#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
72
+#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
73
%{rdynamic:-export-dynamic} \
74
-dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "}}"
76
-#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
77
+#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=gnu %{!shared: %{!static: \
78
%{rdynamic:-export-dynamic} \
79
-dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "}}"
81
Index: b/src/gcc/config/rs6000/sysv4.h
82
===================================================================
83
--- a/src/gcc/config/rs6000/sysv4.h
84
+++ b/src/gcc/config/rs6000/sysv4.h
86
#define GNU_USER_DYNAMIC_LINKER \
87
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
89
-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
90
+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
91
%{rdynamic:-export-dynamic} \
92
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
94
Index: b/src/gcc/config/s390/linux.h
95
===================================================================
96
--- a/src/gcc/config/s390/linux.h
97
+++ b/src/gcc/config/s390/linux.h
102
- "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
103
+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
107
Index: b/src/gcc/config/sparc/linux.h
108
===================================================================
109
--- a/src/gcc/config/sparc/linux.h
110
+++ b/src/gcc/config/sparc/linux.h
112
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
115
-#define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
116
+#define LINK_SPEC "-m elf32_sparc --hash-style=gnu %{shared:-shared} \
117
%{!mno-relax:%{!r:-relax}} \
120
Index: b/src/gcc/config/arm/linux-elf.h
121
===================================================================
122
--- a/src/gcc/config/arm/linux-elf.h
123
+++ b/src/gcc/config/arm/linux-elf.h
125
%{rdynamic:-export-dynamic} \
126
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
129
%{mbig-endian:-EB} %{mlittle-endian:-EL}" \
130
SUBTARGET_EXTRA_LINK_SPEC
132
Index: b/src/gcc/config/i386/gnu-user.h
133
===================================================================
134
--- a/src/gcc/config/i386/gnu-user.h
135
+++ b/src/gcc/config/i386/gnu-user.h
137
{ "link_emulation", GNU_USER_LINK_EMULATION },\
138
{ "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
140
-#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
141
+#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
144
%{rdynamic:-export-dynamic} \
145
Index: b/src/gcc/config/i386/gnu-user64.h
146
===================================================================
147
--- a/src/gcc/config/i386/gnu-user64.h
148
+++ b/src/gcc/config/i386/gnu-user64.h
150
"%{" SPEC_64 ":-m " GNU_USER_LINK_EMULATION64 "} \
151
%{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \
152
%{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \
157
Index: b/src/gcc/config/aarch64/aarch64-linux.h
158
===================================================================
159
--- a/src/gcc/config/aarch64/aarch64-linux.h
160
+++ b/src/gcc/config/aarch64/aarch64-linux.h
162
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64.so.1"
164
#define LINUX_TARGET_LINK_SPEC "%{h*} \
168
%{symbolic:-Bsymbolic} \