diff options
Diffstat (limited to 'packages/binutils/2.23.2')
-rw-r--r-- | packages/binutils/2.23.2/0000-sh-conf.patch (renamed from packages/binutils/2.23.2/120-sh-conf.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0001-001_ld_makefile_patch.patch (renamed from packages/binutils/2.23.2/300-001_ld_makefile_patch.patch) | 19 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0002-012_check_ldrunpath_length.patch (renamed from packages/binutils/2.23.2/300-012_check_ldrunpath_length.patch) | 13 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0003-fix-gold-pthreads-typo.patch (renamed from packages/binutils/2.23.2/310-fix-gold-pthreads-typo.patch) | 8 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0004-sysroot.patch (renamed from packages/binutils/2.23.2/500-sysroot.patch) | 6 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0005-poison-system-directories.patch (renamed from packages/binutils/2.23.2/600-poison-system-directories.patch) | 30 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0006-xtensa-trampolines.patch (renamed from packages/binutils/2.23.2/900-xtensa-trampolines.patch) | 73 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0007-xtensa-gas-first-frag-alignment.patch (renamed from packages/binutils/2.23.2/901-xtensa-gas-first-frag-alignment.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0008-xtensa-gas-ld-diff-relocation-signed.patch (renamed from packages/binutils/2.23.2/902-xtensa-gas-ld-diff-relocation-signed.patch) | 21 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0009-xtensa-fix-ld-segfault-when-linking-linux-modules.patch (renamed from packages/binutils/2.23.2/903-xtensa-fix-ld-segfault-when-linking-linux-modules.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0010-Fix-call8-call-target-out-of-range-xtensa-ld-relaxation.patch (renamed from packages/binutils/2.23.2/904-Fix-call8-call-target-out-of-range-xtensa-ld-relaxation.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0011-Fix-trampolines-search-code-for-conditional-branches.patch (renamed from packages/binutils/2.23.2/905-Fix-trampolines-search-code-for-conditional-branches.patch) | 17 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0012-xtensa-fix-localized-symbol-refcounting-with-gc-sect.patch (renamed from packages/binutils/2.23.2/911-xtensa-fix-localized-symbol-refcounting-with-gc-sect.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0013-xtensa-fix-gas-segfault-with-text-section-literals.patch (renamed from packages/binutils/2.23.2/912-xtensa-fix-gas-segfault-with-text-section-literals.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0014-xtensa-fix-signedness-of-gas-relocations.patch (renamed from packages/binutils/2.23.2/914-xtensa-fix-signedness-of-gas-relocations.patch) | 9 | ||||
-rw-r--r-- | packages/binutils/2.23.2/0015-xtensa-fix-.init-.fini-literals-moving.patch (renamed from packages/binutils/2.23.2/915-xtensa-fix-.init-.fini-literals-moving.patch) | 12 |
16 files changed, 103 insertions, 159 deletions
diff --git a/packages/binutils/2.23.2/120-sh-conf.patch b/packages/binutils/2.23.2/0000-sh-conf.patch index ea3d1b6..b10d279 100644 --- a/packages/binutils/2.23.2/120-sh-conf.patch +++ b/packages/binutils/2.23.2/0000-sh-conf.patch @@ -5,9 +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). +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + --- a/configure +++ b/configure -@@ -1495,7 +1495,7 @@ +@@ -3595,7 +3595,7 @@ mips*-*-*) noconfigdirs="$noconfigdirs gprof" ;; @@ -18,7 +23,7 @@ inept targets than that one, really. Go look, I promise). ;; --- a/configure.ac +++ b/configure.ac -@@ -712,7 +712,7 @@ +@@ -1021,7 +1021,7 @@ mips*-*-*) noconfigdirs="$noconfigdirs gprof" ;; diff --git a/packages/binutils/2.23.2/300-001_ld_makefile_patch.patch b/packages/binutils/2.23.2/0001-001_ld_makefile_patch.patch index 5cb0f61..3992be3 100644 --- a/packages/binutils/2.23.2/300-001_ld_makefile_patch.patch +++ b/packages/binutils/2.23.2/0001-001_ld_makefile_patch.patch @@ -1,7 +1,11 @@ -diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Makefile.am ---- binutils-2.17.50.0.17.oorig/ld/Makefile.am 2007-06-18 19:29:29.000000000 +0200 -+++ binutils-2.17.50.0.17/ld/Makefile.am 2007-06-25 10:00:36.000000000 +0200 -@@ -18,7 +18,7 @@ +--- + ld/Makefile.am | 2 +- + ld/Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/ld/Makefile.am ++++ b/ld/Makefile.am +@@ -37,7 +37,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. @@ -10,10 +14,9 @@ diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Make EMUL = @EMUL@ EMULATION_OFILES = @EMULATION_OFILES@ -diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.in binutils-2.17.50.0.17/ld/Makefile.in ---- binutils-2.17.50.0.17.oorig/ld/Makefile.in 2007-06-18 19:29:29.000000000 +0200 -+++ binutils-2.17.50.0.17/ld/Makefile.in 2007-06-25 10:00:36.000000000 +0200 -@@ -287,7 +287,7 @@ +--- a/ld/Makefile.in ++++ b/ld/Makefile.in +@@ -367,7 +367,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.23.2/300-012_check_ldrunpath_length.patch b/packages/binutils/2.23.2/0002-012_check_ldrunpath_length.patch index df78310..a24df5e 100644 --- a/packages/binutils/2.23.2/300-012_check_ldrunpath_length.patch +++ b/packages/binutils/2.23.2/0002-012_check_ldrunpath_length.patch @@ -1,7 +1,10 @@ -diff -Nura binutils-2.21.orig/ld/emultempl/elf32.em binutils-2.21/ld/emultempl/elf32.em ---- binutils-2.21.orig/ld/emultempl/elf32.em 2010-10-29 09:10:36.000000000 -0300 -+++ binutils-2.21/ld/emultempl/elf32.em 2010-12-10 09:26:56.746102724 -0300 -@@ -1270,6 +1270,8 @@ +--- + ld/emultempl/elf32.em | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/ld/emultempl/elf32.em ++++ b/ld/emultempl/elf32.em +@@ -1278,6 +1278,8 @@ && command_line.rpath == NULL) { lib_path = (const char *) getenv ("LD_RUN_PATH"); @@ -10,7 +13,7 @@ diff -Nura binutils-2.21.orig/ld/emultempl/elf32.em binutils-2.21/ld/emultempl/e if (gld${EMULATION_NAME}_search_needed (lib_path, &n, force)) break; -@@ -1497,6 +1499,8 @@ +@@ -1505,6 +1507,8 @@ rpath = command_line.rpath; if (rpath == NULL) rpath = (const char *) getenv ("LD_RUN_PATH"); diff --git a/packages/binutils/2.23.2/310-fix-gold-pthreads-typo.patch b/packages/binutils/2.23.2/0003-fix-gold-pthreads-typo.patch index f2e6ff2..40861f5 100644 --- a/packages/binutils/2.23.2/310-fix-gold-pthreads-typo.patch +++ b/packages/binutils/2.23.2/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.23.2/500-sysroot.patch b/packages/binutils/2.23.2/0004-sysroot.patch index e49c795..13b5288 100644 --- a/packages/binutils/2.23.2/500-sysroot.patch +++ b/packages/binutils/2.23.2/0004-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 @@ +@@ -341,18 +341,25 @@ directory first. */ if (! entry->flags.maybe_archive) { diff --git a/packages/binutils/2.23.2/600-poison-system-directories.patch b/packages/binutils/2.23.2/0005-poison-system-directories.patch index 780e48e..539da41 100644 --- a/packages/binutils/2.23.2/600-poison-system-directories.patch +++ b/packages/binutils/2.23.2/0005-poison-system-directories.patch @@ -57,8 +57,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> -Index: b/ld/config.in -=================================================================== +--- + ld/config.in | 3 +++ + ld/configure | 14 ++++++++++++++ + ld/configure.in | 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 @@ -11,6 +11,9 @@ @@ -71,8 +81,6 @@ Index: b/ld/config.in /* Additional extension a shared object might have. */ #undef EXTRA_SHLIB_EXTENSION -Index: b/ld/configure -=================================================================== --- a/ld/configure +++ b/ld/configure @@ -773,6 +773,7 @@ @@ -111,8 +119,6 @@ Index: b/ld/configure # Check whether --enable-got was given. if test "${enable_got+set}" = set; then : -Index: b/ld/configure.in -=================================================================== --- a/ld/configure.in +++ b/ld/configure.in @@ -70,6 +70,16 @@ @@ -132,8 +138,6 @@ Index: b/ld/configure.in 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. -Index: b/ld/ldfile.c -=================================================================== --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -116,6 +116,23 @@ @@ -160,8 +164,6 @@ Index: b/ld/ldfile.c } /* Try to open a BFD for a lang_input_statement. */ -Index: b/ld/ld.h -=================================================================== --- a/ld/ld.h +++ b/ld/ld.h @@ -203,6 +203,14 @@ @@ -179,8 +181,6 @@ Index: b/ld/ld.h /* Big or little endian as set on command line. */ enum endian_enum endian; -Index: b/ld/ldmain.c -=================================================================== --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -265,6 +265,8 @@ @@ -192,8 +192,6 @@ Index: b/ld/ldmain.c /* We initialize DEMANGLING based on the environment variable COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the -Index: b/ld/ld.texinfo -=================================================================== --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -2154,6 +2154,18 @@ @@ -215,8 +213,6 @@ Index: b/ld/ld.texinfo @end table @c man end -Index: b/ld/lexsup.c -=================================================================== --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -498,6 +498,14 @@ @@ -264,8 +260,6 @@ Index: b/ld/lexsup.c while (ingroup) { lang_leave_group (); -Index: b/ld/ldlex.h -=================================================================== --- a/ld/ldlex.h +++ b/ld/ldlex.h @@ -136,6 +136,8 @@ diff --git a/packages/binutils/2.23.2/900-xtensa-trampolines.patch b/packages/binutils/2.23.2/0006-xtensa-trampolines.patch index b5b934f..b4670bc 100644 --- a/packages/binutils/2.23.2/900-xtensa-trampolines.patch +++ b/packages/binutils/2.23.2/0006-xtensa-trampolines.patch @@ -35,22 +35,20 @@ Subject: [PATCH] Add support to the Xtensa target for creating trampolines for Backported from: a82c7d9030b67a6a76a5403d0e1641f9e42141ac Changes to Changelog files are dropped. - gas/config/tc-xtensa.c | 558 +++++++++++++++++++++++++++++++++- - gas/config/tc-xtensa.h | 5 + - gas/frags.c | 15 + - gas/frags.h | 3 + - gas/testsuite/gas/xtensa/all.exp | 1 + - gas/testsuite/gas/xtensa/trampoline.d | 26 ++ - gas/testsuite/gas/xtensa/trampoline.s | 21 ++ - 11 files changed, 753 insertions(+), 2 deletions(-) + gas/config/tc-xtensa.c | 558 +++++++++++++++++++++++++++++++++- + gas/config/tc-xtensa.h | 5 + gas/frags.c | 15 + gas/frags.h | 3 + gas/testsuite/gas/xtensa/all.exp | 1 + gas/testsuite/gas/xtensa/trampoline.d | 26 + + gas/testsuite/gas/xtensa/trampoline.s | 21 + + 7 files changed, 627 insertions(+), 2 deletions(-) create mode 100644 gas/testsuite/gas/xtensa/trampoline.d create mode 100644 gas/testsuite/gas/xtensa/trampoline.s -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index fe8ec0f..ea23c96 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -468,6 +468,12 @@ static void xtensa_set_frag_assembly_state (fragS *); +@@ -469,6 +469,12 @@ static void finish_vinsn (vliw_insn *); static bfd_boolean emit_single_op (TInsn *); static int total_frag_text_expansion (fragS *); @@ -63,7 +61,7 @@ index fe8ec0f..ea23c96 100644 /* Alignment Functions. */ -@@ -520,6 +526,7 @@ static void tinsn_from_chars (TInsn *, char *, int); +@@ -521,6 +527,7 @@ static void tinsn_immed_from_frag (TInsn *, fragS *, int); static int get_num_stack_text_bytes (IStack *); static int get_num_stack_literal_bytes (IStack *); @@ -71,7 +69,7 @@ index fe8ec0f..ea23c96 100644 /* vliw_insn functions. */ -@@ -687,7 +694,10 @@ enum +@@ -688,7 +695,10 @@ option_prefer_l32r, option_prefer_const16, @@ -83,7 +81,7 @@ index fe8ec0f..ea23c96 100644 }; const char *md_shortopts = ""; -@@ -760,6 +770,9 @@ struct option md_longopts[] = +@@ -761,6 +771,9 @@ { "target-hardware", required_argument, NULL, option_target_hardware }, @@ -93,7 +91,7 @@ index fe8ec0f..ea23c96 100644 { NULL, no_argument, NULL, 0 } }; -@@ -940,6 +953,14 @@ md_parse_option (int c, char *arg) +@@ -941,6 +954,14 @@ directive_state[directive_transform] = FALSE; return 1; @@ -108,7 +106,7 @@ index fe8ec0f..ea23c96 100644 default: return 0; } -@@ -963,7 +984,9 @@ Xtensa options:\n\ +@@ -964,7 +985,9 @@ flix bundles\n\ --no-allow-flix neither allow hand-written nor generate\n\ flix bundles\n\ @@ -119,7 +117,7 @@ index fe8ec0f..ea23c96 100644 } -@@ -5568,6 +5591,8 @@ md_assemble (char *str) +@@ -5569,6 +5592,8 @@ /* We've just emitted a new instruction so clear the list of labels. */ xtensa_clear_insn_labels (); @@ -128,7 +126,7 @@ index fe8ec0f..ea23c96 100644 } -@@ -6372,6 +6397,8 @@ finish_vinsn (vliw_insn *vinsn) +@@ -6373,6 +6398,8 @@ xg_assemble_vliw_tokens (vinsn); xg_clear_vinsn (vinsn); @@ -137,7 +135,7 @@ index fe8ec0f..ea23c96 100644 } -@@ -7140,6 +7167,7 @@ xg_assemble_vliw_tokens (vliw_insn *vinsn) +@@ -7141,6 +7168,7 @@ RELAX_UNREACHABLE, frag_now->fr_symbol, frag_now->fr_offset, NULL); xtensa_set_frag_assembly_state (frag_now); @@ -145,7 +143,7 @@ index fe8ec0f..ea23c96 100644 } else if (is_branch && do_align_targets ()) { -@@ -7222,9 +7250,164 @@ xtensa_end (void) +@@ -7223,9 +7251,164 @@ xtensa_sanity_check (); xtensa_add_config_info (); @@ -310,7 +308,7 @@ index fe8ec0f..ea23c96 100644 static void xtensa_cleanup_align_frags (void) { -@@ -8708,6 +8891,149 @@ xtensa_relax_frag (fragS *fragP, long stretch, int *stretched_p) +@@ -8709,6 +8892,149 @@ new_stretch += relax_frag_for_align (fragP, stretch); break; @@ -460,7 +458,7 @@ index fe8ec0f..ea23c96 100644 default: as_bad (_("bad relaxation state")); } -@@ -9146,6 +9472,200 @@ bytes_to_stretch (fragS *this_frag, +@@ -9147,6 +9473,200 @@ } @@ -661,7 +659,7 @@ index fe8ec0f..ea23c96 100644 static long relax_frag_immed (segT segP, fragS *fragP, -@@ -9284,6 +9804,37 @@ relax_frag_immed (segT segP, +@@ -9285,6 +9805,37 @@ if (negatable_branch && istack.ninsn > 1) update_next_frag_state (fragP); @@ -699,7 +697,7 @@ index fe8ec0f..ea23c96 100644 return this_text_diff; } -@@ -9404,6 +9955,9 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT sec, fragS *fragp) +@@ -9405,6 +9956,9 @@ else as_bad (_("invalid relaxation fragment result")); break; @@ -709,11 +707,9 @@ index fe8ec0f..ea23c96 100644 } fragp->fr_var = 0; -diff --git a/gas/config/tc-xtensa.h b/gas/config/tc-xtensa.h -index 0bf1240..4672bc6 100644 --- a/gas/config/tc-xtensa.h +++ b/gas/config/tc-xtensa.h -@@ -180,6 +180,11 @@ enum xtensa_relax_statesE +@@ -181,6 +181,11 @@ prevent the linker from changing the size of any frag between the section start and the org frag. */ @@ -725,11 +721,9 @@ index 0bf1240..4672bc6 100644 RELAX_NONE }; -diff --git a/gas/frags.c b/gas/frags.c -index 5f68480..e14099d 100644 --- a/gas/frags.c +++ b/gas/frags.c -@@ -24,6 +24,20 @@ +@@ -26,6 +26,20 @@ extern fragS zero_address_frag; extern fragS predefined_address_frag; @@ -750,7 +744,7 @@ index 5f68480..e14099d 100644 /* Initialization for frag routines. */ -@@ -70,6 +84,7 @@ frag_alloc (struct obstack *ob) +@@ -72,6 +86,7 @@ ptr = (fragS *) obstack_alloc (ob, SIZEOF_STRUCT_FRAG); obstack_alignment_mask (ob) = oalign; memset (ptr, 0, SIZEOF_STRUCT_FRAG); @@ -758,11 +752,9 @@ index 5f68480..e14099d 100644 return ptr; } -diff --git a/gas/frags.h b/gas/frags.h -index 319898f..2f9e1b5 100644 --- a/gas/frags.h +++ b/gas/frags.h -@@ -155,4 +155,7 @@ char *frag_var (relax_stateT type, +@@ -157,4 +157,7 @@ bfd_boolean frag_offset_fixed_p (const fragS *, const fragS *, offsetT *); @@ -770,11 +762,9 @@ index 319898f..2f9e1b5 100644 +void clear_frag_count (void); + #endif /* FRAGS_H */ -diff --git a/gas/testsuite/gas/xtensa/all.exp b/gas/testsuite/gas/xtensa/all.exp -index 2b2c294..3683b78 100644 --- a/gas/testsuite/gas/xtensa/all.exp +++ b/gas/testsuite/gas/xtensa/all.exp -@@ -98,6 +98,7 @@ if [istarget xtensa*-*-*] then { +@@ -82,6 +82,7 @@ run_dump_test "pcrel" run_dump_test "weak-call" run_dump_test "jlong" @@ -782,9 +772,6 @@ index 2b2c294..3683b78 100644 } if [info exists errorInfo] then { -diff --git a/gas/testsuite/gas/xtensa/trampoline.d b/gas/testsuite/gas/xtensa/trampoline.d -new file mode 100644 -index 0000000..b4f65dc --- /dev/null +++ b/gas/testsuite/gas/xtensa/trampoline.d @@ -0,0 +1,26 @@ @@ -814,9 +801,6 @@ index 0000000..b4f65dc +.*33462:.*j.0x49407 +#... +.*49407:.*j.0x49407 -diff --git a/gas/testsuite/gas/xtensa/trampoline.s b/gas/testsuite/gas/xtensa/trampoline.s -new file mode 100644 -index 0000000..259a3bb --- /dev/null +++ b/gas/testsuite/gas/xtensa/trampoline.s @@ -0,0 +1,21 @@ @@ -841,6 +825,3 @@ index 0000000..259a3bb + .endr +3: + j 3b --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/901-xtensa-gas-first-frag-alignment.patch b/packages/binutils/2.23.2/0007-xtensa-gas-first-frag-alignment.patch index e1c2d85..88e6990 100644 --- a/packages/binutils/2.23.2/901-xtensa-gas-first-frag-alignment.patch +++ b/packages/binutils/2.23.2/0007-xtensa-gas-first-frag-alignment.patch @@ -31,14 +31,12 @@ gas/ Backported from: a35d5e823fdfe8a6e7e05ca8e3fb8bb5697335b1 Changes to Changelog files and tests are dropped. - gas/config/tc-xtensa.c | 1 - + gas/config/tc-xtensa.c | 1 - 1 file changed, 1 deletion(-) -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index ea23c96..58ace38 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -5609,7 +5609,6 @@ xtensa_handle_align (fragS *fragP) +@@ -5610,7 +5610,6 @@ && ! fragP->tc_frag_data.is_literal && (fragP->fr_type == rs_align || fragP->fr_type == rs_align_code) @@ -46,6 +44,3 @@ index ea23c96..58ace38 100644 && fragP->fr_offset > 0 && now_seg != bss_section) { --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/902-xtensa-gas-ld-diff-relocation-signed.patch b/packages/binutils/2.23.2/0008-xtensa-gas-ld-diff-relocation-signed.patch index ba24f4e..1989e0a 100644 --- a/packages/binutils/2.23.2/902-xtensa-gas-ld-diff-relocation-signed.patch +++ b/packages/binutils/2.23.2/0008-xtensa-gas-ld-diff-relocation-signed.patch @@ -22,15 +22,13 @@ gas/ Backported from: 1058c7532d0b012ac329219264ddad59049fb6e6 Changes to Changelog files and tests are dropped. - bfd/elf32-xtensa.c | 32 ++++++++++++----------- - gas/config/tc-xtensa.c | 3 +++ + bfd/elf32-xtensa.c | 32 +++++++++++++++++--------------- + gas/config/tc-xtensa.c | 3 +++ 2 files changed, 20 insertions(+), 15 deletions(-) -diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c -index edb04b4..8818d67 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c -@@ -222,11 +222,11 @@ static reloc_howto_type elf_howto_table[] = +@@ -223,11 +223,11 @@ FALSE, 0, 0, FALSE), /* Relocations for supporting difference of symbols. */ @@ -45,7 +43,7 @@ index edb04b4..8818d67 100644 bfd_elf_xtensa_reloc, "R_XTENSA_DIFF32", FALSE, 0, 0xffffffff, FALSE), /* General immediate operand relocations. */ -@@ -9013,7 +9013,8 @@ relax_section (bfd *abfd, asection *sec, struct bfd_link_info *link_info) +@@ -9016,7 +9016,8 @@ || r_type == R_XTENSA_DIFF16 || r_type == R_XTENSA_DIFF32) { @@ -55,7 +53,7 @@ index edb04b4..8818d67 100644 if (bfd_get_section_limit (abfd, sec) < old_source_offset) { -@@ -9027,15 +9028,15 @@ relax_section (bfd *abfd, asection *sec, struct bfd_link_info *link_info) +@@ -9030,15 +9031,15 @@ { case R_XTENSA_DIFF8: diff_value = @@ -74,7 +72,7 @@ index edb04b4..8818d67 100644 break; } -@@ -9047,24 +9048,25 @@ relax_section (bfd *abfd, asection *sec, struct bfd_link_info *link_info) +@@ -9050,24 +9051,25 @@ switch (r_type) { case R_XTENSA_DIFF8: @@ -108,11 +106,9 @@ index edb04b4..8818d67 100644 { (*link_info->callbacks->reloc_dangerous) (link_info, _("overflow after relaxation"), -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index 58ace38..7547c0a0 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -5867,12 +5867,15 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg) +@@ -5868,12 +5868,15 @@ { case BFD_RELOC_8: fixP->fx_r_type = BFD_RELOC_XTENSA_DIFF8; @@ -128,6 +124,3 @@ index 58ace38..7547c0a0 100644 break; default: break; --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/903-xtensa-fix-ld-segfault-when-linking-linux-modules.patch b/packages/binutils/2.23.2/0009-xtensa-fix-ld-segfault-when-linking-linux-modules.patch index 6a0846e..57cd0bf 100644 --- a/packages/binutils/2.23.2/903-xtensa-fix-ld-segfault-when-linking-linux-modules.patch +++ b/packages/binutils/2.23.2/0009-xtensa-fix-ld-segfault-when-linking-linux-modules.patch @@ -26,14 +26,12 @@ ld/ Backported from: e7d17e71cdc10a2e81e454ce3b9637f1b2a587f2 Changes to ld/ChangeLog file are dropped. - ld/emultempl/xtensaelf.em | 2 +- + ld/emultempl/xtensaelf.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em -index 151eea4..948d18d 100644 --- a/ld/emultempl/xtensaelf.em +++ b/ld/emultempl/xtensaelf.em -@@ -1310,7 +1310,7 @@ is_inconsistent_linkonce_section (asection *sec) +@@ -1311,7 +1311,7 @@ for Tensilica's XCC compiler. */ name = sec_name + linkonce_len; if (CONST_STRNEQ (name, "prop.")) @@ -42,6 +40,3 @@ index 151eea4..948d18d 100644 else if (name[1] == '.' && (name[0] == 'p' || name[0] == 'e' || name[0] == 'h')) name += 2; --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/904-Fix-call8-call-target-out-of-range-xtensa-ld-relaxation.patch b/packages/binutils/2.23.2/0010-Fix-call8-call-target-out-of-range-xtensa-ld-relaxation.patch index dba7620..5818667 100644 --- a/packages/binutils/2.23.2/904-Fix-call8-call-target-out-of-range-xtensa-ld-relaxation.patch +++ b/packages/binutils/2.23.2/0010-Fix-call8-call-target-out-of-range-xtensa-ld-relaxation.patch @@ -19,14 +19,12 @@ bfd/ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- - bfd/elf32-xtensa.c | 41 +++++++++++++++++++++++++++++++++++++---- + bfd/elf32-xtensa.c | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) -diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c -index 09862e3..e32496a 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c -@@ -7124,10 +7124,43 @@ is_resolvable_asm_expansion (bfd *abfd, +@@ -7128,10 +7128,43 @@ || is_reloc_sym_weak (abfd, irel))) return FALSE; @@ -74,6 +72,3 @@ index 09862e3..e32496a 100644 *is_reachable_p = pcrel_reloc_fits (direct_call_opcode, 0, self_address, dest_address); --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/905-Fix-trampolines-search-code-for-conditional-branches.patch b/packages/binutils/2.23.2/0011-Fix-trampolines-search-code-for-conditional-branches.patch index 8aeb064..a4e7b5c 100644 --- a/packages/binutils/2.23.2/905-Fix-trampolines-search-code-for-conditional-branches.patch +++ b/packages/binutils/2.23.2/0011-Fix-trampolines-search-code-for-conditional-branches.patch @@ -28,16 +28,14 @@ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Backported from: d92b6eece424f0ad35d96fdd85bf207295e8c4c3 Changes to ChangeLogs are dropped. - gas/config/tc-xtensa.c | 8 ++++---- - gas/testsuite/gas/xtensa/trampoline.d | 9 +++++++++ - gas/testsuite/gas/xtensa/trampoline.s | 7 +++++++ + gas/config/tc-xtensa.c | 8 ++++---- + gas/testsuite/gas/xtensa/trampoline.d | 9 +++++++++ + gas/testsuite/gas/xtensa/trampoline.s | 7 +++++++ 3 files changed, 20 insertions(+), 4 deletions(-) -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index d11b0c7..f23ccf8 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -9514,11 +9514,11 @@ search_trampolines (TInsn *tinsn, fragS *fragP, bfd_boolean unreachable_only) +@@ -9515,11 +9515,11 @@ if (next_addr == 0 || addr - next_addr > J_RANGE) break; } @@ -53,8 +51,6 @@ index d11b0c7..f23ccf8 100644 } for ( ; tf; tf = tf->next) { -diff --git a/gas/testsuite/gas/xtensa/trampoline.d b/gas/testsuite/gas/xtensa/trampoline.d -index b4f65dc..5ae32a6 100644 --- a/gas/testsuite/gas/xtensa/trampoline.d +++ b/gas/testsuite/gas/xtensa/trampoline.d @@ -24,3 +24,12 @@ @@ -70,8 +66,6 @@ index b4f65dc..5ae32a6 100644 +#... +.*927f5:.*j.0x927f5 +#... -diff --git a/gas/testsuite/gas/xtensa/trampoline.s b/gas/testsuite/gas/xtensa/trampoline.s -index 259a3bb..4465786 100644 --- a/gas/testsuite/gas/xtensa/trampoline.s +++ b/gas/testsuite/gas/xtensa/trampoline.s @@ -19,3 +19,10 @@ @@ -85,6 +79,3 @@ index 259a3bb..4465786 100644 + .endr +4: + j 4b --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/911-xtensa-fix-localized-symbol-refcounting-with-gc-sect.patch b/packages/binutils/2.23.2/0012-xtensa-fix-localized-symbol-refcounting-with-gc-sect.patch index 9ad6b3b..624ce11 100644 --- a/packages/binutils/2.23.2/911-xtensa-fix-localized-symbol-refcounting-with-gc-sect.patch +++ b/packages/binutils/2.23.2/0012-xtensa-fix-localized-symbol-refcounting-with-gc-sect.patch @@ -29,14 +29,12 @@ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Backported from: e6c9a083ec5ae7a45bd71682b26aae1939849388 Changes to ChangeLog are dropped. - bfd/elf32-xtensa.c | 6 +++++- + bfd/elf32-xtensa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c -index 53af1c6..2523670 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c -@@ -1360,10 +1360,14 @@ elf_xtensa_gc_sweep_hook (bfd *abfd, +@@ -1362,10 +1362,14 @@ { if (is_plt) { @@ -52,6 +50,3 @@ index 53af1c6..2523670 100644 { if (h->got.refcount > 0) h->got.refcount--; --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/912-xtensa-fix-gas-segfault-with-text-section-literals.patch b/packages/binutils/2.23.2/0013-xtensa-fix-gas-segfault-with-text-section-literals.patch index 4a3de2c..013534a 100644 --- a/packages/binutils/2.23.2/912-xtensa-fix-gas-segfault-with-text-section-literals.patch +++ b/packages/binutils/2.23.2/0013-xtensa-fix-gas-segfault-with-text-section-literals.patch @@ -21,14 +21,12 @@ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Backported from: 4de0562a4c69fef4952aa7e19d7bda359f02e8b4 Changes to ChangeLog are dropped. - gas/config/tc-xtensa.c | 10 +++++++++- + gas/config/tc-xtensa.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c -index 31c0b6b..18307c1 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c -@@ -10808,13 +10808,21 @@ xtensa_move_literals (void) +@@ -10643,13 +10643,21 @@ frchain_to = NULL; frag_splice = &(frchain_from->frch_root); @@ -51,6 +49,3 @@ index 31c0b6b..18307c1 100644 gas_assert (search_frag->tc_frag_data.literal_frag->fr_subtype == RELAX_LITERAL_POOL_BEGIN); xtensa_switch_section_emit_state (&state, segment->seg, 0); --- -1.8.1.4 - diff --git a/packages/binutils/2.23.2/914-xtensa-fix-signedness-of-gas-relocations.patch b/packages/binutils/2.23.2/0014-xtensa-fix-signedness-of-gas-relocations.patch index 2955e11..7139f5e 100644 --- a/packages/binutils/2.23.2/914-xtensa-fix-signedness-of-gas-relocations.patch +++ b/packages/binutils/2.23.2/0014-xtensa-fix-signedness-of-gas-relocations.patch @@ -16,14 +16,12 @@ gas/ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- - gas/config/tc-xtensa.c | 6 +++--- + gas/config/tc-xtensa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -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) +@@ -5868,15 +5868,15 @@ { case BFD_RELOC_8: fixP->fx_r_type = BFD_RELOC_XTENSA_DIFF8; @@ -42,6 +40,3 @@ index a119871..36a06cc 100644 break; default: break; --- -2.1.4 - diff --git a/packages/binutils/2.23.2/915-xtensa-fix-.init-.fini-literals-moving.patch b/packages/binutils/2.23.2/0015-xtensa-fix-.init-.fini-literals-moving.patch index 62bc4b5..ee41d54 100644 --- a/packages/binutils/2.23.2/915-xtensa-fix-.init-.fini-literals-moving.patch +++ b/packages/binutils/2.23.2/0015-xtensa-fix-.init-.fini-literals-moving.patch @@ -32,14 +32,13 @@ Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- Backported from: 4111950f363221c4641dc2f33bea61cc94f34906 - gas/config/tc-xtensa.c | 12 ++++++++++-- + gas/config/tc-xtensa.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -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 -@@ -10625,5 +10625,9 @@ xtensa_move_literals (void) +@@ -10624,6 +10624,10 @@ + segT dest_seg; fixS *fix, *next_fix, **fix_splice; sym_list *lit; + const char *init_name = INIT_SECTION_NAME; @@ -49,7 +48,7 @@ index 36a06cc..5773634 100644 mark_literal_frags (literal_head->next); -@@ -10632,9 +10636,13 @@ xtensa_move_literals (void) +@@ -10632,9 +10636,13 @@ for (segment = literal_head->next; segment; segment = segment->next) { @@ -65,6 +64,3 @@ index 36a06cc..5773634 100644 continue; frchain_from = seg_info (segment->seg)->frchainP; --- -2.1.4 - |