source: scripts/patch/gcc/4.4.1/25-hash-style.patch@ e3e2a37

systemd
Last change on this file since e3e2a37 was ee54da9, checked in by Jim Gifford <clfs@…>, 15 years ago

Updated GCC Script for 4.4.1

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[ee54da9]12006-07-11 Jakub Jelinek <jakub@redhat.com>
2
3 * config/i386/linux.h (LINK_SPEC): Add --hash-style=both.
4 * config/i386/linux64.h (LINK_SPEC): Likewise.
5 * config/rs6000/sysv4.h (LINK_OS_LINUX_SPEC): Likewise.
6 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
7 LINK_OS_LINUX_SPEC64): Likewise.
8 * config/s390/linux.h (LINK_SPEC): Likewise.
9 * config/ia64/linux.h (LINK_SPEC): Likewise.
10 * config/sparc/linux.h (LINK_SPEC): Likewise.
11 * config/sparc/linux64.h (LINK_SPEC, LINK_ARCH32_SPEC,
12 LINK_ARCH64_SPEC): Likewise.
13 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
14
15diff -Naur gcc-4.4.0.orig/gcc/config/alpha/linux-elf.h gcc-4.4.0/gcc/config/alpha/linux-elf.h
16--- gcc-4.4.0.orig/gcc/config/alpha/linux-elf.h 2007-08-02 03:49:31.000000000 -0700
17+++ gcc-4.4.0/gcc/config/alpha/linux-elf.h 2009-07-14 10:22:11.000000000 -0700
18@@ -39,7 +39,7 @@
19
20 #define ELF_DYNAMIC_LINKER LINUX_DYNAMIC_LINKER
21
22-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
23+#define LINK_SPEC "-m elf64alpha --hash-style=both %{G*} %{relax:-relax} \
24 %{O*:-O3} %{!O*:-O1} \
25 %{shared:-shared} \
26 %{!shared: \
27diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux64.h gcc-4.4.0/gcc/config/i386/linux64.h
28--- gcc-4.4.0.orig/gcc/config/i386/linux64.h 2009-04-09 16:23:07.000000000 -0700
29+++ gcc-4.4.0/gcc/config/i386/linux64.h 2009-07-14 10:22:11.000000000 -0700
30@@ -75,7 +75,7 @@
31 #endif
32
33 #undef LINK_SPEC
34-#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} \
35+#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} --hash-style=both \
36 %{shared:-shared} \
37 %{!shared: \
38 %{!static: \
39diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux.h gcc-4.4.0/gcc/config/i386/linux.h
40--- gcc-4.4.0.orig/gcc/config/i386/linux.h 2009-07-14 09:25:45.000000000 -0700
41+++ gcc-4.4.0/gcc/config/i386/linux.h 2009-07-14 10:22:11.000000000 -0700
42@@ -113,7 +113,7 @@
43 { "dynamic_linker", LINUX_DYNAMIC_LINKER }
44
45 #undef LINK_SPEC
46-#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
47+#define LINK_SPEC "-m %(link_emulation) --hash-style=both %{shared:-shared} \
48 %{!shared: \
49 %{!ibcs: \
50 %{!static: \
51diff -Naur gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
52--- gcc-4.4.0.orig/gcc/config/ia64/linux.h 2009-02-12 08:30:53.000000000 -0800
53+++ gcc-4.4.0/gcc/config/ia64/linux.h 2009-07-14 10:22:11.000000000 -0700
54@@ -40,7 +40,7 @@
55 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
56
57 #undef LINK_SPEC
58-#define LINK_SPEC "\
59+#define LINK_SPEC "--hash-style=both \
60 %{shared:-shared} \
61 %{!shared: \
62 %{!static: \
63diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/linux64.h gcc-4.4.0/gcc/config/rs6000/linux64.h
64--- gcc-4.4.0.orig/gcc/config/rs6000/linux64.h 2009-04-09 16:23:07.000000000 -0700
65+++ gcc-4.4.0/gcc/config/rs6000/linux64.h 2009-07-14 10:22:11.000000000 -0700
66@@ -357,11 +357,11 @@
67 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
68
69
70-#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
71+#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=both %{!shared: %{!static: \
72 %{rdynamic:-export-dynamic} \
73 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "}}}"
74
75-#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
76+#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=both %{!shared: %{!static: \
77 %{rdynamic:-export-dynamic} \
78 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}"
79
80diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h gcc-4.4.0/gcc/config/rs6000/sysv4.h
81--- gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h 2009-04-09 16:23:07.000000000 -0700
82+++ gcc-4.4.0/gcc/config/rs6000/sysv4.h 2009-07-14 10:22:11.000000000 -0700
83@@ -911,7 +911,7 @@
84 #define LINUX_DYNAMIC_LINKER \
85 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
86
87-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
88+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=both %{!shared: %{!static: \
89 %{rdynamic:-export-dynamic} \
90 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
91
92diff -Naur gcc-4.4.0.orig/gcc/config/s390/linux.h gcc-4.4.0/gcc/config/s390/linux.h
93--- gcc-4.4.0.orig/gcc/config/s390/linux.h 2007-08-02 03:49:31.000000000 -0700
94+++ gcc-4.4.0/gcc/config/s390/linux.h 2009-07-14 10:22:11.000000000 -0700
95@@ -77,7 +77,7 @@
96
97 #undef LINK_SPEC
98 #define LINK_SPEC \
99- "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
100+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=both \
101 %{shared:-shared} \
102 %{!shared: \
103 %{static:-static} \
104diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux64.h gcc-4.4.0/gcc/config/sparc/linux64.h
105--- gcc-4.4.0.orig/gcc/config/sparc/linux64.h 2009-02-20 07:20:38.000000000 -0800
106+++ gcc-4.4.0/gcc/config/sparc/linux64.h 2009-07-14 10:22:11.000000000 -0700
107@@ -121,7 +121,7 @@
108 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
109 { "link_arch", LINK_ARCH_SPEC },
110
111-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
112+#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=both -Y P,%R/usr/lib %{shared:-shared} \
113 %{!shared: \
114 %{!ibcs: \
115 %{!static: \
116@@ -130,7 +130,7 @@
117 %{static:-static}}} \
118 "
119
120-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
121+#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=both -Y P,%R/usr/lib64 %{shared:-shared} \
122 %{!shared: \
123 %{!ibcs: \
124 %{!static: \
125@@ -211,7 +211,7 @@
126 #else /* !SPARC_BI_ARCH */
127
128 #undef LINK_SPEC
129-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
130+#define LINK_SPEC "-m elf64_sparc --hash-style=both -Y P,%R/usr/lib64 %{shared:-shared} \
131 %{!shared: \
132 %{!ibcs: \
133 %{!static: \
134diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux.h gcc-4.4.0/gcc/config/sparc/linux.h
135--- gcc-4.4.0.orig/gcc/config/sparc/linux.h 2009-02-20 07:20:38.000000000 -0800
136+++ gcc-4.4.0/gcc/config/sparc/linux.h 2009-07-14 10:22:11.000000000 -0700
137@@ -86,7 +86,7 @@
138 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
139
140 #undef LINK_SPEC
141-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
142+#define LINK_SPEC "-m elf32_sparc --hash-style=both -Y P,/usr/lib %{shared:-shared} \
143 %{!mno-relax:%{!r:-relax}} \
144 %{!shared: \
145 %{!ibcs: \
Note: See TracBrowser for help on using the repository browser.