mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-26 03:45:09 -05:00
update binutils patch for cross compile
This commit is contained in:
parent
ef923b86e2
commit
6c32d1cb26
|
|
@ -1,6 +1,6 @@
|
|||
diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c
|
||||
--- binutils-2.22/bfd/archures.c 2011-08-02 00:04:19.000000000 +0100
|
||||
+++ binutils-2.22-psp/bfd/archures.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/archures.c 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -175,6 +175,7 @@
|
||||
.#define bfd_mach_mips_loongson_2f 3002
|
||||
.#define bfd_mach_mips_loongson_3a 3003
|
||||
|
|
@ -11,7 +11,25 @@ diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c
|
|||
.#define bfd_mach_mipsisa32 32
|
||||
diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h
|
||||
--- binutils-2.22/bfd/bfd-in2.h 2011-09-16 02:15:18.000000000 +0100
|
||||
+++ binutils-2.22-psp/bfd/bfd-in2.h 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/bfd-in2.h 2012-04-03 22:12:53.000000000 +0100
|
||||
@@ -38,6 +38,8 @@
|
||||
|
||||
#include "ansidecl.h"
|
||||
#include "symcat.h"
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
||||
#ifndef SABER
|
||||
/* This hack is to avoid a problem with some strict ANSI C preprocessors.
|
||||
@@ -308,8 +310,6 @@
|
||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
||||
|
||||
-/* Forward define. */
|
||||
-struct stat;
|
||||
|
||||
typedef enum bfd_print_symbol
|
||||
{
|
||||
@@ -1882,6 +1882,7 @@
|
||||
#define bfd_mach_mips_loongson_2f 3002
|
||||
#define bfd_mach_mips_loongson_3a 3003
|
||||
|
|
@ -20,9 +38,82 @@ diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h
|
|||
#define bfd_mach_mips_octeon 6501
|
||||
#define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */
|
||||
#define bfd_mach_mipsisa32 32
|
||||
diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-psp/bfd/bfd-in.h
|
||||
--- binutils-2.22/bfd/bfd-in.h 2011-09-16 02:15:18.000000000 +0100
|
||||
+++ binutils-2.22-psp/bfd/bfd-in.h 2012-04-03 22:12:53.000000000 +0100
|
||||
@@ -31,6 +31,8 @@
|
||||
|
||||
#include "ansidecl.h"
|
||||
#include "symcat.h"
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
||||
#ifndef SABER
|
||||
/* This hack is to avoid a problem with some strict ANSI C preprocessors.
|
||||
@@ -301,8 +303,6 @@
|
||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
||||
|
||||
-/* Forward define. */
|
||||
-struct stat;
|
||||
|
||||
typedef enum bfd_print_symbol
|
||||
{
|
||||
diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-psp/bfd/config.in
|
||||
--- binutils-2.22/bfd/config.in 2011-05-12 08:41:40.000000000 +0100
|
||||
+++ binutils-2.22-psp/bfd/config.in 2012-04-03 22:12:53.000000000 +0100
|
||||
@@ -245,6 +245,9 @@
|
||||
/* Define if <sys/procfs.h> has win32_pstatus_t. */
|
||||
#undef HAVE_WIN32_PSTATUS_T
|
||||
|
||||
+/* Define to 1 if you have the <windows.h> header file. */
|
||||
+#undef HAVE_WINDOWS_H
|
||||
+
|
||||
/* Define to 1 if you have the <zlib.h> header file. */
|
||||
#undef HAVE_ZLIB_H
|
||||
|
||||
diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-psp/bfd/configure
|
||||
--- binutils-2.22/bfd/configure 2011-11-21 11:55:48.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/configure 2012-04-03 22:12:53.000000000 +0100
|
||||
@@ -13508,6 +13508,22 @@
|
||||
|
||||
fi
|
||||
|
||||
+
|
||||
+for ac_header in windows.h dlfcn.h
|
||||
+do :
|
||||
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||
+eval as_val=\$$as_ac_Header
|
||||
+ if test "x$as_val" = x""yes; then :
|
||||
+ cat >>confdefs.h <<_ACEOF
|
||||
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
||||
+_ACEOF
|
||||
+
|
||||
+fi
|
||||
+
|
||||
+done
|
||||
+
|
||||
+
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
|
||||
$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
|
||||
if test "${gcc_cv_header_string+set}" = set; then :
|
||||
diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-psp/bfd/configure.in
|
||||
--- binutils-2.22/bfd/configure.in 2011-11-21 11:55:46.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/configure.in 2012-04-03 22:12:53.000000000 +0100
|
||||
@@ -190,6 +190,9 @@
|
||||
GCC_HEADER_STDINT(bfd_stdint.h)
|
||||
AC_HEADER_TIME
|
||||
AC_HEADER_DIRENT
|
||||
+
|
||||
+AC_CHECK_HEADERS(windows.h dlfcn.h)
|
||||
+
|
||||
ACX_HEADER_STRING
|
||||
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
|
||||
AC_CHECK_FUNCS(strtoull)
|
||||
diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c
|
||||
--- binutils-2.22/bfd/cpu-mips.c 2011-07-24 15:20:05.000000000 +0100
|
||||
+++ binutils-2.22-psp/bfd/cpu-mips.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/cpu-mips.c 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -89,6 +89,7 @@
|
||||
I_mipsisa64,
|
||||
I_mipsisa64r2,
|
||||
|
|
@ -41,7 +132,7 @@ diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c
|
|||
N (64, 64, bfd_mach_mips_loongson_3a, "mips:loongson_3a", FALSE, NN(I_loongson_3a)),
|
||||
diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c
|
||||
--- binutils-2.22/bfd/elfxx-mips.c 2011-11-21 09:29:27.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/elfxx-mips.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/elfxx-mips.c 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -6173,14 +6173,19 @@
|
||||
case E_MIPS_MACH_SB1:
|
||||
return bfd_mach_mips_sb1;
|
||||
|
|
@ -81,9 +172,64 @@ diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c
|
|||
|
||||
/* MIPS I extensions. */
|
||||
{ bfd_mach_mips6000, bfd_mach_mips3000 },
|
||||
diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-psp/bfd/plugin.c
|
||||
--- binutils-2.22/bfd/plugin.c 2011-07-11 16:03:07.000000000 +0100
|
||||
+++ binutils-2.22-psp/bfd/plugin.c 2012-04-03 22:12:53.000000000 +0100
|
||||
@@ -25,7 +25,13 @@
|
||||
#if BFD_SUPPORTS_PLUGINS
|
||||
|
||||
#include <assert.h>
|
||||
+#ifdef HAVE_DLFCN_H
|
||||
#include <dlfcn.h>
|
||||
+#elif defined (HAVE_WINDOWS_H)
|
||||
+#include <windows.h>
|
||||
+#else
|
||||
+#error Unknown how to handle dynamic-load-libraries.
|
||||
+#endif
|
||||
#include <stdarg.h>
|
||||
#include "plugin-api.h"
|
||||
#include "sysdep.h"
|
||||
@@ -34,6 +40,37 @@
|
||||
#include "libiberty.h"
|
||||
#include <dirent.h>
|
||||
|
||||
+#if !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)
|
||||
+
|
||||
+#define RTLD_NOW 0 /* Dummy value. */
|
||||
+
|
||||
+static void *
|
||||
+dlopen (const char *file, int mode ATTRIBUTE_UNUSED)
|
||||
+{
|
||||
+ return LoadLibrary (file);
|
||||
+}
|
||||
+
|
||||
+static void *
|
||||
+dlsym (void *handle, const char *name)
|
||||
+{
|
||||
+ return GetProcAddress (handle, name);
|
||||
+}
|
||||
+
|
||||
+static int ATTRIBUTE_UNUSED
|
||||
+dlclose (void *handle)
|
||||
+{
|
||||
+ FreeLibrary (handle);
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static const char *
|
||||
+dlerror (void)
|
||||
+{
|
||||
+ return "Unable to load DLL.";
|
||||
+}
|
||||
+
|
||||
+#endif /* !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H) */
|
||||
+
|
||||
#define bfd_plugin_close_and_cleanup _bfd_generic_close_and_cleanup
|
||||
#define bfd_plugin_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
|
||||
#define bfd_plugin_new_section_hook _bfd_generic_new_section_hook
|
||||
diff -Nbaur binutils-2.22/bfd/version.h binutils-2.22-psp/bfd/version.h
|
||||
--- binutils-2.22/bfd/version.h 2011-11-21 09:29:28.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/version.h 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/bfd/version.h 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#define BFD_VERSION_DATE 20111121
|
||||
+#define BFD_VERSION_DATE (PSNPT 20120103)
|
||||
|
|
@ -92,7 +238,7 @@ diff -Nbaur binutils-2.22/bfd/version.h binutils-2.22-psp/bfd/version.h
|
|||
#define REPORT_BUGS_TO @report_bugs_to@
|
||||
diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.c
|
||||
--- binutils-2.22/binutils/readelf.c 2011-09-21 21:49:13.000000000 +0100
|
||||
+++ binutils-2.22-psp/binutils/readelf.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/binutils/readelf.c 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -2395,10 +2395,11 @@
|
||||
case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break;
|
||||
case E_MIPS_MACH_LS2E: strcat (buf, ", loongson-2e"); break;
|
||||
|
|
@ -108,7 +254,7 @@ diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.
|
|||
MIPS ELF does not specify EF_MIPS_MACH, it is a GNU
|
||||
diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub
|
||||
--- binutils-2.22/config.sub 2011-06-06 11:36:06.000000000 +0100
|
||||
+++ binutils-2.22-psp/config.sub 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/config.sub 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -279,6 +279,7 @@
|
||||
| mipsisa64sb1 | mipsisa64sb1el \
|
||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||
|
|
@ -138,7 +284,7 @@ diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub
|
|||
;;
|
||||
diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure
|
||||
--- binutils-2.22/configure 2011-08-14 13:28:15.000000000 +0100
|
||||
+++ binutils-2.22-psp/configure 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/configure 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -2667,7 +2667,7 @@
|
||||
# binutils, gas and ld appear in that order because it makes sense to run
|
||||
# "make check" in that particular order.
|
||||
|
|
@ -158,7 +304,7 @@ diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure
|
|||
case "${target}" in
|
||||
diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-mips.c
|
||||
--- binutils-2.22/gas/config/tc-mips.c 2011-11-21 09:29:32.000000000 +0000
|
||||
+++ binutils-2.22-psp/gas/config/tc-mips.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/gas/config/tc-mips.c 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -91,8 +91,32 @@
|
||||
|
||||
#define ZERO 0
|
||||
|
|
@ -2026,7 +2172,7 @@ diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-m
|
|||
{ "r4000", 0, ISA_MIPS3, CPU_R4000 },
|
||||
diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure
|
||||
--- binutils-2.22/gas/configure 2011-05-18 10:41:14.000000000 +0100
|
||||
+++ binutils-2.22-psp/gas/configure 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/gas/configure 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -12043,6 +12043,9 @@
|
||||
mips64vr | mips64vrel)
|
||||
mips_cpu=vr4100
|
||||
|
|
@ -2039,7 +2185,7 @@ diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure
|
|||
;;
|
||||
diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in
|
||||
--- binutils-2.22/gas/configure.in 2011-05-18 10:41:14.000000000 +0100
|
||||
+++ binutils-2.22-psp/gas/configure.in 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/gas/configure.in 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -213,6 +213,9 @@
|
||||
mips64vr | mips64vrel)
|
||||
mips_cpu=vr4100
|
||||
|
|
@ -2052,7 +2198,7 @@ diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in
|
|||
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
|
||||
diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp
|
||||
--- binutils-2.22/gas/testsuite/gas/mips/mips.exp 2011-11-21 09:29:32.000000000 +0000
|
||||
+++ binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -409,6 +409,9 @@
|
||||
mips_arch_create sb1 64 mips64 { mips3d } \
|
||||
{ -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
|
||||
|
|
@ -2065,7 +2211,7 @@ diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/
|
|||
{ mips64octeon*-*-* }
|
||||
diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/common.h
|
||||
--- binutils-2.22/include/elf/common.h 2011-07-22 21:22:36.000000000 +0100
|
||||
+++ binutils-2.22-psp/include/elf/common.h 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/include/elf/common.h 2012-04-03 22:08:06.000000000 +0100
|
||||
@@ -96,6 +96,7 @@
|
||||
#define ET_HIOS 0xFEFF /* Operating system-specific */
|
||||
#define ET_LOPROC 0xFF00 /* Processor-specific */
|
||||
|
|
@ -2076,7 +2222,7 @@ diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/com
|
|||
are officially assigned by registry@sco.com. See below for a list of
|
||||
diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.h
|
||||
--- binutils-2.22/include/elf/mips.h 2011-07-24 15:20:12.000000000 +0100
|
||||
+++ binutils-2.22-psp/include/elf/mips.h 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/include/elf/mips.h 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -265,6 +265,7 @@
|
||||
#define E_MIPS_MACH_5400 0x00910000
|
||||
#define E_MIPS_MACH_5500 0x00980000
|
||||
|
|
@ -2087,7 +2233,7 @@ diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.
|
|||
#define E_MIPS_MACH_LS3A 0x00A20000
|
||||
diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode/mips.h
|
||||
--- binutils-2.22/include/opcode/mips.h 2011-08-09 16:20:03.000000000 +0100
|
||||
+++ binutils-2.22-psp/include/opcode/mips.h 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/include/opcode/mips.h 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -216,6 +216,228 @@
|
||||
#define MDMX_FMTSEL_VEC_QH 0x15
|
||||
#define MDMX_FMTSEL_VEC_OB 0x16
|
||||
|
|
@ -2446,7 +2592,7 @@ diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode
|
|||
M_COP1,
|
||||
diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode/vfpu.h
|
||||
--- binutils-2.22/include/opcode/vfpu.h 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ binutils-2.22-psp/include/opcode/vfpu.h 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/include/opcode/vfpu.h 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -0,0 +1,261 @@
|
||||
+#ifndef _VFPU_H_
|
||||
+#define _VFPU_H_
|
||||
|
|
@ -2709,51 +2855,9 @@ diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode
|
|||
+#define VFPU_MASK_SYNC 0xffff0000
|
||||
+
|
||||
+#endif /* _VFPU_H_ */
|
||||
diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am
|
||||
--- binutils-2.22/ld/Makefile.am 2011-07-22 21:22:37.000000000 +0100
|
||||
+++ binutils-2.22-psp/ld/Makefile.am 2012-02-25 14:09:05.000000000 +0000
|
||||
@@ -262,6 +262,7 @@
|
||||
eelf_i386_ldso.c \
|
||||
eelf_i386_sol2.c \
|
||||
eelf_i386_vxworks.c \
|
||||
+ eelf_mipsallegrexel_psp.o \
|
||||
eelf_s390.c \
|
||||
egld960.c \
|
||||
egld960coff.c \
|
||||
@@ -1196,6 +1197,9 @@
|
||||
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_vxworks "$(tdir_elf_i386_vxworks)"
|
||||
+eelf_mipsallegrexel_psp.c: $(srcdir)/emulparams/elf_mipsallegrexel_psp.sh \
|
||||
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_psp.sc ${GEN_DEPENDS}
|
||||
+ ${GENSCRIPTS} elf_mipsallegrexel_psp "$(tdir_elf_mipsallegrexel_psp)"
|
||||
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
|
||||
diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in
|
||||
--- binutils-2.22/ld/Makefile.in 2011-07-22 21:22:37.000000000 +0100
|
||||
+++ binutils-2.22-psp/ld/Makefile.in 2012-02-25 14:09:05.000000000 +0000
|
||||
@@ -568,6 +568,7 @@
|
||||
eelf_i386_ldso.c \
|
||||
eelf_i386_sol2.c \
|
||||
eelf_i386_vxworks.c \
|
||||
+ eelf_mipsallegrexel_psp.o \
|
||||
eelf_s390.c \
|
||||
egld960.c \
|
||||
egld960coff.c \
|
||||
@@ -2649,6 +2650,9 @@
|
||||
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_vxworks "$(tdir_elf_i386_vxworks)"
|
||||
+eelf_mipsallegrexel_psp.c: $(srcdir)/emulparams/elf_mipsallegrexel_psp.sh \
|
||||
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_psp.sc ${GEN_DEPENDS}
|
||||
+ ${GENSCRIPTS} elf_mipsallegrexel_psp "$(tdir_elf_mipsallegrexel_psp)"
|
||||
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
|
||||
diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt
|
||||
--- binutils-2.22/ld/configure.tgt 2011-11-21 09:29:37.000000000 +0000
|
||||
+++ binutils-2.22-psp/ld/configure.tgt 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/ld/configure.tgt 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -383,6 +383,8 @@
|
||||
mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
|
||||
mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
|
||||
|
|
@ -2765,7 +2869,7 @@ diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt
|
|||
mips*-sde-elf*) targ_emul=elf32btsmip
|
||||
diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh
|
||||
--- binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -0,0 +1,22 @@
|
||||
+# Based off of the default elf32 MIPS target. However, we use a seperate
|
||||
+# script template because the PSP architecture defines sections that normally
|
||||
|
|
@ -2789,9 +2893,51 @@ diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-
|
|||
+
|
||||
+# Discard the .comment and .pdr sections.
|
||||
+OTHER_SECTIONS="/DISCARD/ : { *(.comment) *(.pdr) }"
|
||||
diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am
|
||||
--- binutils-2.22/ld/Makefile.am 2011-07-22 21:22:37.000000000 +0100
|
||||
+++ binutils-2.22-psp/ld/Makefile.am 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -262,6 +262,7 @@
|
||||
eelf_i386_ldso.c \
|
||||
eelf_i386_sol2.c \
|
||||
eelf_i386_vxworks.c \
|
||||
+ eelf_mipsallegrexel_psp.o \
|
||||
eelf_s390.c \
|
||||
egld960.c \
|
||||
egld960coff.c \
|
||||
@@ -1196,6 +1197,9 @@
|
||||
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_vxworks "$(tdir_elf_i386_vxworks)"
|
||||
+eelf_mipsallegrexel_psp.c: $(srcdir)/emulparams/elf_mipsallegrexel_psp.sh \
|
||||
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_psp.sc ${GEN_DEPENDS}
|
||||
+ ${GENSCRIPTS} elf_mipsallegrexel_psp "$(tdir_elf_mipsallegrexel_psp)"
|
||||
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
|
||||
diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in
|
||||
--- binutils-2.22/ld/Makefile.in 2011-07-22 21:22:37.000000000 +0100
|
||||
+++ binutils-2.22-psp/ld/Makefile.in 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -568,6 +568,7 @@
|
||||
eelf_i386_ldso.c \
|
||||
eelf_i386_sol2.c \
|
||||
eelf_i386_vxworks.c \
|
||||
+ eelf_mipsallegrexel_psp.o \
|
||||
eelf_s390.c \
|
||||
egld960.c \
|
||||
egld960coff.c \
|
||||
@@ -2649,6 +2650,9 @@
|
||||
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_vxworks "$(tdir_elf_i386_vxworks)"
|
||||
+eelf_mipsallegrexel_psp.c: $(srcdir)/emulparams/elf_mipsallegrexel_psp.sh \
|
||||
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_psp.sc ${GEN_DEPENDS}
|
||||
+ ${GENSCRIPTS} elf_mipsallegrexel_psp "$(tdir_elf_mipsallegrexel_psp)"
|
||||
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
|
||||
diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scripttempl/elf_psp.sc
|
||||
--- binutils-2.22/ld/scripttempl/elf_psp.sc 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ binutils-2.22-psp/ld/scripttempl/elf_psp.sc 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/ld/scripttempl/elf_psp.sc 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -0,0 +1,496 @@
|
||||
+#
|
||||
+# Unusual variables checked by this code:
|
||||
|
|
@ -3291,7 +3437,7 @@ diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scriptt
|
|||
+EOF
|
||||
diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.c
|
||||
--- binutils-2.22/opcodes/mips-dis.c 2011-08-09 16:20:03.000000000 +0100
|
||||
+++ binutils-2.22-psp/opcodes/mips-dis.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/opcodes/mips-dis.c 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -245,6 +245,139 @@
|
||||
"c0_taglo", "c0_taghi", "c0_errorepc", "c0_desave",
|
||||
};
|
||||
|
|
@ -3848,7 +3994,7 @@ diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.
|
|||
(*info->fprintf_func) (info->stream,
|
||||
diff -Nbaur binutils-2.22/opcodes/mips-opc.c binutils-2.22-psp/opcodes/mips-opc.c
|
||||
--- binutils-2.22/opcodes/mips-opc.c 2011-08-09 16:20:03.000000000 +0100
|
||||
+++ binutils-2.22-psp/opcodes/mips-opc.c 2012-02-25 14:09:05.000000000 +0000
|
||||
+++ binutils-2.22-psp/opcodes/mips-opc.c 2012-04-03 22:08:07.000000000 +0100
|
||||
@@ -121,6 +121,7 @@
|
||||
#define N5 (INSN_5400 | INSN_5500)
|
||||
#define N54 INSN_5400
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user