~ubuntu-branches/ubuntu/precise/gccgo-4.7/precise

« back to all changes in this revision

Viewing changes to debian/patches/gcc-hash-style-gnu.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-11 19:37:32 UTC
  • Revision ID: package-import@ubuntu.com-20120311193732-ty08ntcphseuouao
Tags: 4.7.0~rc1-0ubuntu1
* Build standalone gccgo-4.7 packages.
* libgo: Work around parse error of struct timex_ on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Link using --hash-style=gnu (alpha, amd64, armel, armhf, ia64, i386, powerpc, ppc64, s390, sparc)
 
2
 
 
3
2006-07-11  Jakub Jelinek  <jakub@redhat.com>
 
4
 
 
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.
 
16
 
 
17
2009-12-21  Matthias Klose  <doko@ubuntu.com>
 
18
 
 
19
        * config/arm/linux-elf.h (LINK_SPEC): Add --hash-style=gnu.
 
20
        
 
21
---
 
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(-)
 
31
 
 
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
 
36
@@ -38,7 +38,7 @@
 
37
 
 
38
 #define ELF_DYNAMIC_LINKER     GNU_USER_DYNAMIC_LINKER
 
39
 
 
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}                                         \
 
43
   %{shared:-shared}                                            \
 
44
   %{!shared:                                                   \
 
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
 
49
@@ -59,7 +59,7 @@
 
50
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
 
51
 
 
52
 #undef LINK_SPEC
 
53
-#define LINK_SPEC "\
 
54
+#define LINK_SPEC " --hash-style=gnu \
 
55
   %{shared:-shared} \
 
56
   %{!shared: \
 
57
     %{!static: \
 
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
 
62
@@ -384,11 +384,11 @@
 
63
   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
 
64
 
 
65
 
 
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 "}}"
 
70
 
 
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 "}}"
 
75
 
 
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
 
80
@@ -815,7 +815,7 @@
 
81
 #define GNU_USER_DYNAMIC_LINKER \
 
82
   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
 
83
 
 
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 "}}"
 
88
 
 
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
 
93
@@ -66,7 +66,7 @@
 
94
 
 
95
 #undef  LINK_SPEC
 
96
 #define LINK_SPEC \
 
97
-  "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
 
98
+  "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
 
99
    %{shared:-shared} \
 
100
    %{!shared: \
 
101
       %{static:-static} \
 
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
 
106
@@ -87,7 +87,7 @@
 
107
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
108
 
 
109
 #undef  LINK_SPEC
 
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}} \
 
113
   %{!shared: \
 
114
     %{!static: \
 
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
 
119
@@ -68,6 +68,7 @@
 
120
    %{rdynamic:-export-dynamic} \
 
121
    -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
 
122
    -X \
 
123
+   --hash-style=gnu \
 
124
    %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
 
125
    SUBTARGET_EXTRA_LINK_SPEC
 
126
 
 
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
 
131
@@ -98,7 +98,7 @@
 
132
   { "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
 
133
 
 
134
 #undef LINK_SPEC
 
135
-#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
 
136
+#define LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
 
137
   %{!shared: \
 
138
     %{!static: \
 
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
 
144
@@ -76,6 +76,7 @@
 
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 "} \
 
148
+  --hash-style=gnu \
 
149
   %{shared:-shared} \
 
150
   %{!shared: \
 
151
     %{!static: \