]> git.pld-linux.org Git - packages/gcc.git/blob - gcc-hash-style-gnu.patch
- use .gnu.hash by default during linking.
[packages/gcc.git] / gcc-hash-style-gnu.patch
1
2  alpha/linux-elf.h |    2 +-
3  i386/linux.h      |    2 +-
4  i386/linux64.h    |    2 +-
5  ia64/linux.h      |    2 +-
6  rs6000/linux64.h  |    4 ++--
7  rs6000/sysv4.h    |    2 +-
8  s390/linux.h      |    2 +-
9  sparc/linux.h     |    2 +-
10  sparc/linux64.h   |    6 +++---
11  9 files changed, 12 insertions(+), 12 deletions(-)
12
13 --- gcc-4.2.0-20070316/gcc/config/alpha/linux-elf.h.orig        2006-02-18 06:12:51.000000000 -0500
14 +++ gcc-4.2.0-20070316/gcc/config/alpha/linux-elf.h     2007-04-18 07:14:56.875631582 -0400
15 @@ -40,7 +40,7 @@
16  
17  #define ELF_DYNAMIC_LINKER     LINUX_DYNAMIC_LINKER
18  
19 -#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}         \
20 +#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax}        \
21    %{O*:-O3} %{!O*:-O1}                                         \
22    %{shared:-shared}                                            \
23    %{!shared:                                                   \
24 --- gcc-4.2.0-20070316/gcc/config/s390/linux.h.orig     2006-12-12 10:21:53.000000000 -0500
25 +++ gcc-4.2.0-20070316/gcc/config/s390/linux.h  2007-04-18 07:14:56.875631582 -0400
26 @@ -78,7 +78,7 @@
27  
28  #undef  LINK_SPEC
29  #define LINK_SPEC \
30 -  "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
31 +  "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
32     %{shared:-shared} \
33     %{!shared: \
34        %{static:-static} \
35 --- gcc-4.2.0-20070316/gcc/config/sparc/linux.h.orig    2006-02-18 06:12:51.000000000 -0500
36 +++ gcc-4.2.0-20070316/gcc/config/sparc/linux.h 2007-04-18 07:14:56.875631582 -0400
37 @@ -133,7 +133,7 @@
38  
39  
40  #undef  LINK_SPEC
41 -#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
42 +#define LINK_SPEC "-m elf32_sparc --hash-style=gnu -Y P,/usr/lib %{shared:-shared} \
43    %{!mno-relax:%{!r:-relax}} \
44    %{!shared: \
45      %{!ibcs: \
46 --- gcc-4.2.0-20070316/gcc/config/sparc/linux64.h.orig  2006-03-02 17:47:02.000000000 -0500
47 +++ gcc-4.2.0-20070316/gcc/config/sparc/linux64.h       2007-04-18 07:16:49.644880415 -0400
48 @@ -167,7 +167,7 @@
49    { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },       \
50    { "link_arch",        LINK_ARCH_SPEC },
51  
52 -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
53 +#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=gnu -Y P,/usr/lib %{shared:-shared} \
54    %{!shared: \
55      %{!ibcs: \
56        %{!static: \
57 @@ -176,7 +176,7 @@
58          %{static:-static}}} \
59  "
60  
61 -#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
62 +#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=gnu -Y P,/usr/lib64 %{shared:-shared} \
63    %{!shared: \
64      %{!ibcs: \
65        %{!static: \
66 @@ -257,7 +257,7 @@
67  #else /* !SPARC_BI_ARCH */
68  
69  #undef LINK_SPEC
70 -#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
71 +#define LINK_SPEC "-m elf64_sparc --hash-style=gnu -Y P,/usr/lib64 %{shared:-shared} \
72    %{!shared: \
73      %{!ibcs: \
74        %{!static: \
75 --- gcc-4.2.0-20070316/gcc/config/i386/linux.h.orig     2006-04-06 18:16:11.000000000 -0400
76 +++ gcc-4.2.0-20070316/gcc/config/i386/linux.h  2007-04-18 07:14:56.875631582 -0400
77 @@ -109,7 +109,7 @@
78    { "dynamic_linker", LINUX_DYNAMIC_LINKER }
79  
80  #undef LINK_SPEC
81 -#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
82 +#define LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
83    %{!shared: \
84      %{!ibcs: \
85        %{!static: \
86 --- gcc-4.2.0-20070316/gcc/config/i386/linux64.h.orig   2006-02-18 06:12:51.000000000 -0500
87 +++ gcc-4.2.0-20070316/gcc/config/i386/linux64.h        2007-04-18 07:14:56.875631582 -0400
88 @@ -53,7 +53,7 @@
89  #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
90  
91  #undef LINK_SPEC
92 -#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
93 +#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} --hash-style=gnu \
94    %{shared:-shared} \
95    %{!shared: \
96      %{!static: \
97 --- gcc-4.2.0-20070316/gcc/config/ia64/linux.h.orig     2006-12-12 10:21:53.000000000 -0500
98 +++ gcc-4.2.0-20070316/gcc/config/ia64/linux.h  2007-04-18 07:14:56.875631582 -0400
99 @@ -40,7 +40,7 @@
100  #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
101  
102  #undef LINK_SPEC
103 -#define LINK_SPEC "\
104 +#define LINK_SPEC "--hash-style=gnu \
105    %{shared:-shared} \
106    %{!shared: \
107      %{!static: \
108 --- gcc-4.2.0-20070316/gcc/config/rs6000/sysv4.h.orig   2007-03-09 19:59:15.000000000 -0500
109 +++ gcc-4.2.0-20070316/gcc/config/rs6000/sysv4.h        2007-04-18 07:14:56.872300144 -0400
110 @@ -902,7 +902,7 @@
111  #define LINUX_DYNAMIC_LINKER \
112    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
113  
114 -#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
115 +#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
116    %{rdynamic:-export-dynamic} \
117    %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
118  
119 --- gcc-4.2.0-20070316/gcc/config/rs6000/linux64.h.orig 2006-07-14 11:54:23.000000000 -0400
120 +++ gcc-4.2.0-20070316/gcc/config/rs6000/linux64.h      2007-04-18 07:18:14.042413298 -0400
121 @@ -351,11 +351,11 @@
122    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
123  
124  
125 -#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
126 +#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
127    %{rdynamic:-export-dynamic} \
128    %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "}}}"
129  
130 -#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
131 +#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=gnu %{!shared: %{!static: \
132    %{rdynamic:-export-dynamic} \
133    %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}"
134  
This page took 0.100672 seconds and 4 git commands to generate.