diff options
Diffstat (limited to 'packages/binutils/2.26.1')
-rw-r--r-- | packages/binutils/2.26.1/0000-sh-conf.patch (renamed from packages/binutils/2.26.1/120-sh-conf.patch) | 13 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0001-001_ld_makefile_patch.patch (renamed from packages/binutils/2.26.1/300-001_ld_makefile_patch.patch) | 13 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0002-012_check_ldrunpath_length.patch (renamed from packages/binutils/2.26.1/300-012_check_ldrunpath_length.patch) | 10 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0003-fix-gold-pthreads-typo.patch (renamed from packages/binutils/2.26.1/310-fix-gold-pthreads-typo.patch) | 8 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0004-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch (renamed from packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch) | 8 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0005-Dont-link-to-libfl-as-its-unnecessary.patch (renamed from packages/binutils/2.26.1/330-Dont-link-to-libfl-as-its-unnecessary.patch) | 39 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0006-Darwin-gold-binary-cc-include-string-not-cstring.patch (renamed from packages/binutils/2.26.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch) | 6 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0007-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch (renamed from packages/binutils/2.26.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch) | 23 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0008-sysroot.patch (renamed from packages/binutils/2.26.1/500-sysroot.patch) | 6 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0009-poison-system-directories.patch (renamed from packages/binutils/2.26.1/600-poison-system-directories.patch) | 56 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0010-Fix-library-paths-on-PowerPC.patch (renamed from packages/binutils/2.26.1/700-Fix-library-paths-on-PowerPC.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0011-xtensa-fix-signedness-of-gas-relocations.patch (renamed from packages/binutils/2.26.1/914-xtensa-fix-signedness-of-gas-relocations.patch) | 25 | ||||
-rw-r--r-- | packages/binutils/2.26.1/0012-xtensa-fix-.init-.fini-literals-moving.patch (renamed from packages/binutils/2.26.1/915-xtensa-fix-.init-.fini-literals-moving.patch) | 27 |
13 files changed, 107 insertions, 136 deletions
diff --git a/packages/binutils/2.26.1/120-sh-conf.patch b/packages/binutils/2.26.1/0000-sh-conf.patch index c12a023..a41d630 100644 --- a/packages/binutils/2.26.1/120-sh-conf.patch +++ b/packages/binutils/2.26.1/0000-sh-conf.patch @@ -5,11 +5,14 @@ fix that up too.. now we're able to actually build a real toolchain for sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more inept targets than that one, really. Go look, I promise). -diff --git a/configure b/configure -index 87677bc..2d916f1 100755 +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + --- a/configure +++ b/configure -@@ -3812,7 +3812,7 @@ case "${target}" in +@@ -3939,7 +3939,7 @@ or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; @@ -18,11 +21,9 @@ index 87677bc..2d916f1 100755 case "${target}" in sh*-*-elf) ;; -diff --git a/configure.ac b/configure.ac -index 8fe0eca..b10a99f 100644 --- a/configure.ac +++ b/configure.ac -@@ -1140,7 +1140,7 @@ case "${target}" in +@@ -1276,7 +1276,7 @@ or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; diff --git a/packages/binutils/2.26.1/300-001_ld_makefile_patch.patch b/packages/binutils/2.26.1/0001-001_ld_makefile_patch.patch index 2a1320c..d2e1cd9 100644 --- a/packages/binutils/2.26.1/300-001_ld_makefile_patch.patch +++ b/packages/binutils/2.26.1/0001-001_ld_makefile_patch.patch @@ -1,8 +1,11 @@ -diff --git a/ld/Makefile.am b/ld/Makefile.am -index 9575f1f..84df0bf 100644 +--- + ld/Makefile.am | 2 +- + ld/Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + --- a/ld/Makefile.am +++ b/ld/Makefile.am -@@ -54,7 +54,7 @@ endif +@@ -57,7 +57,7 @@ # We put the scripts in the directory $(scriptdir)/ldscripts. # We can't put the scripts in $(datadir) because the SEARCH_DIR # directives need to be different for native and cross linkers. @@ -11,11 +14,9 @@ index 9575f1f..84df0bf 100644 EMUL = @EMUL@ EMULATION_OFILES = @EMULATION_OFILES@ -diff --git a/ld/Makefile.in b/ld/Makefile.in -index 9f56ca1..272860f 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in -@@ -388,7 +388,7 @@ AM_CFLAGS = $(WARN_CFLAGS) +@@ -413,7 +413,7 @@ # We put the scripts in the directory $(scriptdir)/ldscripts. # We can't put the scripts in $(datadir) because the SEARCH_DIR # directives need to be different for native and cross linkers. diff --git a/packages/binutils/2.26.1/300-012_check_ldrunpath_length.patch b/packages/binutils/2.26.1/0002-012_check_ldrunpath_length.patch index f1f31af..e3d6508 100644 --- a/packages/binutils/2.26.1/300-012_check_ldrunpath_length.patch +++ b/packages/binutils/2.26.1/0002-012_check_ldrunpath_length.patch @@ -1,8 +1,10 @@ -diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em -index 137446f..bb8391a 100644 +--- + ld/emultempl/elf32.em | 4 ++++ + 1 file changed, 4 insertions(+) + --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em -@@ -1195,6 +1195,8 @@ fragment <<EOF +@@ -1242,6 +1242,8 @@ && command_line.rpath == NULL) { lib_path = (const char *) getenv ("LD_RUN_PATH"); @@ -11,7 +13,7 @@ index 137446f..bb8391a 100644 if (gld${EMULATION_NAME}_search_needed (lib_path, &n, force)) break; -@@ -1458,6 +1460,8 @@ gld${EMULATION_NAME}_before_allocation (void) +@@ -1523,6 +1525,8 @@ rpath = command_line.rpath; if (rpath == NULL) rpath = (const char *) getenv ("LD_RUN_PATH"); diff --git a/packages/binutils/2.26.1/310-fix-gold-pthreads-typo.patch b/packages/binutils/2.26.1/0003-fix-gold-pthreads-typo.patch index f2e6ff2..40861f5 100644 --- a/packages/binutils/2.26.1/310-fix-gold-pthreads-typo.patch +++ b/packages/binutils/2.26.1/0003-fix-gold-pthreads-typo.patch @@ -1,5 +1,9 @@ ---- binutils-2.25.1/gold/gold-threads.cc.orig 2014-10-14 08:32:04.000000000 +0100 -+++ binutils-2.25.1/gold/gold-threads.cc 2015-10-20 22:38:18.640819300 +0100 +--- + gold/gold-threads.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/gold/gold-threads.cc ++++ b/gold/gold-threads.cc @@ -102,9 +102,9 @@ if (err != 0) gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err)); diff --git a/packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.26.1/0004-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch index f9a8af6..c086798 100644 --- a/packages/binutils/2.26.1/320-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch +++ b/packages/binutils/2.26.1/0004-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch @@ -1,5 +1,9 @@ ---- binutils-2.25.1/gold/gold-threads.cc.orig 2015-10-20 22:39:36.371169400 +0100 -+++ binutils-2.25.1/gold/gold-threads.cc 2015-10-20 22:39:38.182772700 +0100 +--- + gold/gold-threads.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/gold/gold-threads.cc ++++ b/gold/gold-threads.cc @@ -101,7 +101,7 @@ int err = pthread_mutexattr_init(&attr); if (err != 0) diff --git a/packages/binutils/2.26.1/330-Dont-link-to-libfl-as-its-unnecessary.patch b/packages/binutils/2.26.1/0005-Dont-link-to-libfl-as-its-unnecessary.patch index 334ee3e..afe9bc5 100644 --- a/packages/binutils/2.26.1/330-Dont-link-to-libfl-as-its-unnecessary.patch +++ b/packages/binutils/2.26.1/0005-Dont-link-to-libfl-as-its-unnecessary.patch @@ -1,8 +1,15 @@ -diff --git a/binutils/configure b/binutils/configure -index 6e1f21e..78bf4ae 100755 +--- + binutils/configure | 3 +++ + binutils/configure.ac | 3 +++ + gas/configure | 3 +++ + gas/configure.ac | 3 +++ + ld/configure | 3 +++ + ld/configure.ac | 3 +++ + 6 files changed, 18 insertions(+) + --- a/binutils/configure +++ b/binutils/configure -@@ -12069,6 +12069,7 @@ fi +@@ -12069,6 +12069,7 @@ done test -n "$YACC" || YACC="yacc" @@ -10,7 +17,7 @@ index 6e1f21e..78bf4ae 100755 for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. -@@ -12230,6 +12231,8 @@ esac +@@ -12230,6 +12231,8 @@ if test "$LEX" = :; then LEX=${am_missing_run}flex fi @@ -19,11 +26,9 @@ index 6e1f21e..78bf4ae 100755 ALL_LINGUAS="bg ca da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr" # If we haven't got the data from the intl directory, -diff --git a/binutils/configure.ac b/binutils/configure.ac -index defe781..8fd236a 100644 --- a/binutils/configure.ac +++ b/binutils/configure.ac -@@ -87,7 +87,10 @@ if test -z "$host" ; then +@@ -87,7 +87,10 @@ fi AC_PROG_YACC @@ -34,11 +39,9 @@ index defe781..8fd236a 100644 ALL_LINGUAS="bg ca da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr" ZW_GNU_GETTEXT_SISTER_DIR -diff --git a/gas/configure b/gas/configure -index f959e95..9bb4043 100755 --- a/gas/configure +++ b/gas/configure -@@ -12819,6 +12819,7 @@ fi +@@ -12853,6 +12853,7 @@ done test -n "$YACC" || YACC="yacc" @@ -46,7 +49,7 @@ index f959e95..9bb4043 100755 for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. -@@ -12980,6 +12981,8 @@ esac +@@ -13014,6 +13015,8 @@ if test "$LEX" = :; then LEX=${am_missing_run}flex fi @@ -55,11 +58,9 @@ index f959e95..9bb4043 100755 ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN" # If we haven't got the data from the intl directory, -diff --git a/gas/configure.ac b/gas/configure.ac -index 07f825d..c552b7e 100644 --- a/gas/configure.ac +++ b/gas/configure.ac -@@ -734,7 +734,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${target_vendor}", [Target vendor.]) +@@ -763,7 +763,10 @@ AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.]) AC_PROG_YACC @@ -70,11 +71,9 @@ index 07f825d..c552b7e 100644 ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN" ZW_GNU_GETTEXT_SISTER_DIR -diff --git a/ld/configure b/ld/configure -index a446283..1a6bf81 100755 --- a/ld/configure +++ b/ld/configure -@@ -16087,6 +16087,7 @@ fi +@@ -16087,6 +16087,7 @@ done test -n "$YACC" || YACC="yacc" @@ -82,7 +81,7 @@ index a446283..1a6bf81 100755 for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. -@@ -16248,6 +16249,8 @@ esac +@@ -16248,6 +16249,8 @@ if test "$LEX" = :; then LEX=${am_missing_run}flex fi @@ -91,11 +90,9 @@ index a446283..1a6bf81 100755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 -diff --git a/ld/configure.ac b/ld/configure.ac -index 188172d..45eec53 100644 --- a/ld/configure.ac +++ b/ld/configure.ac -@@ -186,7 +186,10 @@ AM_PO_SUBDIRS +@@ -186,7 +186,10 @@ AC_EXEEXT AC_PROG_YACC diff --git a/packages/binutils/2.26.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch b/packages/binutils/2.26.1/0006-Darwin-gold-binary-cc-include-string-not-cstring.patch index e4f235b..fbc4041 100644 --- a/packages/binutils/2.26.1/340-Darwin-gold-binary-cc-include-string-not-cstring.patch +++ b/packages/binutils/2.26.1/0006-Darwin-gold-binary-cc-include-string-not-cstring.patch @@ -1,5 +1,7 @@ -diff --git a/gold/binary.cc b/gold/binary.cc -index 52df81a..03a8f20 100644 +--- + gold/binary.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + --- a/gold/binary.cc +++ b/gold/binary.cc @@ -23,7 +23,7 @@ diff --git a/packages/binutils/2.26.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch b/packages/binutils/2.26.1/0007-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch index 6168b31..bfb2258 100644 --- a/packages/binutils/2.26.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch +++ b/packages/binutils/2.26.1/0007-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch @@ -9,15 +9,13 @@ Subject: [PATCH] Fix darwin build Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e --- - binutils-2.25/bfd/peXXigen.c | 22 ++++++++++++++++++++++ - binutils-2.25/gold/gold-threads.cc | 15 ++++++++++++--- + bfd/peXXigen.c | 22 ++++++++++++++++++++++ + gold/gold-threads.cc | 15 ++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) -diff --git binutils-2.25.orig/bfd/peXXigen.c binutils-2.25/bfd/peXXigen.c -index 13e39e4..7a98306 100644 ---- binutils-2.25.orig/bfd/peXXigen.c -+++ binutils-2.25/bfd/peXXigen.c -@@ -3522,6 +3522,28 @@ u16_mbtouc (wchar_t * puc, const unsigned short * s, unsigned int n) +--- a/bfd/peXXigen.c ++++ b/bfd/peXXigen.c +@@ -3578,6 +3578,28 @@ } #endif /* HAVE_WCHAR_H and not Cygwin/Mingw */ @@ -46,11 +44,9 @@ index 13e39e4..7a98306 100644 /* Perform a comparison of two entries. */ static signed int rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b) -diff --git binutils-2.25.orig/gold/gold-threads.cc binutils-2.25/gold/gold-threads.cc -index ff5a8ac..45140e0 100644 ---- binutils-2.25.orig/gold/gold-threads.cc -+++ binutils-2.25/gold/gold-threads.cc -@@ -284,9 +284,18 @@ Condvar::~Condvar() +--- a/gold/gold-threads.cc ++++ b/gold/gold-threads.cc +@@ -284,9 +284,18 @@ class Once_initialize { public: @@ -72,6 +68,3 @@ index ff5a8ac..45140e0 100644 // Return a pointer to the pthread_once_t variable. pthread_once_t* --- -2.1.3 - diff --git a/packages/binutils/2.26.1/500-sysroot.patch b/packages/binutils/2.26.1/0008-sysroot.patch index e49c795..636234b 100644 --- a/packages/binutils/2.26.1/500-sysroot.patch +++ b/packages/binutils/2.26.1/0008-sysroot.patch @@ -5,9 +5,13 @@ Always try to prepend the sysroot prefix to absolute filenames first. http://bugs.gentoo.org/275666 http://sourceware.org/bugzilla/show_bug.cgi?id=10340 +--- + ld/ldfile.c | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + --- a/ld/ldfile.c +++ b/ld/ldfile.c -@@ -308,18 +308,25 @@ +@@ -335,18 +335,25 @@ directory first. */ if (! entry->flags.maybe_archive) { diff --git a/packages/binutils/2.26.1/600-poison-system-directories.patch b/packages/binutils/2.26.1/0009-poison-system-directories.patch index aa04082..ad59414 100644 --- a/packages/binutils/2.26.1/600-poison-system-directories.patch +++ b/packages/binutils/2.26.1/0009-poison-system-directories.patch @@ -59,8 +59,18 @@ Code Merged from Sourcery G++ binutils 2.19 - 4.4-277 Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com> -diff --git a/ld/config.in b/ld/config.in -index 276fb77..35c58eb 100644 +--- + ld/config.in | 3 +++ + ld/configure | 14 ++++++++++++++ + ld/configure.ac | 10 ++++++++++ + ld/ld.h | 8 ++++++++ + ld/ld.texinfo | 12 ++++++++++++ + ld/ldfile.c | 17 +++++++++++++++++ + ld/ldlex.h | 2 ++ + ld/ldmain.c | 2 ++ + ld/lexsup.c | 21 +++++++++++++++++++++ + 9 files changed, 89 insertions(+) + --- a/ld/config.in +++ b/ld/config.in @@ -14,6 +14,9 @@ @@ -73,11 +83,9 @@ index 276fb77..35c58eb 100644 /* Additional extension a shared object might have. */ #undef EXTRA_SHLIB_EXTENSION -diff --git a/ld/configure b/ld/configure -index a446283..d1f9504 100755 --- a/ld/configure +++ b/ld/configure -@@ -786,6 +786,7 @@ with_lib_path +@@ -786,6 +786,7 @@ enable_targets enable_64_bit_bfd with_sysroot @@ -85,7 +93,7 @@ index a446283..d1f9504 100755 enable_gold enable_got enable_compressed_debug_sections -@@ -1442,6 +1443,8 @@ Optional Features: +@@ -1442,6 +1443,8 @@ --disable-largefile omit support for large files --enable-targets alternative target configurations --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) @@ -94,7 +102,7 @@ index a446283..d1f9504 100755 --enable-gold[=ARG] build gold [ARG={default,yes,no}] --enable-got=<type> GOT handling scheme (target, single, negative, multigot) -@@ -15491,7 +15494,18 @@ else +@@ -15491,7 +15494,18 @@ fi @@ -113,11 +121,9 @@ index a446283..d1f9504 100755 # Check whether --enable-got was given. if test "${enable_got+set}" = set; then : -diff --git a/ld/configure.ac b/ld/configure.ac -index 188172d..2cd8443 100644 --- a/ld/configure.ac +++ b/ld/configure.ac -@@ -95,6 +95,16 @@ AC_SUBST(use_sysroot) +@@ -95,6 +95,16 @@ AC_SUBST(TARGET_SYSTEM_ROOT) AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) @@ -134,11 +140,9 @@ index 188172d..2cd8443 100644 dnl Use --enable-gold to decide if this linker should be the default. dnl "install_as_default" is set to false if gold is the default linker. dnl "installed_linker" is the installed BFD linker name. -diff --git a/ld/ld.h b/ld/ld.h -index d84ec4e..3476b26 100644 --- a/ld/ld.h +++ b/ld/ld.h -@@ -164,6 +164,14 @@ typedef struct { +@@ -164,6 +164,14 @@ /* If set, display the target memory usage (per memory region). */ bfd_boolean print_memory_usage; @@ -153,11 +157,9 @@ index d84ec4e..3476b26 100644 /* Big or little endian as set on command line. */ enum endian_enum endian; -diff --git a/ld/ld.texinfo b/ld/ld.texinfo -index 1dd7492..fb1438e 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo -@@ -2332,6 +2332,18 @@ string identifying the original linked file does not change. +@@ -2338,6 +2338,18 @@ Passing @code{none} for @var{style} disables the setting from any @code{--build-id} options earlier on the command line. @@ -176,11 +178,9 @@ index 1dd7492..fb1438e 100644 @end table @c man end -diff --git a/ld/ldfile.c b/ld/ldfile.c -index 96f9ecc..af231c0 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c -@@ -114,6 +114,23 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline) +@@ -114,6 +114,23 @@ new_dirs->name = concat (ld_sysroot, name + 1, (const char *) NULL); else new_dirs->name = xstrdup (name); @@ -204,11 +204,9 @@ index 96f9ecc..af231c0 100644 } /* Try to open a BFD for a lang_input_statement. */ -diff --git a/ld/ldlex.h b/ld/ldlex.h -index 6f11e7b..0ca3110 100644 --- a/ld/ldlex.h +++ b/ld/ldlex.h -@@ -144,6 +144,8 @@ enum option_values +@@ -144,6 +144,8 @@ OPTION_PRINT_MEMORY_USAGE, OPTION_REQUIRE_DEFINED_SYMBOL, OPTION_ORPHAN_HANDLING, @@ -217,11 +215,9 @@ index 6f11e7b..0ca3110 100644 }; /* The initial parser states. */ -diff --git a/ld/ldmain.c b/ld/ldmain.c -index bb0b9cc..a23c56c 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c -@@ -257,6 +257,8 @@ main (int argc, char **argv) +@@ -257,6 +257,8 @@ command_line.warn_mismatch = TRUE; command_line.warn_search_mismatch = TRUE; command_line.check_section_addresses = -1; @@ -230,11 +226,9 @@ index bb0b9cc..a23c56c 100644 /* We initialize DEMANGLING based on the environment variable COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the -diff --git a/ld/lexsup.c b/ld/lexsup.c -index 4cad209..be7d584 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c -@@ -530,6 +530,14 @@ static const struct ld_option ld_options[] = +@@ -530,6 +530,14 @@ { {"orphan-handling", required_argument, NULL, OPTION_ORPHAN_HANDLING}, '\0', N_("=MODE"), N_("Control how orphan sections are handled."), TWO_DASHES }, @@ -249,7 +243,7 @@ index 4cad209..be7d584 100644 }; #define OPTION_COUNT ARRAY_SIZE (ld_options) -@@ -542,6 +550,7 @@ parse_args (unsigned argc, char **argv) +@@ -542,6 +550,7 @@ int ingroup = 0; char *default_dirlist = NULL; char *shortopts; @@ -257,7 +251,7 @@ index 4cad209..be7d584 100644 struct option *longopts; struct option *really_longopts; int last_optind; -@@ -1516,6 +1525,14 @@ parse_args (unsigned argc, char **argv) +@@ -1516,6 +1525,14 @@ } break; @@ -272,7 +266,7 @@ index 4cad209..be7d584 100644 case OPTION_PUSH_STATE: input_flags.pushed = xmemdup (&input_flags, sizeof (input_flags), -@@ -1559,6 +1576,10 @@ parse_args (unsigned argc, char **argv) +@@ -1559,6 +1576,10 @@ command_line.soname = NULL; } diff --git a/packages/binutils/2.26.1/700-Fix-library-paths-on-PowerPC.patch b/packages/binutils/2.26.1/0010-Fix-library-paths-on-PowerPC.patch index cea92f3..4bcc748 100644 --- a/packages/binutils/2.26.1/700-Fix-library-paths-on-PowerPC.patch +++ b/packages/binutils/2.26.1/0010-Fix-library-paths-on-PowerPC.patch @@ -13,14 +13,12 @@ depend on whether it is built on LE or BE machine. Signed-off-by: Alexey Neyman <stilor@att.net> --- - ld/emulparams/elf32ppccommon.sh | 10 +++++----- + ld/emulparams/elf32ppccommon.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -diff --git a/ld/emulparams/elf32ppccommon.sh b/ld/emulparams/elf32ppccommon.sh -index 1f54ef8..d00cf68 100644 --- a/ld/emulparams/elf32ppccommon.sh +++ b/ld/emulparams/elf32ppccommon.sh -@@ -44,11 +44,11 @@ fi +@@ -44,11 +44,11 @@ # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first. # Similarly, look for 32 bit libraries in /lib32, /usr/lib32 etc. @@ -37,6 +35,3 @@ index 1f54ef8..d00cf68 100644 *:*64lppc*) LIBPATH_SUFFIX=64le ;; *:*32lppc*) LIBPATH_SUFFIX=32le ;; *:*64*) LIBPATH_SUFFIX=64 ;; --- -2.9.3 - diff --git a/packages/binutils/2.26.1/914-xtensa-fix-signedness-of-gas-relocations.patch b/packages/binutils/2.26.1/0011-xtensa-fix-signedness-of-gas-relocations.patch index 66d4e60..77b4af3 100644 --- a/packages/binutils/2.26.1/914-xtensa-fix-signedness-of-gas-relocations.patch +++ b/packages/binutils/2.26.1/0011-xtensa-fix-signedness-of-gas-relocations.patch @@ -21,19 +21,17 @@ gas/ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- - gas/config/tc-xtensa.c | 6 +++--- - gas/testsuite/gas/xtensa/all.exp | 1 + - gas/testsuite/gas/xtensa/loc.d | 10 ++++++++++ - gas/testsuite/gas/xtensa/loc.s | 7 +++++++ + gas/config/tc-xtensa.c | 6 +++--- + gas/testsuite/gas/xtensa/all.exp | 1 + + gas/testsuite/gas/xtensa/loc.d | 10 ++++++++++ + gas/testsuite/gas/xtensa/loc.s | 7 +++++++ 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 gas/testsuite/gas/xtensa/loc.d create mode 100644 gas/testsuite/gas/xtensa/loc.s -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index a119871..36a06cc 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -5961,15 +5961,15 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg) +@@ -5961,15 +5961,15 @@ { case BFD_RELOC_8: fixP->fx_r_type = BFD_RELOC_XTENSA_DIFF8; @@ -52,11 +50,9 @@ index a119871..36a06cc 100644 break; default: break; -diff --git a/gas/testsuite/gas/xtensa/all.exp b/gas/testsuite/gas/xtensa/all.exp -index 31b725b..7ff7bd7 100644 --- a/gas/testsuite/gas/xtensa/all.exp +++ b/gas/testsuite/gas/xtensa/all.exp -@@ -101,6 +101,7 @@ if [istarget xtensa*-*-*] then { +@@ -101,6 +101,7 @@ run_dump_test "trampoline" run_dump_test "first_frag_align" run_dump_test "auto-litpools" @@ -64,9 +60,6 @@ index 31b725b..7ff7bd7 100644 } if [info exists errorInfo] then { -diff --git a/gas/testsuite/gas/xtensa/loc.d b/gas/testsuite/gas/xtensa/loc.d -new file mode 100644 -index 0000000..71983cc --- /dev/null +++ b/gas/testsuite/gas/xtensa/loc.d @@ -0,0 +1,10 @@ @@ -80,9 +73,6 @@ index 0000000..71983cc +#... +.*R_XTENSA_DIFF16.*\.text\+0x00009c42 +#... -diff --git a/gas/testsuite/gas/xtensa/loc.s b/gas/testsuite/gas/xtensa/loc.s -new file mode 100644 -index 0000000..029e14e --- /dev/null +++ b/gas/testsuite/gas/xtensa/loc.s @@ -0,0 +1,7 @@ @@ -93,6 +83,3 @@ index 0000000..029e14e + .space 40000 + .loc 1 5 + nop --- -2.1.4 - diff --git a/packages/binutils/2.26.1/915-xtensa-fix-.init-.fini-literals-moving.patch b/packages/binutils/2.26.1/0012-xtensa-fix-.init-.fini-literals-moving.patch index ead3e42..0b2b3fa 100644 --- a/packages/binutils/2.26.1/915-xtensa-fix-.init-.fini-literals-moving.patch +++ b/packages/binutils/2.26.1/0012-xtensa-fix-.init-.fini-literals-moving.patch @@ -38,19 +38,17 @@ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- Backported from: 4111950f363221c4641dc2f33bea61cc94f34906 - gas/config/tc-xtensa.c | 12 ++++++++++-- - gas/testsuite/gas/xtensa/all.exp | 1 + - gas/testsuite/gas/xtensa/init-fini-literals.d | 24 ++++++++++++++++++++++++ - gas/testsuite/gas/xtensa/init-fini-literals.s | 19 +++++++++++++++++++ + gas/config/tc-xtensa.c | 12 ++++++++++-- + gas/testsuite/gas/xtensa/all.exp | 1 + + gas/testsuite/gas/xtensa/init-fini-literals.d | 24 ++++++++++++++++++++++++ + gas/testsuite/gas/xtensa/init-fini-literals.s | 19 +++++++++++++++++++ 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 gas/testsuite/gas/xtensa/init-fini-literals.d create mode 100644 gas/testsuite/gas/xtensa/init-fini-literals.s -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index 36a06cc..5773634 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -11061,6 +11061,10 @@ xtensa_move_literals (void) +@@ -11061,6 +11061,10 @@ fixS *fix, *next_fix, **fix_splice; sym_list *lit; struct litpool_seg *lps; @@ -61,7 +59,7 @@ index 36a06cc..5773634 100644 mark_literal_frags (literal_head->next); -@@ -11171,9 +11175,13 @@ xtensa_move_literals (void) +@@ -11171,9 +11175,13 @@ for (segment = literal_head->next; segment; segment = segment->next) { @@ -77,11 +75,9 @@ index 36a06cc..5773634 100644 continue; frchain_from = seg_info (segment->seg)->frchainP; -diff --git a/gas/testsuite/gas/xtensa/all.exp b/gas/testsuite/gas/xtensa/all.exp -index 7ff7bd7..6b67320 100644 --- a/gas/testsuite/gas/xtensa/all.exp +++ b/gas/testsuite/gas/xtensa/all.exp -@@ -102,6 +102,7 @@ if [istarget xtensa*-*-*] then { +@@ -102,6 +102,7 @@ run_dump_test "first_frag_align" run_dump_test "auto-litpools" run_dump_test "loc" @@ -89,9 +85,6 @@ index 7ff7bd7..6b67320 100644 } if [info exists errorInfo] then { -diff --git a/gas/testsuite/gas/xtensa/init-fini-literals.d b/gas/testsuite/gas/xtensa/init-fini-literals.d -new file mode 100644 -index 0000000..19ed121 --- /dev/null +++ b/gas/testsuite/gas/xtensa/init-fini-literals.d @@ -0,0 +1,24 @@ @@ -119,9 +112,6 @@ index 0000000..19ed121 +.* R_XTENSA_SLOT0_OP \.fini\.literal +.* R_XTENSA_SLOT0_OP \.fini\.literal\+0x00000004 +#... -diff --git a/gas/testsuite/gas/xtensa/init-fini-literals.s b/gas/testsuite/gas/xtensa/init-fini-literals.s -new file mode 100644 -index 0000000..7c9ec17 --- /dev/null +++ b/gas/testsuite/gas/xtensa/init-fini-literals.s @@ -0,0 +1,19 @@ @@ -144,6 +134,3 @@ index 0000000..7c9ec17 + + l32r a2, .LC2 + l32r a2, .LC3 --- -2.1.4 - |