-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinutils-2.28.patch
215 lines (209 loc) · 9.3 KB
/
binutils-2.28.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
diff -urNdw binutils-2.28-orig/bfd/config.bfd binutils-2.28/bfd/config.bfd
--- binutils-2.28-orig/bfd/config.bfd 2017-06-18 01:06:11.821761404 +0200
+++ binutils-2.28/bfd/config.bfd 2017-06-18 01:30:24.000000000 +0200
@@ -759,6 +759,11 @@
targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
targ_archs="$targ_archs bfd_arm_arch"
;;
+ i[3-7]86-*-powernex*)
+ targ_defvec=i386_elf32_vec
+ targ_selvecs=
+ targ64_selvecs=x86_64_elf64_vec
+ ;;
#ifdef BFD64
x86_64-*-cloudabi*)
targ_defvec=x86_64_elf64_cloudabi_vec
@@ -806,6 +811,11 @@
targ_archs="$targ_archs bfd_arm_arch"
want64=true
;;
+ x86_64-*-powernex*)
+ targ_defvec=x86_64_elf64_vec
+ targ_selvecs=i386_elf32_vec
+ want64=true
+ ;;
x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
targ_defvec=x86_64_pe_vec
targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_be_vec x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
diff -urNdw binutils-2.28-orig/config.sub binutils-2.28/config.sub
--- binutils-2.28-orig/config.sub 2017-06-18 01:06:11.861762141 +0200
+++ binutils-2.28/config.sub 2017-06-18 01:11:13.000000000 +0200
@@ -2,7 +2,7 @@
# Configuration validation subroutine script.
# Copyright 1992-2016 Free Software Foundation, Inc.
-timestamp='2016-11-03'
+timestamp='2017-06-18'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -1405,7 +1405,7 @@
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -powermax* | -powernex* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos* | -phoenix* | -fuchsia*)
# Remember, each alternative MUST END IN *, to match a version number.
diff -urNdw binutils-2.28-orig/configure binutils-2.28/configure
--- binutils-2.28-orig/configure 2017-06-18 01:06:11.861762141 +0200
+++ binutils-2.28/configure 2017-06-18 01:12:00.000000000 +0200
@@ -2959,7 +2959,7 @@
*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
| *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
- | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
+ | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-powernex* | *-*-fuchsia*)
case "${target}" in
*-*-linux*aout* | *-*-linux*oldld*)
;;
diff -urNdw binutils-2.28-orig/configure.ac binutils-2.28/configure.ac
--- binutils-2.28-orig/configure.ac 2017-06-18 01:06:11.861762141 +0200
+++ binutils-2.28/configure.ac 2017-06-18 01:33:05.091212782 +0200
@@ -337,7 +337,7 @@
*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
| *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
- | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
+ | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-powernex* | *-*-fuchsia*)
case "${target}" in
*-*-linux*aout* | *-*-linux*oldld*)
;;
diff -urNdw binutils-2.28-orig/gas/configure.tgt binutils-2.28/gas/configure.tgt
--- binutils-2.28-orig/gas/configure.tgt 2017-06-18 01:06:11.871762325 +0200
+++ binutils-2.28/gas/configure.tgt 2017-06-18 01:15:01.000000000 +0200
@@ -230,6 +230,10 @@
case ${cpu} in
x86_64*) arch=x86_64:32 ;;
esac ;;
+ i386-*-powernex*) fmt=elf
+ case ${cpu} in
+ x86_64*) arch=x86_64:32 ;;
+ esac ;;
i386-*-netbsd0.8) fmt=aout em=386bsd ;;
i386-*-netbsdpe*) fmt=coff em=pe ;;
i386-*-netbsd*-gnu* | \
diff -urNdw binutils-2.28-orig/ld/configure.tgt binutils-2.28/ld/configure.tgt
--- binutils-2.28-orig/ld/configure.tgt 2017-06-18 01:06:12.231768950 +0200
+++ binutils-2.28/ld/configure.tgt 2017-06-18 01:16:58.000000000 +0200
@@ -391,6 +391,15 @@
targ_extra_libpath=$targ_extra_emuls
tdir_elf_i386_nacl=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
;;
+i[3-7]86-*-powernex*)
+ targ_emul=elf_i386_powernex
+ targ_extra_emuls=elf_i386
+ targ64_extra_emuls="elf_x86_64_powernex elf_x86_64"
+ ;;
+x86_64-*-powernex*)
+ targ_emul=elf_x86_64_powernex
+ targ_extra_emuls="elf_i386_powernex elf_x86_64 elf_i386"
+ ;;
i860-*-coff) targ_emul=coff_i860 ;;
i860-stardent-sysv4* | i860-stardent-elf*)
targ_emul=elf32_i860
diff -urNdw binutils-2.28-orig/ld/emulparams/elf_i386_powernex.sh binutils-2.28/ld/emulparams/elf_i386_powernex.sh
--- binutils-2.28-orig/ld/emulparams/elf_i386_powernex.sh 1970-01-01 01:00:00.000000000 +0100
+++ binutils-2.28/ld/emulparams/elf_i386_powernex.sh 2017-06-18 01:18:00.604746715 +0200
@@ -0,0 +1,3 @@
+. ${srcdir}/emulparams/elf_i386.sh
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
diff -urNdw binutils-2.28-orig/ld/emulparams/elf_x86_64_powernex.sh binutils-2.28/ld/emulparams/elf_x86_64_powernex.sh
--- binutils-2.28-orig/ld/emulparams/elf_x86_64_powernex.sh 1970-01-01 01:00:00.000000000 +0100
+++ binutils-2.28/ld/emulparams/elf_x86_64_powernex.sh 2017-06-18 01:18:19.000000000 +0200
@@ -0,0 +1 @@
+. ${srcdir}/emulparams/elf_x86_64.sh
diff -urNdw binutils-2.28-orig/ld/Makefile.am binutils-2.28/ld/Makefile.am
--- binutils-2.28-orig/ld/Makefile.am 2017-06-18 01:06:12.241769134 +0200
+++ binutils-2.28/ld/Makefile.am 2017-06-18 01:19:47.000000000 +0200
@@ -299,6 +299,7 @@
eelf_i386_fbsd.c \
eelf_i386_ldso.c \
eelf_i386_nacl.c \
+ eelf_i386_powernex.c \
eelf_i386_sol2.c \
eelf_i386_vxworks.c \
eelf_iamcu.c \
@@ -514,6 +515,7 @@
eelf_x86_64_cloudabi.c \
eelf_x86_64_fbsd.c \
eelf_x86_64_nacl.c \
+ eelf_x86_64_powernex.c \
eelf_x86_64_sol2.c \
ehppa64linux.c \
ei386pep.c \
@@ -1351,6 +1353,10 @@
$(srcdir)/emulparams/elf_nacl.sh \
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+eelf_i386_powernex.c: $(srcdir)/emulparams/elf_i386_powernex.sh \
+ $(srcdir)/emulparams/elf_i386.sh \
+ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
$(srcdir)/emulparams/solaris2.sh \
$(srcdir)/emultempl/solaris2.em \
@@ -2045,6 +2051,10 @@
$(srcdir)/emulparams/elf_nacl.sh \
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+eelf_x86_64_powernex.c: $(srcdir)/emulparams/elf_x86_64_powernex.sh \
+ $(srcdir)/emulparams/elf_x86_64.sh \
+ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
eelf_x86_64_sol2.c: $(srcdir)/emulparams/elf_x86_64_sol2.sh \
$(srcdir)/emulparams/elf_x86_64.sh \
$(srcdir)/emulparams/solaris2.sh \
diff -urNdw binutils-2.28-orig/ld/Makefile.in binutils-2.28/ld/Makefile.in
--- binutils-2.28-orig/ld/Makefile.in 2017-06-18 01:06:12.241769134 +0200
+++ binutils-2.28/ld/Makefile.in 2017-06-18 01:22:08.000000000 +0200
@@ -668,6 +668,7 @@
eelf_i386_fbsd.c \
eelf_i386_ldso.c \
eelf_i386_nacl.c \
+ eelf_i386_powernex.c \
eelf_i386_sol2.c \
eelf_i386_vxworks.c \
eelf_iamcu.c \
@@ -882,6 +883,7 @@
eelf_x86_64_cloudabi.c \
eelf_x86_64_fbsd.c \
eelf_x86_64_nacl.c \
+ eelf_x86_64_powernex.c \
eelf_x86_64_sol2.c \
ehppa64linux.c \
ei386pep.c \
@@ -1357,6 +1359,7 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_fbsd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_ldso.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_nacl.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_powernex.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_sol2.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_vxworks.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_iamcu.Po@am__quote@
@@ -1369,6 +1372,7 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_cloudabi.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_fbsd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_nacl.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_powernex.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_sol2.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egld960.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egld960coff.Po@am__quote@
@@ -2944,6 +2948,10 @@
$(srcdir)/emulparams/elf_nacl.sh \
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+eelf_i386_powernex.c: $(srcdir)/emulparams/elf_i386_powernex.sh \
+ $(srcdir)/emulparams/elf_i386.sh \
+ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
$(srcdir)/emulparams/solaris2.sh \
$(srcdir)/emultempl/solaris2.em \
@@ -3638,6 +3646,10 @@
$(srcdir)/emulparams/elf_nacl.sh \
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+eelf_x86_64_powernex.c: $(srcdir)/emulparams/elf_x86_64_powernex.sh \
+ $(srcdir)/emulparams/elf_x86_64.sh \
+ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
eelf_x86_64_sol2.c: $(srcdir)/emulparams/elf_x86_64_sol2.sh \
$(srcdir)/emulparams/elf_x86_64.sh \
$(srcdir)/emulparams/solaris2.sh \