Skip to content

Commit 9bf09fc

Browse files
committed
make devkitPSP build again
1 parent b9ea67e commit 9bf09fc

3 files changed

Lines changed: 101 additions & 76 deletions

File tree

build-devkit.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# devkitPSP release 17
77
#---------------------------------------------------------------------------------
88

9-
if [ 1 -eq 1 ] ; then
9+
if [ 0 -eq 1 ] ; then
1010
echo "Currently in release cycle, proceed with caution, do not report problems, do not ask for support."
1111
echo "Please use the latest release buildscripts unless advised otherwise by devkitPro staff."
1212
echo "http://sourceforge.net/projects/devkitpro/files/buildscripts/"
@@ -181,7 +181,7 @@ BUILDDIR=$(pwd)/.$package
181181
if [ ! -z $CROSSBUILD ]; then
182182
BUILDDIR=$BUILDDIR-$CROSSBUILD
183183
fi
184-
DEVKITPRO_URL="http://downloads.sourceforge.net/devkitpro"
184+
DEVKITPRO_URL="https://downloads.devkitpro.org"
185185

186186
patchdir=$(pwd)/$basedir/patches
187187
scriptdir=$(pwd)/$basedir/scripts
@@ -218,7 +218,7 @@ for archive in $archives $targetarchives $hostarchives
218218
do
219219
echo $archive
220220
if [ ! -f $archive ]; then
221-
$FETCH http://downloads.sf.net/devkitpro/$archive || { echo "Error: Failed to download $archive"; exit 1; }
221+
$FETCH $DEVKITPRO_URL/$archive || { echo "Error: Failed to download $archive"; exit 1; }
222222
fi
223223
done
224224

dkpsp/patches/binutils-2.22.patch

Lines changed: 70 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c
2-
--- binutils-2.22/bfd/archures.c 2011-08-02 00:04:19.000000000 +0100
3-
+++ binutils-2.22-psp/bfd/archures.c 2012-04-03 22:08:06.000000000 +0100
2+
--- binutils-2.22/bfd/archures.c 2011-08-01 23:04:19.000000000 +0000
3+
+++ binutils-2.22-psp/bfd/archures.c 2018-06-05 22:45:23.845890519 +0000
44
@@ -175,6 +175,7 @@
55
.#define bfd_mach_mips_loongson_2f 3002
66
.#define bfd_mach_mips_loongson_3a 3003
@@ -10,8 +10,8 @@ diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c
1010
.#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *}
1111
.#define bfd_mach_mipsisa32 32
1212
diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h
13-
--- binutils-2.22/bfd/bfd-in2.h 2011-09-16 02:15:18.000000000 +0100
14-
+++ binutils-2.22-psp/bfd/bfd-in2.h 2012-04-03 22:12:53.000000000 +0100
13+
--- binutils-2.22/bfd/bfd-in2.h 2011-09-16 01:15:18.000000000 +0000
14+
+++ binutils-2.22-psp/bfd/bfd-in2.h 2018-06-05 22:45:23.845890519 +0000
1515
@@ -38,6 +38,8 @@
1616

1717
#include "ansidecl.h"
@@ -39,8 +39,8 @@ diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h
3939
#define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */
4040
#define bfd_mach_mipsisa32 32
4141
diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-psp/bfd/bfd-in.h
42-
--- binutils-2.22/bfd/bfd-in.h 2011-09-16 02:15:18.000000000 +0100
43-
+++ binutils-2.22-psp/bfd/bfd-in.h 2012-04-03 22:12:53.000000000 +0100
42+
--- binutils-2.22/bfd/bfd-in.h 2011-09-16 01:15:18.000000000 +0000
43+
+++ binutils-2.22-psp/bfd/bfd-in.h 2018-06-05 22:45:23.845890519 +0000
4444
@@ -31,6 +31,8 @@
4545

4646
#include "ansidecl.h"
@@ -60,8 +60,8 @@ diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-psp/bfd/bfd-in.h
6060
typedef enum bfd_print_symbol
6161
{
6262
diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-psp/bfd/config.in
63-
--- binutils-2.22/bfd/config.in 2011-05-12 08:41:40.000000000 +0100
64-
+++ binutils-2.22-psp/bfd/config.in 2012-04-03 22:12:53.000000000 +0100
63+
--- binutils-2.22/bfd/config.in 2011-05-12 07:41:40.000000000 +0000
64+
+++ binutils-2.22-psp/bfd/config.in 2018-06-05 22:45:23.845890519 +0000
6565
@@ -245,6 +245,9 @@
6666
/* Define if <sys/procfs.h> has win32_pstatus_t. */
6767
#undef HAVE_WIN32_PSTATUS_T
@@ -74,7 +74,7 @@ diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-psp/bfd/config.in
7474

7575
diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-psp/bfd/configure
7676
--- binutils-2.22/bfd/configure 2011-11-21 11:55:48.000000000 +0000
77-
+++ binutils-2.22-psp/bfd/configure 2012-04-03 22:12:53.000000000 +0100
77+
+++ binutils-2.22-psp/bfd/configure 2018-06-05 22:45:23.849891511 +0000
7878
@@ -13508,6 +13508,22 @@
7979

8080
fi
@@ -100,7 +100,7 @@ diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-psp/bfd/configure
100100
if test "${gcc_cv_header_string+set}" = set; then :
101101
diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-psp/bfd/configure.in
102102
--- binutils-2.22/bfd/configure.in 2011-11-21 11:55:46.000000000 +0000
103-
+++ binutils-2.22-psp/bfd/configure.in 2012-04-03 22:12:53.000000000 +0100
103+
+++ binutils-2.22-psp/bfd/configure.in 2018-06-05 22:45:23.849891511 +0000
104104
@@ -190,6 +190,9 @@
105105
GCC_HEADER_STDINT(bfd_stdint.h)
106106
AC_HEADER_TIME
@@ -112,8 +112,8 @@ diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-psp/bfd/configure.in
112112
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
113113
AC_CHECK_FUNCS(strtoull)
114114
diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c
115-
--- binutils-2.22/bfd/cpu-mips.c 2011-07-24 15:20:05.000000000 +0100
116-
+++ binutils-2.22-psp/bfd/cpu-mips.c 2012-04-03 22:08:06.000000000 +0100
115+
--- binutils-2.22/bfd/cpu-mips.c 2011-07-24 14:20:05.000000000 +0000
116+
+++ binutils-2.22-psp/bfd/cpu-mips.c 2018-06-05 22:45:23.849891511 +0000
117117
@@ -89,6 +89,7 @@
118118
I_mipsisa64,
119119
I_mipsisa64r2,
@@ -130,9 +130,30 @@ diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c
130130
N (64, 64, bfd_mach_mips_loongson_2e, "mips:loongson_2e", FALSE, NN(I_loongson_2e)),
131131
N (64, 64, bfd_mach_mips_loongson_2f, "mips:loongson_2f", FALSE, NN(I_loongson_2f)),
132132
N (64, 64, bfd_mach_mips_loongson_3a, "mips:loongson_3a", FALSE, NN(I_loongson_3a)),
133+
diff -Nbaur binutils-2.22/bfd/doc/bfd.texinfo binutils-2.22-psp/bfd/doc/bfd.texinfo
134+
--- binutils-2.22/bfd/doc/bfd.texinfo 2010-10-28 11:40:25.000000000 +0000
135+
+++ binutils-2.22-psp/bfd/doc/bfd.texinfo 2018-06-05 23:00:58.016586742 +0000
136+
@@ -322,7 +322,7 @@
137+
@printindex cp
138+
139+
@tex
140+
-% I think something like @colophon should be in texinfo. In the
141+
+% I think something like @@colophon should be in texinfo. In the
142+
% meantime:
143+
\long\def\colophon{\hbox to0pt{}\vfill
144+
\centerline{The body of this manual is set in}
145+
@@ -333,7 +333,7 @@
146+
\centerline{{\sl\fontname\tensl\/}}
147+
\centerline{are used for emphasis.}\vfill}
148+
\page\colophon
149+
-% Blame: doc@cygnus.com, 28mar91.
150+
+% Blame: doc@@cygnus.com, 28mar91.
151+
@end tex
152+
153+
@bye
133154
diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c
134155
--- binutils-2.22/bfd/elfxx-mips.c 2011-11-21 09:29:27.000000000 +0000
135-
+++ binutils-2.22-psp/bfd/elfxx-mips.c 2012-04-03 22:08:06.000000000 +0100
156+
+++ binutils-2.22-psp/bfd/elfxx-mips.c 2018-06-05 22:45:23.853892502 +0000
136157
@@ -6173,14 +6173,19 @@
137158
case E_MIPS_MACH_SB1:
138159
return bfd_mach_mips_sb1;
@@ -173,8 +194,8 @@ diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c
173194
/* MIPS I extensions. */
174195
{ bfd_mach_mips6000, bfd_mach_mips3000 },
175196
diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-psp/bfd/plugin.c
176-
--- binutils-2.22/bfd/plugin.c 2011-07-11 16:03:07.000000000 +0100
177-
+++ binutils-2.22-psp/bfd/plugin.c 2012-04-03 22:12:53.000000000 +0100
197+
--- binutils-2.22/bfd/plugin.c 2011-07-11 15:03:07.000000000 +0000
198+
+++ binutils-2.22-psp/bfd/plugin.c 2018-06-05 22:45:23.853892502 +0000
178199
@@ -25,7 +25,13 @@
179200
#if BFD_SUPPORTS_PLUGINS
180201

@@ -229,16 +250,16 @@ diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-psp/bfd/plugin.c
229250
#define bfd_plugin_new_section_hook _bfd_generic_new_section_hook
230251
diff -Nbaur binutils-2.22/bfd/version.h binutils-2.22-psp/bfd/version.h
231252
--- binutils-2.22/bfd/version.h 2011-11-21 09:29:28.000000000 +0000
232-
+++ binutils-2.22-psp/bfd/version.h 2012-04-03 22:08:06.000000000 +0100
253+
+++ binutils-2.22-psp/bfd/version.h 2018-06-05 22:45:23.857893494 +0000
233254
@@ -1,4 +1,4 @@
234255
-#define BFD_VERSION_DATE 20111121
235256
+#define BFD_VERSION_DATE (PSNPT 20120103)
236257
#define BFD_VERSION @bfd_version@
237258
#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@
238259
#define REPORT_BUGS_TO @report_bugs_to@
239260
diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.c
240-
--- binutils-2.22/binutils/readelf.c 2011-09-21 21:49:13.000000000 +0100
241-
+++ binutils-2.22-psp/binutils/readelf.c 2012-04-03 22:08:06.000000000 +0100
261+
--- binutils-2.22/binutils/readelf.c 2011-09-21 20:49:13.000000000 +0000
262+
+++ binutils-2.22-psp/binutils/readelf.c 2018-06-05 22:45:23.857893494 +0000
242263
@@ -2395,10 +2395,11 @@
243264
case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break;
244265
case E_MIPS_MACH_LS2E: strcat (buf, ", loongson-2e"); break;
@@ -253,8 +274,8 @@ diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.
253274
/* We simply ignore the field in this case to avoid confusion:
254275
MIPS ELF does not specify EF_MIPS_MACH, it is a GNU
255276
diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub
256-
--- binutils-2.22/config.sub 2011-06-06 11:36:06.000000000 +0100
257-
+++ binutils-2.22-psp/config.sub 2012-04-03 22:08:06.000000000 +0100
277+
--- binutils-2.22/config.sub 2011-06-06 10:36:06.000000000 +0000
278+
+++ binutils-2.22-psp/config.sub 2018-06-05 22:45:23.857893494 +0000
258279
@@ -279,6 +279,7 @@
259280
| mipsisa64sb1 | mipsisa64sb1el \
260281
| mipsisa64sr71k | mipsisa64sr71kel \
@@ -283,8 +304,8 @@ diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub
283304
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
284305
;;
285306
diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure
286-
--- binutils-2.22/configure 2011-08-14 13:28:15.000000000 +0100
287-
+++ binutils-2.22-psp/configure 2012-04-03 22:08:06.000000000 +0100
307+
--- binutils-2.22/configure 2011-08-14 12:28:15.000000000 +0000
308+
+++ binutils-2.22-psp/configure 2018-06-05 22:45:23.861894485 +0000
288309
@@ -2667,7 +2667,7 @@
289310
# binutils, gas and ld appear in that order because it makes sense to run
290311
# "make check" in that particular order.
@@ -304,7 +325,7 @@ diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure
304325
case "${target}" in
305326
diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-mips.c
306327
--- binutils-2.22/gas/config/tc-mips.c 2011-11-21 09:29:32.000000000 +0000
307-
+++ binutils-2.22-psp/gas/config/tc-mips.c 2012-04-03 22:08:06.000000000 +0100
328+
+++ binutils-2.22-psp/gas/config/tc-mips.c 2018-06-05 22:45:23.865895476 +0000
308329
@@ -91,8 +91,32 @@
309330

310331
#define ZERO 0
@@ -2171,8 +2192,8 @@ diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-m
21712192
/* MIPS III */
21722193
{ "r4000", 0, ISA_MIPS3, CPU_R4000 },
21732194
diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure
2174-
--- binutils-2.22/gas/configure 2011-05-18 10:41:14.000000000 +0100
2175-
+++ binutils-2.22-psp/gas/configure 2012-04-03 22:08:06.000000000 +0100
2195+
--- binutils-2.22/gas/configure 2011-05-18 09:41:14.000000000 +0000
2196+
+++ binutils-2.22-psp/gas/configure 2018-06-05 22:45:23.865895476 +0000
21762197
@@ -12043,6 +12043,9 @@
21772198
mips64vr | mips64vrel)
21782199
mips_cpu=vr4100
@@ -2184,8 +2205,8 @@ diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure
21842205
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
21852206
;;
21862207
diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in
2187-
--- binutils-2.22/gas/configure.in 2011-05-18 10:41:14.000000000 +0100
2188-
+++ binutils-2.22-psp/gas/configure.in 2012-04-03 22:08:06.000000000 +0100
2208+
--- binutils-2.22/gas/configure.in 2011-05-18 09:41:14.000000000 +0000
2209+
+++ binutils-2.22-psp/gas/configure.in 2018-06-05 22:45:23.869896468 +0000
21892210
@@ -213,6 +213,9 @@
21902211
mips64vr | mips64vrel)
21912212
mips_cpu=vr4100
@@ -2198,7 +2219,7 @@ diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in
21982219
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
21992220
diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp
22002221
--- binutils-2.22/gas/testsuite/gas/mips/mips.exp 2011-11-21 09:29:32.000000000 +0000
2201-
+++ binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp 2012-04-03 22:08:06.000000000 +0100
2222+
+++ binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp 2018-06-05 22:45:23.869896468 +0000
22022223
@@ -409,6 +409,9 @@
22032224
mips_arch_create sb1 64 mips64 { mips3d } \
22042225
{ -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
@@ -2210,8 +2231,8 @@ diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/
22102231
{ -march=octeon -mtune=octeon } { -mmips:octeon } \
22112232
{ mips64octeon*-*-* }
22122233
diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/common.h
2213-
--- binutils-2.22/include/elf/common.h 2011-07-22 21:22:36.000000000 +0100
2214-
+++ binutils-2.22-psp/include/elf/common.h 2012-04-03 22:08:06.000000000 +0100
2234+
--- binutils-2.22/include/elf/common.h 2011-07-22 20:22:36.000000000 +0000
2235+
+++ binutils-2.22-psp/include/elf/common.h 2018-06-05 22:45:23.869896468 +0000
22152236
@@ -96,6 +96,7 @@
22162237
#define ET_HIOS 0xFEFF /* Operating system-specific */
22172238
#define ET_LOPROC 0xFF00 /* Processor-specific */
@@ -2221,8 +2242,8 @@ diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/com
22212242
/* Values for e_machine, which identifies the architecture. These numbers
22222243
are officially assigned by registry@sco.com. See below for a list of
22232244
diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.h
2224-
--- binutils-2.22/include/elf/mips.h 2011-07-24 15:20:12.000000000 +0100
2225-
+++ binutils-2.22-psp/include/elf/mips.h 2012-04-03 22:08:07.000000000 +0100
2245+
--- binutils-2.22/include/elf/mips.h 2011-07-24 14:20:12.000000000 +0000
2246+
+++ binutils-2.22-psp/include/elf/mips.h 2018-06-05 22:45:23.869896468 +0000
22262247
@@ -265,6 +265,7 @@
22272248
#define E_MIPS_MACH_5400 0x00910000
22282249
#define E_MIPS_MACH_5500 0x00980000
@@ -2232,8 +2253,8 @@ diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.
22322253
#define E_MIPS_MACH_LS2F 0x00A10000
22332254
#define E_MIPS_MACH_LS3A 0x00A20000
22342255
diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode/mips.h
2235-
--- binutils-2.22/include/opcode/mips.h 2011-08-09 16:20:03.000000000 +0100
2236-
+++ binutils-2.22-psp/include/opcode/mips.h 2012-04-03 22:08:07.000000000 +0100
2256+
--- binutils-2.22/include/opcode/mips.h 2011-08-09 15:20:03.000000000 +0000
2257+
+++ binutils-2.22-psp/include/opcode/mips.h 2018-06-05 22:45:23.869896468 +0000
22372258
@@ -216,6 +216,228 @@
22382259
#define MDMX_FMTSEL_VEC_QH 0x15
22392260
#define MDMX_FMTSEL_VEC_OB 0x16
@@ -2591,8 +2612,8 @@ diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode
25912612
M_COP0,
25922613
M_COP1,
25932614
diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode/vfpu.h
2594-
--- binutils-2.22/include/opcode/vfpu.h 1970-01-01 01:00:00.000000000 +0100
2595-
+++ binutils-2.22-psp/include/opcode/vfpu.h 2012-04-03 22:08:07.000000000 +0100
2615+
--- binutils-2.22/include/opcode/vfpu.h 1970-01-01 00:00:00.000000000 +0000
2616+
+++ binutils-2.22-psp/include/opcode/vfpu.h 2018-06-05 22:45:23.869896468 +0000
25962617
@@ -0,0 +1,261 @@
25972618
+#ifndef _VFPU_H_
25982619
+#define _VFPU_H_
@@ -2857,7 +2878,7 @@ diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode
28572878
+#endif /* _VFPU_H_ */
28582879
diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt
28592880
--- binutils-2.22/ld/configure.tgt 2011-11-21 09:29:37.000000000 +0000
2860-
+++ binutils-2.22-psp/ld/configure.tgt 2012-04-03 22:08:07.000000000 +0100
2881+
+++ binutils-2.22-psp/ld/configure.tgt 2018-06-05 22:45:23.869896468 +0000
28612882
@@ -383,6 +383,8 @@
28622883
mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
28632884
mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
@@ -2868,8 +2889,8 @@ diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt
28682889
targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;;
28692890
mips*-sde-elf*) targ_emul=elf32btsmip
28702891
diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh
2871-
--- binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh 1970-01-01 01:00:00.000000000 +0100
2872-
+++ binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh 2012-04-03 22:08:07.000000000 +0100
2892+
--- binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh 1970-01-01 00:00:00.000000000 +0000
2893+
+++ binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh 2018-06-05 22:45:23.869896468 +0000
28732894
@@ -0,0 +1,22 @@
28742895
+# Based off of the default elf32 MIPS target. However, we use a seperate
28752896
+# script template because the PSP architecture defines sections that normally
@@ -2894,8 +2915,8 @@ diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-
28942915
+# Discard the .comment and .pdr sections.
28952916
+OTHER_SECTIONS="/DISCARD/ : { *(.comment) *(.pdr) }"
28962917
diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am
2897-
--- binutils-2.22/ld/Makefile.am 2011-07-22 21:22:37.000000000 +0100
2898-
+++ binutils-2.22-psp/ld/Makefile.am 2012-04-03 22:08:07.000000000 +0100
2918+
--- binutils-2.22/ld/Makefile.am 2011-07-22 20:22:37.000000000 +0000
2919+
+++ binutils-2.22-psp/ld/Makefile.am 2018-06-05 22:45:23.869896468 +0000
28992920
@@ -262,6 +262,7 @@
29002921
eelf_i386_ldso.c \
29012922
eelf_i386_sol2.c \
@@ -2915,8 +2936,8 @@ diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am
29152936
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
29162937
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
29172938
diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in
2918-
--- binutils-2.22/ld/Makefile.in 2011-07-22 21:22:37.000000000 +0100
2919-
+++ binutils-2.22-psp/ld/Makefile.in 2012-04-03 22:08:07.000000000 +0100
2939+
--- binutils-2.22/ld/Makefile.in 2011-07-22 20:22:37.000000000 +0000
2940+
+++ binutils-2.22-psp/ld/Makefile.in 2018-06-05 22:45:23.873897459 +0000
29202941
@@ -568,6 +568,7 @@
29212942
eelf_i386_ldso.c \
29222943
eelf_i386_sol2.c \
@@ -2936,8 +2957,8 @@ diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in
29362957
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
29372958
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
29382959
diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scripttempl/elf_psp.sc
2939-
--- binutils-2.22/ld/scripttempl/elf_psp.sc 1970-01-01 01:00:00.000000000 +0100
2940-
+++ binutils-2.22-psp/ld/scripttempl/elf_psp.sc 2012-04-03 22:08:07.000000000 +0100
2960+
--- binutils-2.22/ld/scripttempl/elf_psp.sc 1970-01-01 00:00:00.000000000 +0000
2961+
+++ binutils-2.22-psp/ld/scripttempl/elf_psp.sc 2018-06-05 22:45:23.873897459 +0000
29412962
@@ -0,0 +1,496 @@
29422963
+#
29432964
+# Unusual variables checked by this code:
@@ -3436,8 +3457,8 @@ diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scriptt
34363457
+}
34373458
+EOF
34383459
diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.c
3439-
--- binutils-2.22/opcodes/mips-dis.c 2011-08-09 16:20:03.000000000 +0100
3440-
+++ binutils-2.22-psp/opcodes/mips-dis.c 2012-04-03 22:08:07.000000000 +0100
3460+
--- binutils-2.22/opcodes/mips-dis.c 2011-08-09 15:20:03.000000000 +0000
3461+
+++ binutils-2.22-psp/opcodes/mips-dis.c 2018-06-05 22:45:23.873897459 +0000
34413462
@@ -245,6 +245,139 @@
34423463
"c0_taglo", "c0_taghi", "c0_errorepc", "c0_desave",
34433464
};
@@ -3993,8 +4014,8 @@ diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.
39934014
/* xgettext:c-format */
39944015
(*info->fprintf_func) (info->stream,
39954016
diff -Nbaur binutils-2.22/opcodes/mips-opc.c binutils-2.22-psp/opcodes/mips-opc.c
3996-
--- binutils-2.22/opcodes/mips-opc.c 2011-08-09 16:20:03.000000000 +0100
3997-
+++ binutils-2.22-psp/opcodes/mips-opc.c 2012-04-03 22:08:07.000000000 +0100
4017+
--- binutils-2.22/opcodes/mips-opc.c 2011-08-09 15:20:03.000000000 +0000
4018+
+++ binutils-2.22-psp/opcodes/mips-opc.c 2018-06-05 22:45:23.873897459 +0000
39984019
@@ -121,6 +121,7 @@
39994020
#define N5 (INSN_5400 | INSN_5500)
40004021
#define N54 INSN_5400

0 commit comments

Comments
 (0)