diff --git a/.gitignore b/.gitignore index 85a28a3..c981853 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/binutils-2.41.tar.xz +SOURCES/binutils-2.43.1.tar.xz diff --git a/.mingw-binutils.metadata b/.mingw-binutils.metadata index 9cb01f7..a96b8c4 100644 --- a/.mingw-binutils.metadata +++ b/.mingw-binutils.metadata @@ -1 +1 @@ -0e008260a958bbd10182ee3384672ae0a310eece SOURCES/binutils-2.41.tar.xz +86bfee61d18cb9ea84ca700ecb820d97bb4e92a7 SOURCES/binutils-2.43.1.tar.xz diff --git a/SOURCES/binutils-2.27-aarch64-ifunc.patch b/SOURCES/binutils-2.27-aarch64-ifunc.patch index 37e6a62..562ef18 100644 --- a/SOURCES/binutils-2.27-aarch64-ifunc.patch +++ b/SOURCES/binutils-2.27-aarch64-ifunc.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.41/bfd/elfnn-aarch64.c binutils-2.41-new/bfd/elfnn-aarch64.c ---- binutils-2.41/bfd/elfnn-aarch64.c 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/elfnn-aarch64.c 2023-10-17 08:36:07.259543844 +0200 -@@ -5654,6 +5654,7 @@ elfNN_aarch64_final_link_relocate (reloc +diff -rup binutils.orig/bfd/elfnn-aarch64.c binutils-2.27/bfd/elfnn-aarch64.c +--- binutils.orig/bfd/elfnn-aarch64.c 2017-02-21 10:45:19.311956006 +0000 ++++ binutils-2.27/bfd/elfnn-aarch64.c 2017-02-21 11:55:07.517922655 +0000 +@@ -4947,6 +4947,7 @@ elfNN_aarch64_final_link_relocate (reloc it here if it is defined in a non-shared object. */ if (h != NULL && h->type == STT_GNU_IFUNC diff --git a/SOURCES/binutils-autoconf-version.patch b/SOURCES/binutils-autoconf-version.patch index 3fa1746..f94fdad 100644 --- a/SOURCES/binutils-autoconf-version.patch +++ b/SOURCES/binutils-autoconf-version.patch @@ -1,6 +1,5 @@ -diff -rupN --no-dereference binutils-2.41/config/override.m4 binutils-2.41-new/config/override.m4 ---- binutils-2.41/config/override.m4 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/config/override.m4 2023-10-17 08:36:14.285923364 +0200 +--- binutils.orig/config/override.m4 2021-08-31 14:20:17.275574804 +0100 ++++ binutils-2.37/config/override.m4 2021-08-31 14:36:37.793954247 +0100 @@ -41,7 +41,7 @@ dnl Or for updating the whole tree at on AC_DEFUN([_GCC_AUTOCONF_VERSION_CHECK], [m4_if(m4_defn([_GCC_AUTOCONF_VERSION]), diff --git a/SOURCES/binutils-do-not-link-with-static-libstdc++.patch b/SOURCES/binutils-do-not-link-with-static-libstdc++.patch index 7bbdcbc..af73925 100644 --- a/SOURCES/binutils-do-not-link-with-static-libstdc++.patch +++ b/SOURCES/binutils-do-not-link-with-static-libstdc++.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.41/configure binutils-2.41-new/configure ---- binutils-2.41/configure 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/configure 2023-10-17 08:36:08.439607929 +0200 +diff -rup binutils.orig/configure binutils-2.40/configure +--- binutils.orig/configure 2023-02-13 14:43:00.728877170 +0000 ++++ binutils-2.40/configure 2023-02-13 14:43:13.671864892 +0000 @@ -5442,49 +5442,6 @@ if test -z "$LD"; then fi fi @@ -51,9 +51,9 @@ diff -rupN --no-dereference binutils-2.41/configure binutils-2.41-new/configure if test -n "$ac_tool_prefix"; then -diff -rupN --no-dereference binutils-2.41/configure.ac binutils-2.41-new/configure.ac ---- binutils-2.41/configure.ac 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/configure.ac 2023-10-17 08:36:08.440607983 +0200 +diff -rup binutils.orig/configure.ac binutils-2.40/configure.ac +--- binutils.orig/configure.ac 2023-02-13 14:43:00.728877170 +0000 ++++ binutils-2.40/configure.ac 2023-02-13 14:43:13.671864892 +0000 @@ -1435,26 +1435,6 @@ if test -z "$LD"; then fi fi @@ -81,3 +81,5 @@ diff -rupN --no-dereference binutils-2.41/configure.ac binutils-2.41-new/configu ACX_PROG_GNAT ACX_PROG_GDC ACX_PROG_CMP_IGNORE_INITIAL +Only in binutils-2.40: configure.ac.orig +Only in binutils-2.40: configure.orig diff --git a/SOURCES/binutils-export-demangle.h.patch b/SOURCES/binutils-export-demangle.h.patch index a25c97c..9716a8b 100644 --- a/SOURCES/binutils-export-demangle.h.patch +++ b/SOURCES/binutils-export-demangle.h.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.41/bfd/Makefile.am binutils-2.41-new/bfd/Makefile.am ---- binutils-2.41/bfd/Makefile.am 2023-10-17 08:36:03.732351438 +0200 -+++ binutils-2.41-new/bfd/Makefile.am 2023-10-17 08:36:03.737351712 +0200 -@@ -38,7 +38,7 @@ bfdlibdir = @bfdlibdir@ +diff -rup binutils.orig/bfd/Makefile.am binutils-2.32/bfd/Makefile.am +--- binutils.orig/bfd/Makefile.am 2019-02-08 12:22:51.395684251 +0000 ++++ binutils-2.32/bfd/Makefile.am 2019-02-08 12:22:53.970664973 +0000 +@@ -33,7 +33,7 @@ bfdlibdir = @bfdlibdir@ bfdincludedir = @bfdincludedir@ bfdlib_LTLIBRARIES = libbfd.la bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ @@ -10,10 +10,10 @@ diff -rupN --no-dereference binutils-2.41/bfd/Makefile.am binutils-2.41-new/bfd/ else !INSTALL_LIBBFD # Empty these so that the respective installation directories will not be created. bfdlibdir = -diff -rupN --no-dereference binutils-2.41/bfd/Makefile.in binutils-2.41-new/bfd/Makefile.in ---- binutils-2.41/bfd/Makefile.in 2023-10-17 08:36:03.733351493 +0200 -+++ binutils-2.41-new/bfd/Makefile.in 2023-10-17 08:36:03.737351712 +0200 -@@ -279,7 +279,7 @@ am__can_run_installinfo = \ +diff -rup binutils.orig/bfd/Makefile.in binutils-2.32/bfd/Makefile.in +--- binutils.orig/bfd/Makefile.in 2019-02-08 12:21:35.291254044 +0000 ++++ binutils-2.32/bfd/Makefile.in 2019-02-08 12:22:10.163992947 +0000 +@@ -249,7 +249,7 @@ am__can_run_installinfo = \ esac am__bfdinclude_HEADERS_DIST = $(INCDIR)/plugin-api.h bfd.h \ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ @@ -22,7 +22,7 @@ diff -rupN --no-dereference binutils-2.41/bfd/Makefile.in binutils-2.41-new/bfd/ HEADERS = $(bfdinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -@@ -504,7 +504,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -rel +@@ -468,7 +468,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -rel @INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2) @INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \ @INSTALL_LIBBFD_TRUE@ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ diff --git a/SOURCES/binutils-fix-ar-test.patch b/SOURCES/binutils-fix-ar-test.patch new file mode 100644 index 0000000..fe5ab4e --- /dev/null +++ b/SOURCES/binutils-fix-ar-test.patch @@ -0,0 +1,11 @@ +--- binutils.orig/binutils/testsuite/binutils-all/ar.exp 2024-02-07 13:02:23.490031197 +0000 ++++ binutils-2.42/binutils/testsuite/binutils-all/ar.exp 2024-02-07 13:03:10.285034069 +0000 +@@ -1017,7 +1017,7 @@ symbol_table + argument_parsing + deterministic_archive + replacing_deterministic_member +-replacing_non_deterministic_member ++# replacing_non_deterministic_member + replacing_sde_deterministic_member + delete_an_element + move_an_element diff --git a/SOURCES/binutils-gold-empty-dwp.patch b/SOURCES/binutils-gold-empty-dwp.patch index dfc1d7a..b716565 100644 --- a/SOURCES/binutils-gold-empty-dwp.patch +++ b/SOURCES/binutils-gold-empty-dwp.patch @@ -1,6 +1,5 @@ -diff -rupN --no-dereference binutils-2.41/gold/dwp.cc binutils-2.41-new/gold/dwp.cc ---- binutils-2.41/gold/dwp.cc 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/gold/dwp.cc 2023-10-17 08:36:16.689052035 +0200 +--- binutils.orig/gold/dwp.cc 2023-05-02 13:26:44.075148082 +0100 ++++ binutils-2.40/gold/dwp.cc 2023-05-02 13:27:16.189130127 +0100 @@ -2418,6 +2418,8 @@ main(int argc, char** argv) { Dwo_file exe_file(exe_filename); diff --git a/SOURCES/binutils-gold-i386-gnu-property-notes.patch b/SOURCES/binutils-gold-i386-gnu-property-notes.patch index 28bf2c7..7831bf7 100644 --- a/SOURCES/binutils-gold-i386-gnu-property-notes.patch +++ b/SOURCES/binutils-gold-i386-gnu-property-notes.patch @@ -1,7 +1,8 @@ -diff -rupN --no-dereference binutils-2.41/gold/i386.cc binutils-2.41-new/gold/i386.cc ---- binutils-2.41/gold/i386.cc 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/gold/i386.cc 2023-10-17 08:36:13.132861427 +0200 -@@ -360,7 +360,11 @@ class Target_i386 : public Sized_target< +diff --git a/gold/i386.cc b/gold/i386.cc +index bf209fe9a86..31161ff091c 100644 +--- a/gold/i386.cc ++++ b/gold/i386.cc +@@ -360,7 +360,11 @@ class Target_i386 : public Sized_target<32, false> got_(NULL), plt_(NULL), got_plt_(NULL), got_irelative_(NULL), got_tlsdesc_(NULL), global_offset_table_(NULL), rel_dyn_(NULL), rel_irelative_(NULL), copy_relocs_(elfcpp::R_386_COPY), @@ -14,7 +15,7 @@ diff -rupN --no-dereference binutils-2.41/gold/i386.cc binutils-2.41-new/gold/i3 { } // Process the relocations to determine unreferenced sections for -@@ -859,6 +863,21 @@ class Target_i386 : public Sized_target< +@@ -859,6 +863,21 @@ class Target_i386 : public Sized_target<32, false> this->rel_dyn_section(layout)); } @@ -36,7 +37,7 @@ diff -rupN --no-dereference binutils-2.41/gold/i386.cc binutils-2.41-new/gold/i3 // Information about this specific target which we pass to the // general Target structure. static const Target::Target_info i386_info; -@@ -898,6 +917,26 @@ class Target_i386 : public Sized_target< +@@ -898,6 +917,26 @@ class Target_i386 : public Sized_target<32, false> unsigned int got_mod_index_offset_; // True if the _TLS_MODULE_BASE_ symbol has been defined. bool tls_base_symbol_defined_; @@ -63,7 +64,7 @@ diff -rupN --no-dereference binutils-2.41/gold/i386.cc binutils-2.41-new/gold/i3 }; const Target::Target_info Target_i386::i386_info = -@@ -1042,6 +1081,126 @@ Target_i386::rel_irelative_section(Layou +@@ -1042,6 +1081,126 @@ Target_i386::rel_irelative_section(Layout* layout) return this->rel_irelative_; } diff --git a/SOURCES/binutils-gold-ignore-execstack-error.patch b/SOURCES/binutils-gold-ignore-execstack-error.patch new file mode 100644 index 0000000..356f43b --- /dev/null +++ b/SOURCES/binutils-gold-ignore-execstack-error.patch @@ -0,0 +1,16 @@ +diff -rup binutils.orig/gold/options.h binutils-2.41/gold/options.h +--- binutils.orig/gold/options.h 2024-01-04 09:52:09.282002253 +0000 ++++ binutils-2.41/gold/options.h 2024-01-04 09:52:51.890972630 +0000 +@@ -855,6 +855,12 @@ class General_options + N_("(ARM only) Do not warn about objects with incompatible " + "enum sizes")); + ++ DEFINE_bool_ignore(error_execstack, options::TWO_DASHES, '\0', ++ N_("Ignored"), N_("Ignored")); ++ ++ DEFINE_bool_ignore(error_rwx_segments, options::TWO_DASHES, '\0', ++ N_("Ignored"), N_("Ignored")); ++ + DEFINE_special(exclude_libs, options::TWO_DASHES, '\0', + N_("Exclude libraries from automatic export"), + N_(("lib,lib ..."))); diff --git a/SOURCES/binutils-gold-mismatched-section-flags.patch b/SOURCES/binutils-gold-mismatched-section-flags.patch index e1c9bb4..63dba2b 100644 --- a/SOURCES/binutils-gold-mismatched-section-flags.patch +++ b/SOURCES/binutils-gold-mismatched-section-flags.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.41/gold/layout.cc binutils-2.41-new/gold/layout.cc ---- binutils-2.41/gold/layout.cc 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/gold/layout.cc 2023-10-17 08:36:10.778734550 +0200 -@@ -872,6 +872,7 @@ Layout::get_output_section(const char* n +diff -rup binutils.orig/gold/layout.cc binutils-2.32/gold/layout.cc +--- binutils.orig/gold/layout.cc 2019-06-24 14:37:36.013086899 +0100 ++++ binutils-2.32/gold/layout.cc 2019-06-24 14:41:40.054517479 +0100 +@@ -868,6 +868,7 @@ Layout::get_output_section(const char* n && (same_name->flags() & elfcpp::SHF_TLS) == 0) os = same_name; } @@ -9,7 +9,7 @@ diff -rupN --no-dereference binutils-2.41/gold/layout.cc binutils-2.41-new/gold/ else if ((flags & elfcpp::SHF_TLS) == 0) { elfcpp::Elf_Xword zero_flags = 0; -@@ -882,6 +883,7 @@ Layout::get_output_section(const char* n +@@ -878,6 +879,7 @@ Layout::get_output_section(const char* n if (p != this->section_name_map_.end()) os = p->second; } diff --git a/SOURCES/binutils-gold-pack-relative-relocs.patch b/SOURCES/binutils-gold-pack-relative-relocs.patch new file mode 100644 index 0000000..faa87fa --- /dev/null +++ b/SOURCES/binutils-gold-pack-relative-relocs.patch @@ -0,0 +1,27 @@ +diff --git a/gold/options.cc b/gold/options.cc +index c9834b66159..91d7802fffe 100644 +--- a/gold/options.cc ++++ b/gold/options.cc +@@ -989,7 +989,7 @@ parse_short_option(int argc, const char** argv, int pos_in_argv_i, + } + + // If we're a -z option, we need to parse our argument as a +- // long-option, e.g. "-z stacksize=8192". ++ // long-option, e.g. "-z stack-size=8192". + if (retval == &dash_z) + { + int dummy_i = 0; +diff --git a/gold/options.h b/gold/options.h +index 46f658f23ea..d16e38066da 100644 +--- a/gold/options.h ++++ b/gold/options.h +@@ -1110,6 +1110,9 @@ class General_options + N_("Generate package metadata note"), + N_("[=JSON]")); + ++ DEFINE_bool_ignore(pack_relative_relocs, options::DASH_Z, '\0', ++ N_("Ignored"), N_("Ignored")); ++ + DEFINE_bool(pie, options::ONE_DASH, '\0', false, + N_("Create a position independent executable"), + N_("Do not create a position independent executable")); diff --git a/SOURCES/binutils-gold-powerpc.patch b/SOURCES/binutils-gold-powerpc.patch deleted file mode 100644 index 8b83cbe..0000000 --- a/SOURCES/binutils-gold-powerpc.patch +++ /dev/null @@ -1,71 +0,0 @@ -diff -rupN --no-dereference binutils-2.41/gold/powerpc.cc binutils-2.41-new/gold/powerpc.cc ---- binutils-2.41/gold/powerpc.cc 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/gold/powerpc.cc 2023-10-17 08:36:20.308244748 +0200 -@@ -3714,12 +3714,7 @@ Target_powerpc::do_rel - unsigned int prev_brlt_size = 0; - if (pass == 1) - { -- bool thread_safe -- = this->abiversion() < 2 && parameters->options().plt_thread_safe(); -- if (size == 64 -- && this->abiversion() < 2 -- && !thread_safe -- && !parameters->options().user_set_plt_thread_safe()) -+ if (size == 64 && this->abiversion() < 2) - { - static const char* const thread_starter[] = - { -@@ -3747,29 +3742,37 @@ Target_powerpc::do_rel - /* libgo */ - "__go_go", - }; -+ bool thread_safe = parameters->options().plt_thread_safe(); - -- if (parameters->options().shared()) -- thread_safe = true; -- else -+ if (!thread_safe -+ && !parameters->options().user_set_plt_thread_safe()) - { -- for (unsigned int i = 0; -- i < sizeof(thread_starter) / sizeof(thread_starter[0]); -- i++) -+ if (parameters->options().shared()) -+ thread_safe = true; -+ else - { -- Symbol* sym = symtab->lookup(thread_starter[i], NULL); -- thread_safe = (sym != NULL -- && sym->in_reg() -- && sym->in_real_elf()); -- if (thread_safe) -- break; -+ for (unsigned int i = 0; -+ i < sizeof(thread_starter) / sizeof(thread_starter[0]); -+ i++) -+ { -+ Symbol* sym = symtab->lookup(thread_starter[i], NULL); -+ thread_safe = (sym != NULL -+ && sym->in_reg() -+ && sym->in_real_elf()); -+ if (thread_safe) -+ break; -+ } - } - } -+ this->plt_thread_safe_ = thread_safe; - } -- this->plt_thread_safe_ = thread_safe; - -- if (parameters->options().output_is_position_independent()) -- this->rela_dyn_size_ -- = this->rela_dyn_section(layout)->current_data_size(); -+ if (size == 64 -+ && parameters->options().output_is_position_independent()) -+ { -+ gold_assert (this->rela_dyn_); -+ this->rela_dyn_size_ = this->rela_dyn_->current_data_size(); -+ } - - this->stub_group_size_ = parameters->options().stub_group_size(); - bool no_size_errors = true; diff --git a/SOURCES/binutils-gold-warn-unsupported.patch b/SOURCES/binutils-gold-warn-unsupported.patch index 20a1f98..8e00aa3 100644 --- a/SOURCES/binutils-gold-warn-unsupported.patch +++ b/SOURCES/binutils-gold-warn-unsupported.patch @@ -1,28 +1,8 @@ -diff -rupN --no-dereference binutils-2.41/bfd/config.bfd binutils-2.41-new/bfd/config.bfd ---- binutils-2.41/bfd/config.bfd 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/config.bfd 2023-10-17 08:36:11.974799088 +0200 -@@ -499,7 +499,7 @@ case "${targ}" in - ;; - - #ifdef BFD64 -- bpf-*-none) -+ bpf-*-none | bpf-*) - targ_defvec=bpf_elf64_le_vec - targ_selvecs=bpf_elf64_be_vec - targ_underscore=yes -@@ -1497,7 +1497,7 @@ case "${targ}" in - ;; - - *) -- echo 1>&2 "*** BFD does not support target ${targ}." -+ echo 1>&2 "*** BFD does not support target '${targ}'. Honest." - echo 1>&2 "*** Look in bfd/config.bfd for supported targets." - exit 1 - ;; -diff -rupN --no-dereference binutils-2.41/gold/configure binutils-2.41-new/gold/configure ---- binutils-2.41/gold/configure 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/gold/configure 2023-10-17 08:36:11.972798980 +0200 -@@ -5255,7 +5255,8 @@ for targ in $target $canon_targets; do +Only in binutils-2.34/gold: autom4te.cache +diff -rup binutils.orig/gold/configure binutils-2.34/gold/configure +--- binutils.orig/gold/configure 2020-04-20 12:35:13.048297305 +0100 ++++ binutils-2.34/gold/configure 2020-04-20 14:02:06.743725696 +0100 +@@ -5180,7 +5180,8 @@ for targ in $target $canon_targets; do . ${srcdir}/configure.tgt if test "$targ_obj" = "UNKNOWN"; then @@ -32,10 +12,10 @@ diff -rupN --no-dereference binutils-2.41/gold/configure binutils-2.41-new/gold/ else targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" if test "$targ_extra_obj" != ""; then -diff -rupN --no-dereference binutils-2.41/gold/configure.ac binutils-2.41-new/gold/configure.ac ---- binutils-2.41/gold/configure.ac 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/gold/configure.ac 2023-10-17 08:36:11.973799034 +0200 -@@ -182,7 +182,7 @@ for targ in $target $canon_targets; do +diff -rup binutils.orig/gold/configure.ac binutils-2.34/gold/configure.ac +--- binutils.orig/gold/configure.ac 2020-04-20 12:35:13.050297291 +0100 ++++ binutils-2.34/gold/configure.ac 2020-04-20 14:01:46.435868770 +0100 +@@ -181,7 +181,7 @@ for targ in $target $canon_targets; do . ${srcdir}/configure.tgt if test "$targ_obj" = "UNKNOWN"; then @@ -44,10 +24,9 @@ diff -rupN --no-dereference binutils-2.41/gold/configure.ac binutils-2.41-new/go else targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" if test "$targ_extra_obj" != ""; then -diff -rupN --no-dereference binutils-2.41/ld/configure.tgt binutils-2.41-new/ld/configure.tgt ---- binutils-2.41/ld/configure.tgt 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/configure.tgt 2023-10-17 08:36:11.973799034 +0200 -@@ -267,7 +267,7 @@ bfin-*-linux-uclibc*) targ_emul=elf32bfi +--- binutils.orig/ld/configure.tgt 2020-04-20 12:35:12.465301359 +0100 ++++ binutils-2.34/ld/configure.tgt 2020-04-20 14:17:52.123066333 +0100 +@@ -220,7 +220,7 @@ bfin-*-linux-uclibc*) targ_emul=elf32bfi targ_extra_emuls="elf32bfin" targ_extra_libpath=$targ_extra_emuls ;; @@ -56,7 +35,7 @@ diff -rupN --no-dereference binutils-2.41/ld/configure.tgt binutils-2.41-new/ld/ ;; cr16-*-elf*) targ_emul=elf32cr16 ;; -@@ -1087,7 +1087,7 @@ loongarch64-*) targ_emul=elf64loongarch +@@ -1026,7 +1026,7 @@ z8k-*-coff) targ_emul=z8002 targ_extra_ofiles= ;; *) @@ -65,3 +44,23 @@ diff -rupN --no-dereference binutils-2.41/ld/configure.tgt binutils-2.41-new/ld/ echo 2>&1 "*** see ld/configure.tgt for supported targets" exit 1 +--- binutils.orig/bfd/config.bfd 2020-04-20 12:35:13.038297375 +0100 ++++ binutils-2.34/bfd/config.bfd 2020-04-20 14:25:26.452869193 +0100 +@@ -473,7 +473,7 @@ case "${targ}" in + ;; + + #ifdef BFD64 +- bpf-*-none) ++ bpf-*-none | bpf-*) + targ_defvec=bpf_elf64_le_vec + targ_selvecs=bpf_elf64_be_vec + targ_underscore=yes +@@ -1427,7 +1427,7 @@ case "${targ}" in + ;; + + *) +- echo 1>&2 "*** BFD does not support target ${targ}." ++ echo 1>&2 "*** BFD does not support target '${targ}'. Honest." + echo 1>&2 "*** Look in bfd/config.bfd for supported targets." + exit 1 + ;; diff --git a/SOURCES/binutils-handle-corrupt-version-info.patch b/SOURCES/binutils-handle-corrupt-version-info.patch deleted file mode 100644 index 1287065..0000000 --- a/SOURCES/binutils-handle-corrupt-version-info.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -rupN --no-dereference binutils-2.41/bfd/elf.c binutils-2.41-new/bfd/elf.c ---- binutils-2.41/bfd/elf.c 2023-10-17 08:36:10.773734280 +0200 -+++ binutils-2.41-new/bfd/elf.c 2023-10-17 08:36:21.496307731 +0200 -@@ -9479,6 +9479,8 @@ _bfd_elf_slurp_version_tables (bfd *abfd - if (elf_use_dt_symtab_p (abfd)) - iverneed->vn_filename - = elf_tdata (abfd)->dt_strtab + iverneed->vn_file; -+ else if (hdr == NULL) -+ goto error_return_bad_verref; - else - iverneed->vn_filename - = bfd_elf_string_from_elf_section (abfd, hdr->sh_link, -@@ -9516,6 +9518,8 @@ _bfd_elf_slurp_version_tables (bfd *abfd - if (elf_use_dt_symtab_p (abfd)) - ivernaux->vna_nodename - = elf_tdata (abfd)->dt_strtab + ivernaux->vna_name; -+ else if (hdr == NULL) -+ goto error_return_bad_verref; - else - ivernaux->vna_nodename - = bfd_elf_string_from_elf_section (abfd, hdr->sh_link, -@@ -9546,7 +9550,7 @@ _bfd_elf_slurp_version_tables (bfd *abfd - iverneed->vn_nextref = NULL; - if (iverneed->vn_next == 0) - break; -- if (i + 1 < hdr->sh_info) -+ if (hdr != NULL && (i + 1 < hdr->sh_info)) - iverneed->vn_nextref = iverneed + 1; - - if (iverneed->vn_next diff --git a/SOURCES/binutils-libtool-no-rpath.patch b/SOURCES/binutils-libtool-no-rpath.patch index e4a6f6c..a4f90a1 100644 --- a/SOURCES/binutils-libtool-no-rpath.patch +++ b/SOURCES/binutils-libtool-no-rpath.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.41/ltmain.sh binutils-2.41-new/ltmain.sh ---- binutils-2.41/ltmain.sh 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ltmain.sh 2023-10-17 08:36:15.518989456 +0200 +diff -rup binutils.orig/ltmain.sh binutils-2.37/ltmain.sh +--- binutils.orig/ltmain.sh 2022-01-27 16:23:09.304207432 +0000 ++++ binutils-2.37/ltmain.sh 2022-01-27 16:23:18.380143759 +0000 @@ -7103,6 +7103,7 @@ EOF rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" @@ -25,3 +25,4 @@ diff -rupN --no-dereference binutils-2.41/ltmain.sh binutils-2.41-new/ltmain.sh if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then +Only in binutils-2.37: ltmain.sh.orig diff --git a/SOURCES/binutils-no-config-h-check.patch b/SOURCES/binutils-no-config-h-check.patch index ceed2c1..c89195a 100644 --- a/SOURCES/binutils-no-config-h-check.patch +++ b/SOURCES/binutils-no-config-h-check.patch @@ -1,7 +1,6 @@ -diff -rupN --no-dereference binutils-2.41/bfd/bfd-in2.h binutils-2.41-new/bfd/bfd-in2.h ---- binutils-2.41/bfd/bfd-in2.h 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/bfd-in2.h 2023-10-17 08:36:04.910415849 +0200 -@@ -31,11 +31,6 @@ +--- a/bfd/bfd-in.h 2012-08-02 10:56:34.561769686 +0100 ++++ b/bfd/bfd-in.h 2012-08-02 11:13:27.134797755 +0100 +@@ -25,11 +25,6 @@ #ifndef __BFD_H_SEEN__ #define __BFD_H_SEEN__ @@ -13,10 +12,9 @@ diff -rupN --no-dereference binutils-2.41/bfd/bfd-in2.h binutils-2.41-new/bfd/bf #ifdef __cplusplus extern "C" { #endif -diff -rupN --no-dereference binutils-2.41/bfd/bfd-in.h binutils-2.41-new/bfd/bfd-in.h ---- binutils-2.41/bfd/bfd-in.h 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/bfd-in.h 2023-10-17 08:36:04.909415794 +0200 -@@ -23,11 +23,6 @@ +--- a/bfd/bfd-in2.h 2012-08-02 10:56:34.349769680 +0100 ++++ b/bfd/bfd-in2.h 2012-08-02 11:13:40.015798113 +0100 +@@ -32,11 +32,6 @@ #ifndef __BFD_H_SEEN__ #define __BFD_H_SEEN__ diff --git a/SOURCES/binutils-revert-PLT-elision.patch b/SOURCES/binutils-revert-PLT-elision.patch index 802135b..b262e54 100644 --- a/SOURCES/binutils-revert-PLT-elision.patch +++ b/SOURCES/binutils-revert-PLT-elision.patch @@ -1,27 +1,6 @@ -diff -rupN --no-dereference binutils-2.41/bfd/elfxx-x86.c binutils-2.41-new/bfd/elfxx-x86.c ---- binutils-2.41/bfd/elfxx-x86.c 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/elfxx-x86.c 2023-10-17 08:36:06.092480328 +0200 -@@ -105,7 +105,7 @@ elf_x86_allocate_dynrelocs (struct elf_l - plt_entry_size = htab->plt.plt_entry_size; - - resolved_to_zero = UNDEFINED_WEAK_RESOLVED_TO_ZERO (info, eh); -- -+#if 0 - /* We can't use the GOT PLT if pointer equality is needed since - finish_dynamic_symbol won't clear symbol value and the dynamic - linker won't update the GOT slot. We will get into an infinite -@@ -123,7 +123,7 @@ elf_x86_allocate_dynrelocs (struct elf_l - /* Use the GOT PLT. */ - eh->plt_got.refcount = 1; - } -- -+#endif - /* Since STT_GNU_IFUNC symbol must go through PLT, we handle it - here if it is defined and referenced in a non-shared object. */ - if (h->type == STT_GNU_IFUNC -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pltgot-1.d binutils-2.41-new/ld/testsuite/ld-i386/pltgot-1.d ---- binutils-2.41/ld/testsuite/ld-i386/pltgot-1.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-i386/pltgot-1.d 2023-10-17 08:36:06.088480110 +0200 +diff -rup binutils.orig/ld/testsuite/ld-i386/pltgot-1.d binutils-2.29.1/ld/testsuite/ld-i386/pltgot-1.d +--- binutils.orig/ld/testsuite/ld-i386/pltgot-1.d 2017-11-15 13:32:39.335065263 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-i386/pltgot-1.d 2017-11-15 15:03:55.649727195 +0000 @@ -2,6 +2,7 @@ #readelf: -S --wide #as: --32 @@ -30,9 +9,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pltgot-1.d binuti #... +\[ *[0-9]+\] \.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+10 +.* #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pltgot-2.d binutils-2.41-new/ld/testsuite/ld-i386/pltgot-2.d ---- binutils-2.41/ld/testsuite/ld-i386/pltgot-2.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-i386/pltgot-2.d 2023-10-17 08:36:06.089480165 +0200 +diff -rup binutils.orig/ld/testsuite/ld-i386/pltgot-2.d binutils-2.29.1/ld/testsuite/ld-i386/pltgot-2.d +--- binutils.orig/ld/testsuite/ld-i386/pltgot-2.d 2017-11-15 13:32:39.329065335 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-i386/pltgot-2.d 2017-11-15 15:04:20.803430034 +0000 @@ -3,7 +3,6 @@ #readelf: -d --wide #as: --32 @@ -41,10 +20,10 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pltgot-2.d binuti #... +0x[0-9a-f]+ +\(PLTREL.* #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.41-new/ld/testsuite/ld-i386/pr19636-2d.d ---- binutils-2.41/ld/testsuite/ld-i386/pr19636-2d.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-i386/pr19636-2d.d 2023-10-17 08:36:06.089480165 +0200 -@@ -8,7 +8,7 @@ Relocation section '\.rel\.dyn' at offse +diff -rup binutils.orig/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2d.d +--- binutils.orig/ld/testsuite/ld-i386/pr19636-2d.d 2017-11-15 13:32:39.336065251 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2d.d 2017-11-15 15:03:00.413379749 +0000 +@@ -9,7 +9,7 @@ Relocation section '\.rel\.dyn' at offse [0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func [0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func [0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func @@ -53,10 +32,10 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pr19636-2d.d binu Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.41-new/ld/testsuite/ld-i386/pr19636-2e.d ---- binutils-2.41/ld/testsuite/ld-i386/pr19636-2e.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-i386/pr19636-2e.d 2023-10-17 08:36:06.089480165 +0200 -@@ -8,7 +8,7 @@ Relocation section '\.rel\.dyn' at offse +diff -rup binutils.orig/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2e.d +--- binutils.orig/ld/testsuite/ld-i386/pr19636-2e.d 2017-11-15 13:32:39.330065323 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2e.d 2017-11-15 15:03:28.928042882 +0000 +@@ -9,7 +9,7 @@ Relocation section '\.rel\.dyn' at offse [0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func [0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func [0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func @@ -65,21 +44,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pr19636-2e.d binu Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/pr20830.d binutils-2.41-new/ld/testsuite/ld-i386/pr20830.d ---- binutils-2.41/ld/testsuite/ld-i386/pr20830.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-i386/pr20830.d 2023-10-17 08:36:06.092480328 +0200 -@@ -19,7 +19,7 @@ Contents of the .eh_frame section: - DW_CFA_offset: r8 \(eip\) at cfa-4 - DW_CFA_nop - DW_CFA_nop -- -+#pass - 0+18 00000010 0000001c FDE cie=00000000 pc=00000128..00000133 - DW_CFA_nop - DW_CFA_nop -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.41-new/ld/testsuite/ld-x86-64/pltgot-1.d ---- binutils-2.41/ld/testsuite/ld-x86-64/pltgot-1.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pltgot-1.d 2023-10-17 08:36:06.090480219 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-1.d +--- binutils.orig/ld/testsuite/ld-x86-64/pltgot-1.d 2017-11-15 13:32:39.415064300 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-1.d 2017-11-15 15:08:39.333375801 +0000 @@ -2,8 +2,4 @@ #readelf: -S --wide #as: --64 @@ -89,9 +56,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pltgot-1.d binu -#... - +\[ *[0-9]+\] \.got\.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+18 +.* #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.41-new/ld/testsuite/ld-x86-64/pltgot-2.d ---- binutils-2.41/ld/testsuite/ld-x86-64/pltgot-2.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pltgot-2.d 2023-10-17 08:36:06.090480219 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-2.d +--- binutils.orig/ld/testsuite/ld-x86-64/pltgot-2.d 2017-11-15 13:32:39.404064432 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-2.d 2017-11-15 15:08:59.031143095 +0000 @@ -3,7 +3,6 @@ #readelf: -d --wide #as: --64 @@ -100,17 +67,17 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pltgot-2.d binu #... +0x[0-9a-f]+ +\(PLTREL.* #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.41-new/ld/testsuite/ld-x86-64/plt-main.rd ---- binutils-2.41/ld/testsuite/ld-x86-64/plt-main.rd 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/plt-main.rd 2023-10-17 08:36:06.090480219 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main.rd +--- binutils.orig/ld/testsuite/ld-x86-64/plt-main.rd 2017-11-15 13:32:39.407064397 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main.rd 2017-11-15 15:06:17.244054423 +0000 @@ -1,4 +1,3 @@ -#failif #... [0-9a-f ]+R_X86_64_JUMP_SLOT +0+ +bar \+ 0 #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830a.d ---- binutils-2.41/ld/testsuite/ld-x86-64/pr20830a.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830a.d 2023-10-17 08:36:06.090480219 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a.d +--- binutils.orig/ld/testsuite/ld-x86-64/pr20830a.d 2017-11-15 13:32:39.412064336 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a.d 2017-11-15 15:15:09.918750288 +0000 @@ -20,6 +20,7 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -119,9 +86,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830a.d binu 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4 DW_CFA_nop -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830a-now.d ---- binutils-2.41/ld/testsuite/ld-x86-64/pr20830a-now.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830a-now.d 2023-10-17 08:36:06.091480274 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a-now.d +--- binutils.orig/ld/testsuite/ld-x86-64/pr20830a-now.d 2017-11-15 13:32:39.413064324 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a-now.d 2017-11-15 15:16:08.227055104 +0000 @@ -20,6 +20,7 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -130,9 +97,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830a-now.d 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4 DW_CFA_nop -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830b.d ---- binutils-2.41/ld/testsuite/ld-x86-64/pr20830b.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830b.d 2023-10-17 08:36:06.091480274 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b.d +--- binutils.orig/ld/testsuite/ld-x86-64/pr20830b.d 2017-11-15 13:32:39.413064324 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b.d 2017-11-15 15:16:20.115913358 +0000 @@ -20,7 +20,8 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -143,9 +110,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830b.d binu 0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144 DW_CFA_nop DW_CFA_nop -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830b-now.d ---- binutils-2.41/ld/testsuite/ld-x86-64/pr20830b-now.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pr20830b-now.d 2023-10-17 08:36:06.091480274 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b-now.d +--- binutils.orig/ld/testsuite/ld-x86-64/pr20830b-now.d 2017-11-15 13:32:39.411064348 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b-now.d 2017-11-15 15:16:29.012807282 +0000 @@ -20,7 +20,8 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -156,9 +123,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr20830b-now.d 0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144 DW_CFA_nop DW_CFA_nop -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.41-new/ld/testsuite/ld-x86-64/tlspic2.rd ---- binutils-2.41/ld/testsuite/ld-x86-64/tlspic2.rd 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/tlspic2.rd 2023-10-17 08:36:06.091480274 +0200 +diff -rup binutils.orig/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.29.1/ld/testsuite/ld-x86-64/tlspic2.rd +--- binutils.orig/ld/testsuite/ld-x86-64/tlspic2.rd 2017-11-15 13:32:39.417064276 +0000 ++++ binutils-2.29.1/ld/testsuite/ld-x86-64/tlspic2.rd 2017-11-15 15:05:02.950932110 +0000 @@ -14,6 +14,7 @@ Section Headers: +\[[ 0-9]+\] .dynsym +.* +\[[ 0-9]+\] .dynstr +.* @@ -167,3 +134,34 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/tlspic2.rd binu +\[[ 0-9]+\] .plt +.* +\[[ 0-9]+\] .plt.got +.* +\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+31a 00 +AX +0 +0 4096 +--- binutils.orig/bfd/elfxx-x86.c 2018-01-22 15:59:25.875788033 +0000 ++++ binutils-2.30.0/bfd/elfxx-x86.c 2018-01-22 16:00:20.789146597 +0000 +@@ -107,7 +107,7 @@ elf_x86_allocate_dynrelocs (struct elf_l + plt_entry_size = htab->plt.plt_entry_size; + + resolved_to_zero = UNDEFINED_WEAK_RESOLVED_TO_ZERO (info, eh); +- ++#if 0 + /* We can't use the GOT PLT if pointer equality is needed since + finish_dynamic_symbol won't clear symbol value and the dynamic + linker won't update the GOT slot. We will get into an infinite +@@ -125,7 +125,7 @@ elf_x86_allocate_dynrelocs (struct elf_l + /* Use the GOT PLT. */ + eh->plt_got.refcount = 1; + } +- ++#endif + /* Since STT_GNU_IFUNC symbol must go through PLT, we handle it + here if it is defined and referenced in a non-shared object. */ + if (h->type == STT_GNU_IFUNC +--- binutils.orig/ld/testsuite/ld-i386/pr20830.d 2018-07-09 09:49:51.277239857 +0100 ++++ binutils-2.30.90/ld/testsuite/ld-i386/pr20830.d 2018-07-09 10:32:41.113356733 +0100 +@@ -19,7 +19,7 @@ Contents of the .eh_frame section: + DW_CFA_offset: r8 \(eip\) at cfa-4 + DW_CFA_nop + DW_CFA_nop +- ++#pass + 0+18 00000010 0000001c FDE cie=00000000 pc=00000128..00000133 + DW_CFA_nop + DW_CFA_nop diff --git a/SOURCES/binutils-riscv-testsuite-fixes.patch b/SOURCES/binutils-riscv-testsuite-fixes.patch index 1415ef9..6593e9b 100644 --- a/SOURCES/binutils-riscv-testsuite-fixes.patch +++ b/SOURCES/binutils-riscv-testsuite-fixes.patch @@ -1,60 +1,6 @@ -diff -rupN --no-dereference binutils-2.41/binutils/testsuite/binutils-all/objcopy.exp binutils-2.41-new/binutils/testsuite/binutils-all/objcopy.exp ---- binutils-2.41/binutils/testsuite/binutils-all/objcopy.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/binutils/testsuite/binutils-all/objcopy.exp 2023-10-17 08:36:19.150183227 +0200 -@@ -1409,6 +1409,8 @@ proc objcopy_test_without_global_symbol - # The AArch64 and ARM targets preserve mapping symbols - # in object files, so they will fail this test. - setup_xfail aarch64*-*-* arm*-*-* -+# The RISC-V target compiles with annotation enabled and these symbols remain after stripping. -+setup_xfail riscv*-*-* - - objcopy_test_without_global_symbol - -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-elf/dwarf.exp binutils-2.41-new/ld/testsuite/ld-elf/dwarf.exp ---- binutils-2.41/ld/testsuite/ld-elf/dwarf.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-elf/dwarf.exp 2023-10-17 08:36:19.150183227 +0200 -@@ -29,6 +29,10 @@ if ![is_elf_format] { - return - } - -+if { [istarget riscv*-*-*] } then { -+ return -+} -+ - # Skip targets where -shared is not supported - - if ![check_shared_lib_support] { -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-elf/tls.exp binutils-2.41-new/ld/testsuite/ld-elf/tls.exp ---- binutils-2.41/ld/testsuite/ld-elf/tls.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-elf/tls.exp 2023-10-17 08:36:19.150183227 +0200 -@@ -28,6 +28,10 @@ if { !([istarget *-*-linux*] - return - } - -+if { [istarget riscv*-*-*] } then { -+ return -+} -+ - # Check to see if the C compiler works. - if { ![check_compiler_available] } { - return -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-plugin/plugin.exp binutils-2.41-new/ld/testsuite/ld-plugin/plugin.exp ---- binutils-2.41/ld/testsuite/ld-plugin/plugin.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-plugin/plugin.exp 2023-10-17 08:36:19.150183227 +0200 -@@ -132,6 +132,10 @@ if [is_pecoff_format] { - append libs " --image-base=0x10000000" - } - -+if { [istarget riscv*-*-*] } then { -+ return -+} -+ - set plugin_tests [list \ - [list "load plugin" "-plugin $plugin_path \ - $testobjfiles $libs" "" "" "" {{ld plugin-1.d}} "main.x" ] \ -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/attr-phdr.d binutils-2.41-new/ld/testsuite/ld-riscv-elf/attr-phdr.d ---- binutils-2.41/ld/testsuite/ld-riscv-elf/attr-phdr.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-riscv-elf/attr-phdr.d 2023-10-17 08:36:19.149183174 +0200 +diff -rup binutils.orig/ld/testsuite/ld-riscv-elf/attr-phdr.d binutils-2.40/ld/testsuite/ld-riscv-elf/attr-phdr.d +--- binutils.orig/ld/testsuite/ld-riscv-elf/attr-phdr.d 2023-02-16 10:11:38.656875289 +0000 ++++ binutils-2.40/ld/testsuite/ld-riscv-elf/attr-phdr.d 2023-02-16 10:49:26.786573665 +0000 @@ -12,8 +12,8 @@ Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align RISCV_ATTRIBUT .* @@ -66,9 +12,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/attr-phdr.d 00 .riscv.attributes - 01 .text +#pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d ---- binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d 2023-10-17 08:36:19.149183174 +0200 +diff -rup binutils.orig/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d +--- binutils.orig/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d 2023-02-16 10:11:38.659875285 +0000 ++++ binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d 2023-02-16 10:42:54.803431287 +0000 @@ -8,7 +8,7 @@ Disassembly of section \.text: @@ -78,40 +24,126 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-0 .*:[ ]+[0-9a-f]+[ ]+jal[ ]+ra,[0-9a-f]+ <_start> .*:[ ]+[0-9a-f]+[ ]+addi[ ]+a1,gp,\-[0-9]+ # [0-9a-f]+ .*:[ ]+[0-9a-f]+[ ]+addi[ ]+a2,gp,\-[0-9]+ # [0-9a-f]+ -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d ---- binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d 2023-10-17 08:36:19.151183281 +0200 -@@ -8,11 +8,11 @@ - Disassembly of section \.text: - - 0+[0-9a-f]+ <_start>: --.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a0,a0,[0-9]+ -+.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a0,a0,.* - .*:[ ]+[0-9a-f]+[ ]+jal[ ]+ra,[0-9a-f]+ <_start> - .*:[ ]+[0-9a-f]+[ ]+auipc[ ]+a1,0x[0-9a-f]+ --.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a1,a1,[0-9]+ # [0-9a-f]+ -+.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a1,a1,.* # [0-9a-f]+ - .*:[ ]+[0-9a-f]+[ ]+lui[ ]+a2,0x[0-9a-f]+ --.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a2,a2,[0-9]+ # [0-9a-f]+ -+.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a2,a2,.* # [0-9a-f]+ - .*:[ ]+[0-9a-f]+[ ]+addi[ ]+a3,tp,0 # 0 - .*:[ ]+[0-9a-f]+[ ]+auipc[ ]+a0,0x[0-9a-f]+ -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d ---- binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d 2023-10-17 08:36:19.149183174 +0200 +diff -rup binutils.orig/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d +--- binutils.orig/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d 2023-02-16 10:11:38.659875285 +0000 ++++ binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d 2023-02-16 10:43:49.540306593 +0000 @@ -11,5 +11,5 @@ Disassembly of section .text: [0-9a-f]+ <_start>: .*:[ ]+[0-9a-f]+[ ]+auipc[ ]+a1.* - .*:[ ]+[0-9a-f]+[ ]+addi?[ ]+a0,gp.* --.*:[ ]+[0-9a-f]+[ ]+addi?[ ]+a1,a1.* + .*:[ ]+[0-9a-f]+[ ]+addi[ ]+a0,gp.* +-.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a1,a1.* +.*:[ ]+[0-9a-f]+[ ]+mv[ ]+a1,a1 #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d ---- binutils-2.41/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d 2023-10-17 08:36:19.149183174 +0200 +diff -rup binutils.orig/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d binutils-2.40/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d +--- binutils.orig/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d 2023-02-16 10:11:38.659875285 +0000 ++++ binutils-2.40/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d 2023-02-16 10:46:55.570899994 +0000 @@ -2,4 +2,5 @@ #source: pcrel-lo-addend-2a.s #as: -march=rv32ic #ld: -m[riscv_choose_ilp32_emul] --no-relax +#skip: *-*-* #error: .*dangerous relocation: %pcrel_lo overflow with an addend, the value of %pcrel_hi is 0x1000 without any addend, but may be 0x2000 after adding the %pcrel_lo addend +diff -rup binutils.orig/ld/testsuite/ld-elf/dwarf.exp binutils-2.40/ld/testsuite/ld-elf/dwarf.exp +--- binutils.orig/ld/testsuite/ld-elf/dwarf.exp 2023-02-16 10:11:38.515875516 +0000 ++++ binutils-2.40/ld/testsuite/ld-elf/dwarf.exp 2023-02-16 11:08:52.209377332 +0000 +@@ -29,6 +29,10 @@ if ![is_elf_format] { + return + } + ++if { [istarget riscv*-*-*] } then { ++ return ++} ++ + # Skip targets where -shared is not supported + + if ![check_shared_lib_support] { +diff -rup binutils.orig/ld/testsuite/ld-elf/tls.exp binutils-2.40/ld/testsuite/ld-elf/tls.exp +--- binutils.orig/ld/testsuite/ld-elf/tls.exp 2023-02-16 10:11:38.540875476 +0000 ++++ binutils-2.40/ld/testsuite/ld-elf/tls.exp 2023-02-16 11:08:56.944369374 +0000 +@@ -28,6 +28,10 @@ if { !([istarget *-*-linux*] + return + } + ++if { [istarget riscv*-*-*] } then { ++ return ++} ++ + # Check to see if the C compiler works. + if { ![check_compiler_available] } { + return +--- binutils.orig/binutils/testsuite/binutils-all/objcopy.exp 2023-08-24 07:48:30.429195480 +0100 ++++ binutils-2.41/binutils/testsuite/binutils-all/objcopy.exp 2023-08-24 07:57:05.535302711 +0100 +@@ -1409,6 +1409,8 @@ proc objcopy_test_without_global_symbol + # The AArch64 and ARM targets preserve mapping symbols + # in object files, so they will fail this test. + setup_xfail aarch64*-*-* arm*-*-* ++# The RISC-V target compiles with annotation enabled and these symbols remain after stripping. ++setup_xfail riscv*-*-* + + objcopy_test_without_global_symbol + +--- binutils.orig/ld/testsuite/ld-plugin/plugin.exp 2023-08-24 07:48:31.808196076 +0100 ++++ binutils-2.41/ld/testsuite/ld-plugin/plugin.exp 2023-08-24 07:59:30.285716568 +0100 +@@ -132,6 +132,10 @@ if [is_pecoff_format] { + append libs " --image-base=0x10000000" + } + ++if { [istarget riscv*-*-*] } then { ++ return ++} ++ + set plugin_tests [list \ + [list "load plugin" "-plugin $plugin_path \ + $testobjfiles $libs" "" "" "" {{ld plugin-1.d}} "main.x" ] \ +--- binutils.orig/binutils/testsuite/binutils-all/compress.exp 2023-12-11 10:09:16.923374463 +0000 ++++ binutils-2.41/binutils/testsuite/binutils-all/compress.exp 2023-12-12 09:00:15.150036675 +0000 +@@ -818,6 +818,10 @@ proc test_gnu_debuglink {} { + } + } + ++if { [istarget riscv*-*-*] } then { ++ return ++} ++ + if {[is_elf_format]} then { + test_gnu_debuglink + } +--- binutils-2.41/ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d 2023-07-03 00:00:00.000000000 +0100 ++++ binutils.new/ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d 2023-12-12 11:52:54.564057931 +0000 +@@ -8,10 +8,10 @@ + Disassembly of section \.text: + + 0+[0-9a-f]+ <_start>: +-.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a0,a0,[0-9]+ ++.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a0,a0,\-[0-9]+ + .*:[ ]+[0-9a-f]+[ ]+jal[ ]+ra,[0-9a-f]+ <_start> + .*:[ ]+[0-9a-f]+[ ]+auipc[ ]+a1,0x[0-9a-f]+ +-.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a1,a1,[0-9]+ # [0-9a-f]+ ++.*:[ ]+[0-9a-f]+[ ]+addi[ ]+a1,a1,\-[0-9]+ # [0-9a-f]+ + .*:[ ]+[0-9a-f]+[ ]+lui[ ]+a2,0x[0-9a-f]+ + .*:[ ]+[0-9a-f]+[ ]+addi[ ]+a2,a2,[0-9]+ # [0-9a-f]+ + .*:[ ]+[0-9a-f]+[ ]+addi[ ]+a3,tp,0 # 0 +--- binutils.orig/binutils/testsuite/binutils-all/objcopy.exp 2023-12-12 14:21:10.225342926 +0000 ++++ binutils-2.41/binutils/testsuite/binutils-all/objcopy.exp 2023-12-12 14:22:12.453421499 +0000 +@@ -1410,7 +1410,7 @@ proc objcopy_test_without_global_symbol + # in object files, so they will fail this test. + setup_xfail aarch64*-*-* arm*-*-* + # The RISC-V target compiles with annotation enabled and these symbols remain after stripping. +-setup_xfail riscv*-*-* ++# setup_xfail riscv*-*-* + + objcopy_test_without_global_symbol + +--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2024-02-08 10:12:23.739591113 +0000 ++++ binutils-2.42/ld/testsuite/ld-ifunc/ifunc.exp 2024-02-08 10:14:58.243670115 +0000 +@@ -666,6 +666,10 @@ run_cc_link_tests [list \ + ] \ + ] + ++if {[istarget "riscv*-*-*"]} { ++ return ++} ++ + run_ld_link_exec_tests [list \ + [list \ + "Run pr18808" \ diff --git a/SOURCES/binutils-special-sections-in-groups.patch b/SOURCES/binutils-special-sections-in-groups.patch deleted file mode 100644 index b567538..0000000 --- a/SOURCES/binutils-special-sections-in-groups.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -rupN --no-dereference binutils-2.41/bfd/elf.c binutils-2.41-new/bfd/elf.c ---- binutils-2.41/bfd/elf.c 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/elf.c 2023-10-17 08:36:09.594670522 +0200 -@@ -827,7 +827,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd - } - } - -- if (elf_group_name (newsect) == NULL) -+ if (elf_group_name (newsect) == NULL -+ /* OS specific sections might be in a group (eg ARM's ARM_EXIDX section) -+ but they will not have been added to the group because they do not -+ have contents that the ELF code in the BFD library knows how to -+ process. This is OK though - we rely upon the target backends to -+ handle these sections for us. */ -+ && hdr->sh_type < SHT_LOOS) - { - /* xgettext:c-format */ - _bfd_error_handler (_("%pB: no group info for section '%pA'"), -@@ -935,7 +941,8 @@ _bfd_elf_setup_sections (bfd *abfd) - else if (idx->shdr->bfd_section) - elf_sec_group (idx->shdr->bfd_section) = shdr->bfd_section; - else if (idx->shdr->sh_type != SHT_RELA -- && idx->shdr->sh_type != SHT_REL) -+ && idx->shdr->sh_type != SHT_REL -+ && idx->shdr->sh_type < SHT_LOOS) - { - /* There are some unknown sections in the group. */ - _bfd_error_handler diff --git a/SOURCES/binutils-suppress-ld-align-tests.patch b/SOURCES/binutils-suppress-ld-align-tests.patch new file mode 100644 index 0000000..40164d7 --- /dev/null +++ b/SOURCES/binutils-suppress-ld-align-tests.patch @@ -0,0 +1,13 @@ +--- binutils.orig/ld/testsuite/ld-elf/linux-x86.exp 2024-01-24 11:52:35.288014542 +0000 ++++ binutils-2.41/ld/testsuite/ld-elf/linux-x86.exp 2024-01-24 17:31:39.356167357 +0000 +@@ -225,6 +225,10 @@ if { [check_ifunc_attribute_available] } + # Old gcc silently ignores __attribute__ ((aligned())) with too big alignment. + proc compiler_honours_aligned { } { + global CC_FOR_TARGET READELF srcdir subdir ++ ++ # Temporary fix for CentOS-10 kernel issue. (RHEL-22466) ++ return 0 ++ + ld_compile $CC_FOR_TARGET $srcdir/$subdir/p_align-1.c tmpdir/p_align-1.o + set output [run_host_cmd "$READELF" "-SW tmpdir/p_align-1.o"] + if { [regexp { [.]data *PROGBITS .* 8388608[\n]} $output] } { diff --git a/SOURCES/binutils-testsuite-fixes.patch b/SOURCES/binutils-testsuite-fixes.patch index 716b7ae..ba2fdc9 100644 --- a/SOURCES/binutils-testsuite-fixes.patch +++ b/SOURCES/binutils-testsuite-fixes.patch @@ -1,24 +1,20 @@ -diff -rupN --no-dereference binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp binutils-2.41-new/binutils/testsuite/binutils-all/addr2line.exp ---- binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/binutils/testsuite/binutils-all/addr2line.exp 2023-10-17 08:36:17.898116563 +0200 -@@ -39,9 +39,9 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ +--- binutils.orig/binutils/testsuite/binutils-all/addr2line.exp 2023-08-03 13:09:07.628503779 +0100 ++++ binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp 2023-08-03 13:18:37.138443954 +0100 +@@ -39,7 +39,7 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ } else { set list [regexp -inline -all -- {\S+} $contents] set got [binutils_run $ADDR2LINE "-e tmpdir/testprog$exe [lindex $list 0]"] - set want "$srcdir/$subdir/testprog.c:\[0-9\]+" -+ set want ".*" ++ set want "$srcdir/$subdir/.\*" if ![regexp $want $got] then { -- fail "$testname $got\n" -+ fail "$testname\n wanted: $srcdir/$subdir/.*\n got: $got\n" + fail "$testname $got\n" } else { - pass "$testname" - } @@ -54,7 +54,7 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ } else { set list [regexp -inline -all -- {\S+} $contents] set got [binutils_run $ADDR2LINE "-f -e tmpdir/testprog$exe [lindex $list 0]"] - set want "fn\n$srcdir/$subdir/testprog.c:\[0-9\]+" -+ set want "fn\n.*" ++ set want "fn\n$srcdir/$subdir/.\*" if ![regexp $want $got] then { fail "$testname -f option $got\n" } else { @@ -31,9 +27,8 @@ diff -rupN --no-dereference binutils-2.41/binutils/testsuite/binutils-all/addr2l if ![regexp $want $got] then { fail "$testname -s option $got\n" } else { -diff -rupN --no-dereference binutils-2.41/binutils/testsuite/binutils-all/objdump.exp binutils-2.41-new/binutils/testsuite/binutils-all/objdump.exp ---- binutils-2.41/binutils/testsuite/binutils-all/objdump.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/binutils/testsuite/binutils-all/objdump.exp 2023-10-17 08:36:17.897116510 +0200 +--- binutils.orig/binutils/testsuite/binutils-all/objdump.exp 2023-08-03 13:09:07.631503783 +0100 ++++ binutils-2.41/binutils/testsuite/binutils-all/objdump.exp 2023-08-03 14:51:54.621295727 +0100 @@ -921,7 +921,7 @@ proc test_objdump_S { } { } } @@ -43,299 +38,117 @@ diff -rupN --no-dereference binutils-2.41/binutils/testsuite/binutils-all/objdum # Test objdump --private proc test_objdump_P {} { -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/bti-plt-5.d binutils-2.41-new/ld/testsuite/ld-aarch64/bti-plt-5.d ---- binutils-2.41/ld/testsuite/ld-aarch64/bti-plt-5.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/bti-plt-5.d 2023-10-17 08:36:17.899116616 +0200 -@@ -12,8 +12,8 @@ Disassembly of section \.plt: - [0-9a-f]+ <.*>: - .*: d503245f bti c - .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! --.*: 90000090 adrp x16, 410000 <.*> --.*: f9...... ldr x17, \[x16, #....\] -+.*: 90000090 adrp x16, 4.0000 <.*> -+.*: f9...... ldr x17, \[x16, #.*\] - .*: 91...... add x16, x16, #0x... - .*: d61f0220 br x17 - .*: d503201f nop -@@ -21,8 +21,8 @@ Disassembly of section \.plt: +--- binutils.orig/ld/testsuite/ld-scripts/ld-version.d 2023-08-03 13:09:07.949504208 +0100 ++++ binutils-2.41/ld/testsuite/ld-scripts/ld-version.d 2023-08-03 15:13:01.374590134 +0100 +@@ -4,4 +4,4 @@ + # target: [is_elf_format] - [0-9a-f]+ <.*>: - .*: d503245f bti c --.*: 90000090 adrp x16, 410000 <.*> --.*: f9...... ldr x17, \[x16, #....\] -+.*: 90000090 adrp x16, 4.0000 <.*> -+.*: f9...... ldr x17, \[x16, #.*\] - .*: 91...... add x16, x16, #0x... - .*: d61f0220 br x17 - .*: d503201f nop -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/erratum843419-far-full.d binutils-2.41-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d ---- binutils-2.41/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2023-10-17 08:36:17.899116616 +0200 -@@ -8,7 +8,7 @@ Disassembly of section \.text: + String dump of section '.comment': +-.*GNU ld \(.*\) 2.* ++.*GNU ld .* 2.* +--- binutils.orig/ld/testsuite/ld-scripts/ld-version-2.d 2023-08-03 13:09:07.949504208 +0100 ++++ binutils-2.41/ld/testsuite/ld-scripts/ld-version-2.d 2023-08-03 15:13:13.917605323 +0100 +@@ -4,4 +4,4 @@ + # target: [is_elf_format] - 0*400000 <_start>: - ... -- 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+0x7ffedff0> -+ 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+0x[0-9a-f]+> - 401000: f9000042 str x2, \[x2\] - 401004: d2800002 mov x2, #0x0 // #0 - 401008: 14000004 b 401018 -@@ -18,5 +18,5 @@ Disassembly of section \.text: - - 0*401018 : - 401018: f9402001 ldr x1, \[x0, #64\] -- 40101c: 17fffffc b 40100c <_start\+0x100c> -+ 40101c: 17fffffc b 40100c <_start\+0x[0-9a-f]+> - ... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/farcall-bl-plt.d binutils-2.41-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d ---- binutils-2.41/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2023-10-17 08:36:17.900116670 +0200 -@@ -10,7 +10,7 @@ Disassembly of section .plt: - - .* <.plt>: - .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! --.*: .* adrp x16, .* <__foo_veneer\+.*> -+.*: .* adrp x16, .* <.*> - .*: .* ldr [wx]17, \[x16, #.*\] - .*: .* add [wx]16, [wx]16, #.* - .*: d61f0220 br x17 -@@ -19,7 +19,7 @@ Disassembly of section .plt: - .*: d503201f nop - - .* : --.*: .* adrp x16, .* <__foo_veneer\+.*> -+.*: .* adrp x16, .* <.*> - .*: .* ldr [wx]17, \[x16, #.*\] - .*: .* add [wx]16, [wx]16, #.* - .*: d61f0220 br x17 -@@ -35,7 +35,7 @@ Disassembly of section .text: - .*: .* nop - - .* <__foo_veneer>: --.*: .* adrp x16, 0 <.*> -+.*: .* adrp x16, [0-9a-f]+ <.*> - .*: .* add x16, x16, #.* - .*: d61f0200 br x16 - ... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/farcall-b-plt.d binutils-2.41-new/ld/testsuite/ld-aarch64/farcall-b-plt.d ---- binutils-2.41/ld/testsuite/ld-aarch64/farcall-b-plt.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/farcall-b-plt.d 2023-10-17 08:36:17.899116616 +0200 -@@ -10,7 +10,7 @@ Disassembly of section .plt: - - .* <.plt>: - .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! --.*: .* adrp x16, .* <__foo_veneer\+.*> -+.*: .* adrp x16, .* <.*> - .*: .* ldr [wx]17, \[x16, #.*\] - .*: .* add [wx]16, [wx]16, #.* - .*: d61f0220 br x17 -@@ -19,7 +19,7 @@ Disassembly of section .plt: - .*: d503201f nop - - .* : --.*: .* adrp x16, .* <__foo_veneer\+.*> -+.*: .* adrp x16, .* <.*> - .*: .* ldr [wx]17, \[x16, #.*\] - .*: .* add [wx]16, [wx]16, #.* - .*: d61f0220 br x17 -@@ -35,7 +35,7 @@ Disassembly of section .text: - .*: .* nop - - .* <__foo_veneer>: --.*: .* adrp x16, 0 <.*> -+.*: .* adrp x16, [0-9a-f]+ <.*> - .*: .* add x16, x16, #.* - .*: d61f0200 br x16 - ... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-1.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-1.d 2023-10-17 08:36:17.900116670 +0200 -@@ -2,8 +2,4 @@ - #ld: -shared --hash-style=sysv - #objdump: -dw - --#... --0+(130|1a0|1c8) : --#... --[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt> + String dump of section '.comment': +-.*GNU ld \(.*\) 2.* ++.*GNU ld .* 2.* +--- binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err 2023-08-03 13:09:07.969504235 +0100 ++++ binutils-2.41/ld/testsuite/ld-x86-64/pr22001-1b.err 2023-08-03 15:22:49.743286617 +0100 +@@ -1,2 +1,2 @@ +-.*relocation R_X86_64_32S against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE ++.*relocation R_X86_64_.* against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE + #... +--- binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2023-08-03 13:09:07.965504230 +0100 ++++ binutils-2.41/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2023-08-03 15:31:54.864037693 +0100 +@@ -1,7 +1,2 @@ + #... +-Disassembly of section .plt.got: +- +-[a-f0-9]+ <[_a-z]+@plt>: +-[ ]*[a-f0-9]+: f3 0f 1e fa endbr64 +-[ ]*[a-f0-9]+: ff 25 .. .. 3f 00 jmp +\*0x3f....\(%rip\) # ...... <.*> #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-1-local.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1-local.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-1-local.d 2023-10-17 08:36:17.900116670 +0200 -@@ -2,8 +2,4 @@ - #ld: -shared --hash-style=sysv - #objdump: -dw - --#... --0+(110|180|1a0) <(__GI_)?foo>: --#... --[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0)@plt> - #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-21.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-21.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-21.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-21.d 2023-10-17 08:36:17.900116670 +0200 -@@ -11,7 +11,7 @@ Contents of section .text: - [0-9a-f]+ .* - Contents of section .got.plt: - [0-9a-f]+ 0+ 0+ 0+ 0+ .* -- (10298|102b8) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .* -+ (10298|102b8|20108) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .* - - Disassembly of section .text: - -@@ -19,8 +19,8 @@ Disassembly of section .text: - .*: d65f03c0 ret - - .* : -- .*: 90000080 adrp x0, 10000 <.*> -- .*: .* ldr x0, \[x0, #(672|704)\] -+ .*: 90000080 adrp x0, .0000 <.*> -+ .*: .* ldr x0, \[x0, #(672|704|272)\] - .*: d65f03c0 ret - - #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-22.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-22.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-22.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-22.d 2023-10-17 08:36:17.901116723 +0200 -@@ -8,4 +8,4 @@ - .*: file format elf64-(little|big)aarch64 - - Contents of section \.got: -- [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .* -+#pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-2.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-2.d 2023-10-17 08:36:17.901116723 +0200 -@@ -2,10 +2,4 @@ - #ld: -shared --hash-style=sysv - #objdump: -dw - --#... --0+(130|1a0|1c8) : --#... --[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt> --[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*> --[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8) - #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-2-local.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-10-17 08:36:17.901116723 +0200 -@@ -2,10 +2,4 @@ - #ld: -shared --hash-style=sysv - #objdump: -dw - --#... --0+(110|180|1a0) <__GI_foo>: --#... --[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0)@plt> --[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*> --[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190) - #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-3a.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-10-17 08:36:17.901116723 +0200 -@@ -3,8 +3,4 @@ - #ld: -shared --hash-style=sysv - #objdump: -dw - --#... --0+(150|1d0|1e8) <__GI_foo>: --#... --[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8)@plt> - #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-aarch64/ifunc-7c.d binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-7c.d ---- binutils-2.41/ld/testsuite/ld-aarch64/ifunc-7c.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-aarch64/ifunc-7c.d 2023-10-17 08:36:17.901116723 +0200 -@@ -11,9 +11,9 @@ - Disassembly of section \.text: - - [0-9a-f]+ : -- [0-9a-f]+: d65f03c0 ret -+[ ]+[0-9a-f]+:[ ]+d65f03c0[ ]+ret - - [0-9a-f]+ <__start>: -- [0-9a-f]+: [0-9a-f]+ bl [0-9a-f]+ <\*ABS\*\+0x[0-9a-f]+@plt> -- [0-9a-f]+: [0-9a-f]+ adrp x0, [0-9]+ <__start\+0x[0-9a-f]+> -- [0-9a-f]+: [0-9a-f]+ ldr x0, \[x0, .+\] -+[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+bl[ ]+[0-9a-f]+ <\*ABS\*\+0x[0-9a-f]+@plt> -+[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+adrp[ ]+x0, [0-9]+ <.*> -+[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+ldr[ ]+x0, \[x0, .+\] -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-elf/binutils.exp binutils-2.41-new/ld/testsuite/ld-elf/binutils.exp ---- binutils-2.41/ld/testsuite/ld-elf/binutils.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-elf/binutils.exp 2023-10-17 08:36:17.902116776 +0200 -@@ -174,7 +174,7 @@ binutils_test strip "-T ${srcdir}/${subd - - set tls_tests { "tdata1" "tdata2" } - # hppa64 has its own .tbss section, with different flags. --if { ![istarget "hppa64-*-*"] } { -+if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-*"] } { - lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3" - } - set tls_opts { -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-elf/linux-x86.exp binutils-2.41-new/ld/testsuite/ld-elf/linux-x86.exp ---- binutils-2.41/ld/testsuite/ld-elf/linux-x86.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-elf/linux-x86.exp 2023-10-17 08:36:17.905116936 +0200 -@@ -73,6 +73,10 @@ run_ld_link_tests [list \ - ] \ - ] - -+if { [istarget "i686-*-*"] } { -+ return -+} -+ - run_cc_link_tests [list \ - [list \ - "Build indirect-extern-access-1.so" \ -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-elf/shared.exp binutils-2.41-new/ld/testsuite/ld-elf/shared.exp ---- binutils-2.41/ld/testsuite/ld-elf/shared.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-elf/shared.exp 2023-10-17 08:36:17.903116830 +0200 -@@ -1152,10 +1152,6 @@ set run_tests [list \ - [list "Run pr21964-3" \ - "-Wl,--no-as-needed,-rpath,tmpdir tmpdir/pr21964-1a.so tmpdir/pr21964-1b.so tmpdir/pr21964-3a.so" "" \ - {pr21964-3c.c} "pr21964-3" "pass.out" ] \ -- [list "pr26580-3" \ -- "" "" \ -- {pr26580-a.c} "pr26580-3" "pr26580-3.out" "-fcommon" "c" "" \ -- "-Wl,--as-needed tmpdir/libpr26580-2.so" ] \ - [list "pr26580-4" \ - "" "" \ - {pr26580-a.c} "pr26580-4" "pr26580-4.out" "-fcommon" "c" "" \ -@@ -1579,18 +1575,6 @@ if { [istarget *-*-linux*] - "pr22393-2-static" \ - "pass.out" \ +--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp 2023-08-03 13:09:07.975504243 +0100 ++++ binutils-2.41/ld/testsuite/ld-x86-64/x86-64.exp 2023-08-03 15:46:29.537416942 +0100 +@@ -1386,7 +1386,7 @@ if { [isnative] && [check_compiler_avail + "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-2b.so" \ + "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ + { protected-func-1b.c } \ +- {{error_output "pr28875-func.err"}} \ ++ {} \ + "protected-func-2" \ ] \ -- [list \ -- "Run pr21964-4" \ -- "" \ -- "" \ -- {pr21964-4.c} \ -- "pr21964-4" \ -- "pass.out" \ -- "" \ -- "" \ -- "" \ -- "-ldl" \ -- ] \ - ] - } - -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-i386/i386.exp binutils-2.41-new/ld/testsuite/ld-i386/i386.exp ---- binutils-2.41/ld/testsuite/ld-i386/i386.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-i386/i386.exp 2023-10-17 08:36:17.903116830 +0200 -@@ -597,6 +597,10 @@ proc undefined_weak {cflags ldflags} { + [list \ +@@ -1402,7 +1402,7 @@ if { [isnative] && [check_compiler_avail + "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-2c.so" \ + "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ + { protected-func-1b.c } \ +- {{error_output "pr28875-func.err"}} \ ++ {} \ + "protected-func-2a" \ + ] \ + [list \ +@@ -2155,7 +2155,6 @@ if { [isnative] && [check_compiler_avail + } } - } -+if { [istarget "i686-*-*"] } { -+ return -+} +- undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" + undefined_weak "-fPIE" "" + undefined_weak "-fPIE" "-pie" + undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak" +--- binutils.orig/binutils/testsuite/binutils-all/addr2line.exp 2023-08-04 14:00:37.692356718 +0100 ++++ binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp 2023-08-04 14:04:32.627697316 +0100 +@@ -39,9 +39,9 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ + } else { + set list [regexp -inline -all -- {\S+} $contents] + set got [binutils_run $ADDR2LINE "-e tmpdir/testprog$exe [lindex $list 0]"] +- set want "$srcdir/$subdir/.\*" ++ set want "$srcdir/.\*" + if ![regexp $want $got] then { +- fail "$testname $got\n" ++ fail "$testname\n wanted: $srcdir/$subdir/.*\n got: $got\n" + } else { + pass "$testname" + } +@@ -54,7 +54,7 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ + } else { + set list [regexp -inline -all -- {\S+} $contents] + set got [binutils_run $ADDR2LINE "-f -e tmpdir/testprog$exe [lindex $list 0]"] +- set want "fn\n$srcdir/$subdir/.\*" ++ set want "fn\n$srcdir/.\*" + if ![regexp $want $got] then { + fail "$testname -f option $got\n" + } else { +--- binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2023-08-04 14:00:38.923357454 +0100 ++++ binutils-2.41/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2023-08-04 14:06:45.525679653 +0100 +@@ -1,2 +1,3 @@ + #... + - # Must be Linux native with the C compiler - if { [isnative] - && [istarget "i?86-*-linux*"] -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-plugin/lto.exp binutils-2.41-new/ld/testsuite/ld-plugin/lto.exp ---- binutils-2.41/ld/testsuite/ld-plugin/lto.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-plugin/lto.exp 2023-10-17 08:36:17.899116616 +0200 + #pass +--- binutils.orig/binutils/testsuite/binutils-all/addr2line.exp 2023-08-04 16:05:44.678916015 +0100 ++++ binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp 2023-08-04 16:08:23.779024539 +0100 +@@ -39,7 +39,7 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ + } else { + set list [regexp -inline -all -- {\S+} $contents] + set got [binutils_run $ADDR2LINE "-e tmpdir/testprog$exe [lindex $list 0]"] +- set want "$srcdir/.\*" ++ set want ".*" + if ![regexp $want $got] then { + fail "$testname\n wanted: $srcdir/$subdir/.*\n got: $got\n" + } else { +@@ -54,7 +54,7 @@ if ![regexp -line "^(\[0-9a-fA-F\]+)? +\ + } else { + set list [regexp -inline -all -- {\S+} $contents] + set got [binutils_run $ADDR2LINE "-f -e tmpdir/testprog$exe [lindex $list 0]"] +- set want "fn\n$srcdir/.\*" ++ set want "fn\n.*" + if ![regexp $want $got] then { + fail "$testname -f option $got\n" + } else { +--- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2023-08-04 16:05:45.721916727 +0100 ++++ binutils-2.41/ld/testsuite/ld-plugin/lto.exp 2023-08-04 16:13:11.794221039 +0100 @@ -31,8 +31,8 @@ if { ![check_plugin_api_available] set saved_CFLAGS "$CFLAGS_FOR_TARGET" @@ -347,6 +160,8 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-plugin/lto.exp binutil proc restore_notify { } { global saved_CFLAGS +--- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2023-08-04 16:43:51.926589278 +0100 ++++ binutils-2.41/ld/testsuite/ld-plugin/lto.exp 2023-08-04 16:45:14.323650391 +0100 @@ -474,7 +474,7 @@ set lto_link_elf_tests [list \ [list \ "Build libpr28879a.so" \ @@ -374,9 +189,264 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-plugin/lto.exp binutil {pr29086.c} \ {} \ "pr29086" \ -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.41-new/ld/testsuite/ld-powerpc/powerpc.exp ---- binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/powerpc.exp 2023-10-17 08:36:17.904116883 +0200 +diff -rup binutils.orig/ld/testsuite/ld-aarch64/bti-plt-5.d binutils-2.41/ld/testsuite/ld-aarch64/bti-plt-5.d +--- binutils.orig/ld/testsuite/ld-aarch64/bti-plt-5.d 2023-08-15 09:03:21.676463687 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/bti-plt-5.d 2023-08-15 09:17:56.751533569 +0100 +@@ -12,8 +12,8 @@ Disassembly of section \.plt: + [0-9a-f]+ <.*>: + .*: d503245f bti c + .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! +-.*: 90000090 adrp x16, 410000 <.*> +-.*: f9...... ldr x17, \[x16, #....\] ++.*: 90000090 adrp x16, 4.0000 <.*> ++.*: f9...... ldr x17, \[x16, #.*\] + .*: 91...... add x16, x16, #0x... + .*: d61f0220 br x17 + .*: d503201f nop +@@ -21,8 +21,8 @@ Disassembly of section \.plt: + + [0-9a-f]+ <.*>: + .*: d503245f bti c +-.*: 90000090 adrp x16, 410000 <.*> +-.*: f9...... ldr x17, \[x16, #....\] ++.*: 90000090 adrp x16, 4.0000 <.*> ++.*: f9...... ldr x17, \[x16, #.*\] + .*: 91...... add x16, x16, #0x... + .*: d61f0220 br x17 + .*: d503201f nop +diff -rup binutils.orig/ld/testsuite/ld-aarch64/erratum843419-far-full.d binutils-2.41/ld/testsuite/ld-aarch64/erratum843419-far-full.d +--- binutils.orig/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2023-08-15 09:03:21.683463694 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2023-08-15 09:05:41.549608111 +0100 +@@ -8,7 +8,7 @@ Disassembly of section \.text: + + 0*400000 <_start>: + ... +- 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+0x7ffedff0> ++ 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+0x[0-9a-f]+> + 401000: f9000042 str x2, \[x2\] + 401004: d2800002 mov x2, #0x0 // #0 + 401008: 14000004 b 401018 +@@ -18,5 +18,5 @@ Disassembly of section \.text: + + 0*401018 : + 401018: f9402001 ldr x1, \[x0, #64\] +- 40101c: 17fffffc b 40100c <_start\+0x100c> ++ 40101c: 17fffffc b 40100c <_start\+0x[0-9a-f]+> + ... +diff -rup binutils.orig/ld/testsuite/ld-aarch64/farcall-b-plt.d binutils-2.41/ld/testsuite/ld-aarch64/farcall-b-plt.d +--- binutils.orig/ld/testsuite/ld-aarch64/farcall-b-plt.d 2023-08-15 09:03:21.683463694 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/farcall-b-plt.d 2023-08-15 09:07:02.046699709 +0100 +@@ -10,7 +10,7 @@ Disassembly of section .plt: + + .* <.plt>: + .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! +-.*: .* adrp x16, .* <__foo_veneer\+.*> ++.*: .* adrp x16, .* <.*> + .*: .* ldr [wx]17, \[x16, #.*\] + .*: .* add [wx]16, [wx]16, #.* + .*: d61f0220 br x17 +@@ -19,7 +19,7 @@ Disassembly of section .plt: + .*: d503201f nop + + .* : +-.*: .* adrp x16, .* <__foo_veneer\+.*> ++.*: .* adrp x16, .* <.*> + .*: .* ldr [wx]17, \[x16, #.*\] + .*: .* add [wx]16, [wx]16, #.* + .*: d61f0220 br x17 +@@ -35,7 +35,7 @@ Disassembly of section .text: + .*: .* nop + + .* <__foo_veneer>: +-.*: .* adrp x16, 0 <.*> ++.*: .* adrp x16, [0-9a-f]+ <.*> + .*: .* add x16, x16, #.* + .*: d61f0200 br x16 + ... +diff -rup binutils.orig/ld/testsuite/ld-aarch64/farcall-bl-plt.d binutils-2.41/ld/testsuite/ld-aarch64/farcall-bl-plt.d +--- binutils.orig/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2023-08-15 09:03:21.684463695 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2023-08-15 09:07:53.198757913 +0100 +@@ -10,7 +10,7 @@ Disassembly of section .plt: + + .* <.plt>: + .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! +-.*: .* adrp x16, .* <__foo_veneer\+.*> ++.*: .* adrp x16, .* <.*> + .*: .* ldr [wx]17, \[x16, #.*\] + .*: .* add [wx]16, [wx]16, #.* + .*: d61f0220 br x17 +@@ -19,7 +19,7 @@ Disassembly of section .plt: + .*: d503201f nop + + .* : +-.*: .* adrp x16, .* <__foo_veneer\+.*> ++.*: .* adrp x16, .* <.*> + .*: .* ldr [wx]17, \[x16, #.*\] + .*: .* add [wx]16, [wx]16, #.* + .*: d61f0220 br x17 +@@ -35,7 +35,7 @@ Disassembly of section .text: + .*: .* nop + + .* <__foo_veneer>: +-.*: .* adrp x16, 0 <.*> ++.*: .* adrp x16, [0-9a-f]+ <.*> + .*: .* add x16, x16, #.* + .*: d61f0200 br x16 + ... +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1-local.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-1-local.d 2023-08-15 09:03:21.685463696 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1-local.d 2023-08-15 09:08:50.622823248 +0100 +@@ -3,7 +3,3 @@ + #objdump: -dw + +-#... +-0+(110|180|1a0) <(__GI_)?foo>: +-#... +-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0)@plt> + #pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-1.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-1.d 2023-08-15 09:03:21.685463696 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-1.d 2023-08-15 09:08:18.190786345 +0100 +@@ -3,7 +3,3 @@ + #objdump: -dw + +-#... +-0+(130|1a0|1c8) : +-#... +-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt> + #pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2-local.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-08-15 09:03:21.685463696 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-08-15 09:09:27.982865763 +0100 +@@ -3,8 +3,6 @@ + #objdump: -dw + + #... +-0+(110|180|1a0) <__GI_foo>: +-#... + [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0)@plt> + [ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*> + [ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190) +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-2.d 2023-08-15 09:03:21.686463697 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2.d 2023-08-15 09:09:14.350850251 +0100 +@@ -3,8 +3,6 @@ + #objdump: -dw + + #... +-0+(130|1a0|1c8) : +-#... + [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt> + [ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*> + [ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8) +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-21.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-21.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-21.d 2023-08-15 09:03:21.686463697 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-21.d 2023-08-15 09:13:27.007155679 +0100 +@@ -11,7 +11,7 @@ Contents of section .text: + [0-9a-f]+ .* + Contents of section .got.plt: + [0-9a-f]+ 0+ 0+ 0+ 0+ .* +- (10298|102b8) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .* ++ (10298|102b8|20108) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .* + + Disassembly of section .text: + +@@ -19,8 +19,8 @@ Disassembly of section .text: + .*: d65f03c0 ret + + .* : +- .*: 90000080 adrp x0, 10000 <.*> +- .*: .* ldr x0, \[x0, #(672|704)\] ++ .*: 90000080 adrp x0, .0000 <.*> ++ .*: .* ldr x0, \[x0, #(672|704|272)\] + .*: d65f03c0 ret + + #pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-22.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-22.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-22.d 2023-08-15 09:03:21.686463697 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-22.d 2023-08-15 09:14:02.191199743 +0100 +@@ -8,4 +8,4 @@ + .*: file format elf64-(little|big)aarch64 + + Contents of section \.got: +- [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .* ++#pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-3a.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-08-15 09:03:21.686463697 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-08-15 09:09:42.174882286 +0100 +@@ -4,7 +4,5 @@ + #objdump: -dw + + #... +-0+(150|1d0|1e8) <__GI_foo>: +-#... + [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8)@plt> + #pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-7c.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-7c.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-7c.d 2023-08-15 09:03:21.686463697 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-7c.d 2023-08-15 09:11:37.716022782 +0100 +@@ -11,9 +11,9 @@ + Disassembly of section \.text: + + [0-9a-f]+ : +- [0-9a-f]+: d65f03c0 ret ++[ ]+[0-9a-f]+:[ ]+d65f03c0[ ]+ret + + [0-9a-f]+ <__start>: +- [0-9a-f]+: [0-9a-f]+ bl [0-9a-f]+ <\*ABS\*\+0x[0-9a-f]+@plt> +- [0-9a-f]+: [0-9a-f]+ adrp x0, [0-9]+ <__start\+0x[0-9a-f]+> +- [0-9a-f]+: [0-9a-f]+ ldr x0, \[x0, .+\] ++[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+bl[ ]+[0-9a-f]+ <\*ABS\*\+0x[0-9a-f]+@plt> ++[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+adrp[ ]+x0, [0-9]+ <.*> ++[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+ldr[ ]+x0, \[x0, .+\] +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2-local.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-08-15 11:17:45.947214180 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-08-15 11:18:17.319251036 +0100 +@@ -2,8 +2,4 @@ + #ld: -shared --hash-style=sysv + #objdump: -dw + +-#... +-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0)@plt> +-[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*> +-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190) + #pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-2.d 2023-08-15 11:17:45.947214180 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-2.d 2023-08-15 11:18:02.935234133 +0100 +@@ -2,8 +2,4 @@ + #ld: -shared --hash-style=sysv + #objdump: -dw + +-#... +-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt> +-[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*> +-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8) + #pass +diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.41/ld/testsuite/ld-aarch64/ifunc-3a.d +--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-08-15 11:17:45.947214180 +0100 ++++ binutils-2.41/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-08-15 11:18:37.703274987 +0100 +@@ -3,6 +3,4 @@ + #ld: -shared --hash-style=sysv + #objdump: -dw + +-#... +-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8)@plt> + #pass +--- binutils.orig/ld/testsuite/ld-elf/binutils.exp 2023-08-15 14:30:13.138890662 +0100 ++++ binutils-2.41/ld/testsuite/ld-elf/binutils.exp 2023-08-15 14:33:16.133301230 +0100 +@@ -174,7 +174,7 @@ binutils_test strip "-T ${srcdir}/${subd + + set tls_tests { "tdata1" "tdata2" } + # hppa64 has its own .tbss section, with different flags. +-if { ![istarget "hppa64-*-*"] } { ++if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-*"] } { + lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3" + } + set tls_opts { +diff -rup binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp +--- binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp 2023-08-15 14:30:13.277890866 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp 2023-08-15 14:41:18.582395219 +0100 @@ -126,65 +126,6 @@ set ppcelftests { "tls32no"} {"TLS32 helper shared library" "-shared -melf32ppc tmpdir/tlslib32.o" "" "" {} @@ -660,18 +730,9 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp bi } if [istarget "powerpc*le*-*-*"] then { -@@ -439,6 +177,8 @@ if [istarget "powerpc*le*-*-*"] then { - - run_ld_link_tests $ppcelftests - -+return -+ - if [ supports_ppc64 ] then { - run_ld_link_tests $ppc64elftests - run_dump_test "relbrlt" -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32.d binutils-2.41-new/ld/testsuite/ld-powerpc/tls32.d ---- binutils-2.41/ld/testsuite/ld-powerpc/tls32.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/tls32.d 2023-10-17 08:36:17.902116776 +0200 +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32.d binutils-2.41/ld/testsuite/ld-powerpc/tls32.d +--- binutils.orig/ld/testsuite/ld-powerpc/tls32.d 2023-08-15 14:30:13.278890868 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/tls32.d 2023-08-15 14:35:25.141593764 +0100 @@ -9,11 +9,11 @@ Disassembly of section \.text: @@ -693,18 +754,169 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32.d binuti -0+1800120 <__tls_get_addr>: +0+18[0-9a-f]+ <__tls_get_addr>: .*: (4e 80 00 20|20 00 80 4e) blr -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32.g binutils-2.41-new/ld/testsuite/ld-powerpc/tls32.g ---- binutils-2.41/ld/testsuite/ld-powerpc/tls32.g 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/tls32.g 2023-10-17 08:36:17.905116936 +0200 +--- binutils.orig/ld/testsuite/ld-elf/shared.exp 2023-08-15 14:30:13.165890702 +0100 ++++ binutils-2.41/ld/testsuite/ld-elf/shared.exp 2023-08-15 14:45:41.943992390 +0100 +@@ -1152,10 +1152,6 @@ set run_tests [list \ + [list "Run pr21964-3" \ + "-Wl,--no-as-needed,-rpath,tmpdir tmpdir/pr21964-1a.so tmpdir/pr21964-1b.so tmpdir/pr21964-3a.so" "" \ + {pr21964-3c.c} "pr21964-3" "pass.out" ] \ +- [list "pr26580-3" \ +- "" "" \ +- {pr26580-a.c} "pr26580-3" "pr26580-3.out" "-fcommon" "c" "" \ +- "-Wl,--as-needed tmpdir/libpr26580-2.so" ] \ + [list "pr26580-4" \ + "" "" \ + {pr26580-a.c} "pr26580-4" "pr26580-4.out" "-fcommon" "c" "" \ +@@ -1579,18 +1575,6 @@ if { [istarget *-*-linux*] + "pr22393-2-static" \ + "pass.out" \ + ] \ +- [list \ +- "Run pr21964-4" \ +- "" \ +- "" \ +- {pr21964-4.c} \ +- "pr21964-4" \ +- "pass.out" \ +- "" \ +- "" \ +- "" \ +- "-ldl" \ +- ] \ + ] + } + +--- binutils.orig/ld/testsuite/ld-s390/s390.exp 2023-08-15 14:30:13.292890888 +0100 ++++ binutils-2.41/ld/testsuite/ld-s390/s390.exp 2023-08-15 14:48:38.327360916 +0100 +@@ -35,6 +35,8 @@ if { !([istarget "s390-*-*"] || [istarge + # nm: Apply nm options on result. Compare with regex (last arg). + # readelf: Apply readelf options on result. Compare with regex (last arg). + ++return ++ + set s390tests { + {"TLS -fpic -shared transitions" "-shared -melf_s390 --hash-style=sysv" "" + "-m31" {tlspic1.s tlspic2.s} +--- binutils.orig/ld/testsuite/ld-elf/linux-x86.exp 2023-08-15 14:30:13.146890674 +0100 ++++ binutils-2.41/ld/testsuite/ld-elf/linux-x86.exp 2023-08-15 14:54:31.527999066 +0100 +@@ -152,6 +152,10 @@ run_cc_link_tests [list \ + ] \ + ] + ++if { [istarget "i686-*-*"] } { ++ return ++} ++ + run_ld_link_exec_tests [list \ + [list \ + "Run indirect-extern-access-1a without PIE" \ +--- binutils.orig/ld/testsuite/ld-i386/i386.exp 2023-08-15 14:30:13.183890728 +0100 ++++ binutils-2.41/ld/testsuite/ld-i386/i386.exp 2023-08-15 14:55:59.001157084 +0100 +@@ -597,6 +597,10 @@ proc undefined_weak {cflags ldflags} { + } + } + ++if { [istarget "i686-*-*"] } { ++ return ++} ++ + # Must be Linux native with the C compiler + if { [isnative] + && [istarget "i?86-*-linux*"] +--- binutils.orig/ld/testsuite/ld-scripts/crossref.exp 2023-08-15 14:30:13.294890891 +0100 ++++ binutils-2.41/ld/testsuite/ld-scripts/crossref.exp 2023-08-15 14:59:36.680591177 +0100 +@@ -121,6 +121,10 @@ if [string match "" $exec_output] then { + } + } + ++if { [istarget "i686-*-*"] } { ++ return ++} ++ + # Check cross references for ld -r + + if { ![ld_compile "$CC_FOR_TARGET $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" "$srcdir/$subdir/cross4.c" tmpdir/cross4.o] } { +--- binutils.orig/ld/testsuite/ld-shared/shared.exp 2023-08-15 14:30:13.309890913 +0100 ++++ binutils-2.41/ld/testsuite/ld-shared/shared.exp 2023-08-15 15:00:31.929701875 +0100 +@@ -204,6 +204,10 @@ if { [istarget mips*-*-*] && ! [at_least + } + verbose "Using $picflag to compile PIC code" + ++if { [istarget "i686-*-*"] } { ++ return ++} ++ + # Compile the main program. + if ![ld_compile "$CC_FOR_TARGET $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o] { + unsupported "shared (non PIC)" +--- binutils.orig/ld/testsuite/ld-srec/srec.exp 2023-08-15 14:30:13.315890922 +0100 ++++ binutils-2.41/ld/testsuite/ld-srec/srec.exp 2023-08-15 15:01:24.104806404 +0100 +@@ -442,6 +442,9 @@ setup_xfail "csky*-*-*" + # The S-record linker is not supported for eBPF. + setup_xfail "bpf-*-*" + ++setup_xfail "s390*-*-*" ++setup_xfail "i686-*-*" ++ + run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o" + + # Now try linking a C++ program with global constructors and +--- binutils.orig/ld/testsuite/ld-vsb/vsb.exp 2023-08-15 14:30:13.329890943 +0100 ++++ binutils-2.41/ld/testsuite/ld-vsb/vsb.exp 2023-08-15 15:03:41.018080699 +0100 +@@ -29,6 +29,10 @@ if { ![check_compiler_available] } { + return + } + ++if { [istarget "i686-*-*"] } { ++ return ++} ++ + # This test can only be run on a couple of ELF platforms or with + # XCOFF formats. + # Square bracket expressions seem to confuse istarget. +diff -rup binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp +--- binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp 2023-08-15 15:04:24.106167010 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/powerpc.exp 2023-08-15 15:59:51.422385730 +0100 +@@ -177,6 +177,8 @@ if [istarget "powerpc*le*-*-*"] then { + + run_ld_link_tests $ppcelftests + ++return ++ + if [ supports_ppc64 ] then { + run_ld_link_tests $ppc64elftests + run_dump_test "relbrlt" +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls.d binutils-2.41/ld/testsuite/ld-powerpc/tls.d +--- binutils.orig/ld/testsuite/ld-powerpc/tls.d 2023-08-15 15:04:24.100166998 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/tls.d 2023-08-15 15:59:07.422314417 +0100 +@@ -9,7 +9,7 @@ + + Disassembly of section \.text: + +-0+100000e8 <\._start>: ++0+100..... <\._start>: + .*: (60 00 00 00|00 00 00 60) nop + .*: (38 6d 90 78|78 90 6d 38) addi r3,r13,-28552 + .*: (60 00 00 00|00 00 00 60) nop +@@ -49,5 +49,5 @@ Disassembly of section \.text: + .*: (60 00 00 00|00 00 00 60) nop + .*: (a9 4d 90 30|30 90 4d a9) lha r10,-28624\(r13\) + +-0+10000180 <\.__tls_get_addr>: ++0+100..... <\.__tls_get_addr>: + .*: (4e 80 00 20|20 00 80 4e) blr +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32.g binutils-2.41/ld/testsuite/ld-powerpc/tls32.g +--- binutils.orig/ld/testsuite/ld-powerpc/tls32.g 2023-08-15 15:04:24.100166998 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/tls32.g 2023-08-15 15:56:33.167064455 +0100 @@ -8,4 +8,4 @@ .* Contents of section \.got: - 1810144 00000000 00000000 00000000 .* + 18..... 00000000 00000000 00000000 .* -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32no.d binutils-2.41-new/ld/testsuite/ld-powerpc/tls32no.d ---- binutils-2.41/ld/testsuite/ld-powerpc/tls32no.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/tls32no.d 2023-10-17 08:36:17.905116936 +0200 +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32no.d binutils-2.41/ld/testsuite/ld-powerpc/tls32no.d +--- binutils.orig/ld/testsuite/ld-powerpc/tls32no.d 2023-08-15 15:04:24.100166998 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/tls32no.d 2023-08-15 15:58:02.959209959 +0100 @@ -9,11 +9,11 @@ Disassembly of section \.text: @@ -726,20 +938,33 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32no.d binu -0+1800120 <__tls_get_addr>: +0+18..... <__tls_get_addr>: .*: (4e 80 00 20|20 00 80 4e) blr -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32no.g binutils-2.41-new/ld/testsuite/ld-powerpc/tls32no.g ---- binutils-2.41/ld/testsuite/ld-powerpc/tls32no.g 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/tls32no.g 2023-10-17 08:36:17.905116936 +0200 -@@ -8,6 +8,4 @@ - .* +--- binutils.orig/ld/testsuite/ld-elf/linux-x86.exp 2023-08-15 15:04:23.995166788 +0100 ++++ binutils-2.41/ld/testsuite/ld-elf/linux-x86.exp 2023-08-15 16:03:11.615710200 +0100 +@@ -73,6 +73,10 @@ run_ld_link_tests [list \ + ] \ + ] - Contents of section \.got: -- 1810144 (0+01 f+8000 0+01 f+803c|010+ 0080f+ 010+ 3c80f+) .* -- 1810154 (0+01 f+8020 f+9030 0+01|010+ 2080f+ 3090f+ 010+) .* -- 1810164 0+ 0+ 0+ 0+0 .* -+#pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32.t binutils-2.41-new/ld/testsuite/ld-powerpc/tls32.t ---- binutils-2.41/ld/testsuite/ld-powerpc/tls32.t 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/tls32.t 2023-10-17 08:36:17.905116936 +0200 ++if { [istarget "i686-*-*"] } { ++ return ++} ++ + run_cc_link_tests [list \ + [list \ + "Build indirect-extern-access-1.so" \ +@@ -152,10 +156,6 @@ run_cc_link_tests [list \ + ] \ + ] + +-if { [istarget "i686-*-*"] } { +- return +-} +- + run_ld_link_exec_tests [list \ + [list \ + "Run indirect-extern-access-1a without PIE" \ +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32.t binutils-2.41/ld/testsuite/ld-powerpc/tls32.t +--- binutils.orig/ld/testsuite/ld-powerpc/tls32.t 2023-08-15 16:48:58.540653339 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/tls32.t 2023-08-15 16:49:34.611717013 +0100 @@ -8,5 +8,5 @@ .* @@ -748,154 +973,66 @@ diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls32.t binuti - 1810134 (56789abc|bc9a7856) (6789abcd|cdab8967) (789abcde|debc9a78) (00c0ffee|eeffc000) .* +#pass + -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-powerpc/tls.d binutils-2.41-new/ld/testsuite/ld-powerpc/tls.d ---- binutils-2.41/ld/testsuite/ld-powerpc/tls.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-powerpc/tls.d 2023-10-17 08:36:17.904116883 +0200 -@@ -9,7 +9,7 @@ +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32no.g binutils-2.41/ld/testsuite/ld-powerpc/tls32no.g +--- binutils.orig/ld/testsuite/ld-powerpc/tls32no.g 2023-08-15 17:41:46.719412912 +0100 ++++ binutils-2.41/ld/testsuite/ld-powerpc/tls32no.g 2023-08-15 17:42:37.097511729 +0100 +@@ -8,6 +8,4 @@ + .* - Disassembly of section \.text: - --0+100000e8 <\._start>: -+0+100..... <\._start>: + Contents of section \.got: +- 1810144 (0+01 f+8000 0+01 f+803c|010+ 0080f+ 010+ 3c80f+) .* +- 1810154 (0+01 f+8020 f+9030 0+01|010+ 2080f+ 3090f+ 010+) .* +- 1810164 0+ 0+ 0+ 0+0 .* ++#pass +diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.42.50/ld/testsuite/ld-plugin/lto.exp +--- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2024-04-02 16:57:57.645534485 +0100 ++++ binutils-2.42.50/ld/testsuite/ld-plugin/lto.exp 2024-04-02 17:03:44.467994669 +0100 +@@ -617,9 +617,6 @@ set lto_run_tests [list \ + [list "LTO 14" \ + "-O2 -flto -fuse-linker-plugin tmpdir/lto-14a.o -Wl,--whole-archive tmpdir/liblto-14.a -Wl,--no-whole-archive tmpdir/lto-14b.o" "" \ + {dummy.c} "lto-14.exe" "lto-14.out" "" "c"] \ +- [list "LTO 15" \ +- "-O2 -flto -fuse-linker-plugin -Wl,--start-group tmpdir/liblto-15.a tmpdir/lto-15a.o -Wl,--end-group" "" \ +- {dummy.c} "lto-15.exe" "lto-15.out" "" "c"] \ + [list "PR ld/13066" \ + "-O2 -flto -fuse-linker-plugin" "" \ + {pr13066.cc} "pr13066.exe" "pr13066.out" "" "c++"] \ +--- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2024-04-15 10:14:55.231310539 +0100 ++++ binutils-2.42.50/ld/testsuite/ld-plugin/lto.exp 2024-04-15 10:17:20.777735046 +0100 +@@ -645,12 +645,6 @@ set lto_run_tests [list \ + [list "LTO 11" \ + "-O -flto -fuse-linker-plugin tmpdir/liblto-11.a" "" \ + {dummy.c} "lto-11.exe" "lto-11.out" "" "c"] \ +- [list "LTO 12a" \ +- "-O -flto -fuse-linker-plugin tmpdir/lto-12a.o tmpdir/liblto-12.a tmpdir/lto-12b.o" "" \ +- {dummy.c} "lto-12a.exe" "lto-12.out" "" "c"] \ +- [list "LTO 12b" \ +- "-O -flto -fuse-linker-plugin tmpdir/lto-12a.o tmpdir/lto-12b.o tmpdir/liblto-12.a" "" \ +- {dummy.c} "lto-12b.exe" "lto-12.out" "" "c"] \ + [list "LTO 13" \ + "-O -flto -fuse-linker-plugin tmpdir/lto-13a.o tmpdir/liblto-13.a tmpdir/lto-13b.o" "" \ + {dummy.c} "lto-13.exe" "lto-13.out" "" "c"] \ +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32.d binutils-2.42.50-6b19a26ee12/ld/testsuite/ld-powerpc/tls32.d +--- binutils.orig/ld/testsuite/ld-powerpc/tls32.d 2024-06-14 15:00:11.382013143 +0100 ++++ binutils-2.42.50-6b19a26ee12/ld/testsuite/ld-powerpc/tls32.d 2024-06-14 15:09:06.405840085 +0100 +@@ -12,7 +12,7 @@ Disassembly of section \.text: + 0+18[0-9a-f]+ <_start>: + .*: (42 9f 00 05|05 00 9f 42) bcl 20,4\*cr7\+so,.* <_start\+0x4> + .*: (7f c8 02 a6|a6 02 c8 7f) mflr r30 +-.*: (3f de 00 02|02 00 de 3f) addis r30,r30,2 ++.*: (3f de 00 0.|0. 00 de 3f) addis r30,r30,. + .*: (3b de 80 a0|.. 80 de 3b) addi r30,r30,.* .*: (60 00 00 00|00 00 00 60) nop - .*: (38 6d 90 78|78 90 6d 38) addi r3,r13,-28552 - .*: (60 00 00 00|00 00 00 60) nop -@@ -49,5 +49,5 @@ Disassembly of section \.text: - .*: (60 00 00 00|00 00 00 60) nop - .*: (a9 4d 90 30|30 90 4d a9) lha r10,-28624\(r13\) - --0+10000180 <\.__tls_get_addr>: -+0+100..... <\.__tls_get_addr>: - .*: (4e 80 00 20|20 00 80 4e) blr -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-s390/s390.exp binutils-2.41-new/ld/testsuite/ld-s390/s390.exp ---- binutils-2.41/ld/testsuite/ld-s390/s390.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-s390/s390.exp 2023-10-17 08:36:17.903116830 +0200 -@@ -35,6 +35,8 @@ if { !([istarget "s390-*-*"] || [istarge - # nm: Apply nm options on result. Compare with regex (last arg). - # readelf: Apply readelf options on result. Compare with regex (last arg). - -+return -+ - set s390tests { - {"TLS -fpic -shared transitions" "-shared -melf_s390 --hash-style=sysv" "" - "-m31" {tlspic1.s tlspic2.s} -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-scripts/crossref.exp binutils-2.41-new/ld/testsuite/ld-scripts/crossref.exp ---- binutils-2.41/ld/testsuite/ld-scripts/crossref.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-scripts/crossref.exp 2023-10-17 08:36:17.903116830 +0200 -@@ -121,6 +121,10 @@ if [string match "" $exec_output] then { - } - } - -+if { [istarget "i686-*-*"] } { -+ return -+} -+ - # Check cross references for ld -r - - if { ![ld_compile "$CC_FOR_TARGET $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" "$srcdir/$subdir/cross4.c" tmpdir/cross4.o] } { -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-scripts/ld-version-2.d binutils-2.41-new/ld/testsuite/ld-scripts/ld-version-2.d ---- binutils-2.41/ld/testsuite/ld-scripts/ld-version-2.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-scripts/ld-version-2.d 2023-10-17 08:36:17.897116510 +0200 -@@ -4,4 +4,4 @@ - # target: [is_elf_format] - - String dump of section '.comment': --.*GNU ld \(.*\) 2.* -+.*GNU ld .* 2.* -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-scripts/ld-version.d binutils-2.41-new/ld/testsuite/ld-scripts/ld-version.d ---- binutils-2.41/ld/testsuite/ld-scripts/ld-version.d 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-scripts/ld-version.d 2023-10-17 08:36:17.897116510 +0200 -@@ -4,4 +4,4 @@ - # target: [is_elf_format] - - String dump of section '.comment': --.*GNU ld \(.*\) 2.* -+.*GNU ld .* 2.* -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-shared/shared.exp binutils-2.41-new/ld/testsuite/ld-shared/shared.exp ---- binutils-2.41/ld/testsuite/ld-shared/shared.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-shared/shared.exp 2023-10-17 08:36:17.904116883 +0200 -@@ -204,6 +204,10 @@ if { [istarget mips*-*-*] && ! [at_least - } - verbose "Using $picflag to compile PIC code" - -+if { [istarget "i686-*-*"] } { -+ return -+} -+ - # Compile the main program. - if ![ld_compile "$CC_FOR_TARGET $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o] { - unsupported "shared (non PIC)" -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-srec/srec.exp binutils-2.41-new/ld/testsuite/ld-srec/srec.exp ---- binutils-2.41/ld/testsuite/ld-srec/srec.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-srec/srec.exp 2023-10-17 08:36:17.904116883 +0200 -@@ -442,6 +442,9 @@ setup_xfail "csky*-*-*" - # The S-record linker is not supported for eBPF. - setup_xfail "bpf-*-*" - -+setup_xfail "s390*-*-*" -+setup_xfail "i686-*-*" -+ - run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o" - - # Now try linking a C++ program with global constructors and -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-vsb/vsb.exp binutils-2.41-new/ld/testsuite/ld-vsb/vsb.exp ---- binutils-2.41/ld/testsuite/ld-vsb/vsb.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-vsb/vsb.exp 2023-10-17 08:36:17.904116883 +0200 -@@ -29,6 +29,10 @@ if { ![check_compiler_available] } { - return - } - -+if { [istarget "i686-*-*"] } { -+ return -+} -+ - # This test can only be run on a couple of ELF platforms or with - # XCOFF formats. - # Square bracket expressions seem to confuse istarget. -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/plt-main-ibt.dd binutils-2.41-new/ld/testsuite/ld-x86-64/plt-main-ibt.dd ---- binutils-2.41/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2023-10-17 08:36:17.898116563 +0200 -@@ -1,7 +1,3 @@ - #... --Disassembly of section .plt.got: - --[a-f0-9]+ <[_a-z]+@plt>: --[ ]*[a-f0-9]+: f3 0f 1e fa endbr64 --[ ]*[a-f0-9]+: ff 25 .. .. 3f 00 jmp +\*0x3f....\(%rip\) # ...... <.*> - #pass -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/pr22001-1b.err binutils-2.41-new/ld/testsuite/ld-x86-64/pr22001-1b.err ---- binutils-2.41/ld/testsuite/ld-x86-64/pr22001-1b.err 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/pr22001-1b.err 2023-10-17 08:36:17.897116510 +0200 -@@ -1,2 +1,2 @@ --.*relocation R_X86_64_32S against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE -+.*relocation R_X86_64_.* against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE - #... -diff -rupN --no-dereference binutils-2.41/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.41-new/ld/testsuite/ld-x86-64/x86-64.exp ---- binutils-2.41/ld/testsuite/ld-x86-64/x86-64.exp 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/ld/testsuite/ld-x86-64/x86-64.exp 2023-10-17 08:36:17.898116563 +0200 -@@ -1386,7 +1386,7 @@ if { [isnative] && [check_compiler_avail - "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-2b.so" \ - "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ - { protected-func-1b.c } \ -- {{error_output "pr28875-func.err"}} \ -+ {} \ - "protected-func-2" \ - ] \ - [list \ -@@ -1402,7 +1402,7 @@ if { [isnative] && [check_compiler_avail - "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-2c.so" \ - "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ - { protected-func-1b.c } \ -- {{error_output "pr28875-func.err"}} \ -+ {} \ - "protected-func-2a" \ - ] \ - [list \ -@@ -2155,7 +2155,6 @@ if { [isnative] && [check_compiler_avail - } - } - -- undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" - undefined_weak "-fPIE" "" - undefined_weak "-fPIE" "-pie" - undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak" + .*: (38 62 90 3c|3c 90 62 38) addi r3,r2,-28612 +diff -rup binutils.orig/ld/testsuite/ld-powerpc/tls32no.d binutils-2.42.50-6b19a26ee12/ld/testsuite/ld-powerpc/tls32no.d +--- binutils.orig/ld/testsuite/ld-powerpc/tls32no.d 2024-06-14 15:00:11.382013143 +0100 ++++ binutils-2.42.50-6b19a26ee12/ld/testsuite/ld-powerpc/tls32no.d 2024-06-14 15:08:54.270817909 +0100 +@@ -12,7 +12,7 @@ Disassembly of section \.text: + 0+18..... <_start>: + .*: (42 9f 00 05|05 00 9f 42) bcl .* + .*: (7f c8 02 a6|a6 02 c8 7f) mflr r30 +-.*: (3f de 00 02|02 00 de 3f) addis r30,r30,2 ++.*: (3f de 00 0.|0. 00 de 3f) addis r30,r30,. + .*: (3b de 80 a0|.. 80 de 3b) addi r30,r30,-[0-9]+ + .*: (38 7f ff e4|e4 ff 7f 38) addi r3,r31,-28 + .*: (48 00 00 6d|6d 00 00 48) bl .* diff --git a/SOURCES/binutils-version.patch b/SOURCES/binutils-version.patch index eec61e3..2552ee3 100644 --- a/SOURCES/binutils-version.patch +++ b/SOURCES/binutils-version.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.41/bfd/Makefile.am binutils-2.41-new/bfd/Makefile.am ---- binutils-2.41/bfd/Makefile.am 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/Makefile.am 2023-10-17 08:36:02.532285680 +0200 -@@ -966,8 +966,8 @@ DISTCLEANFILES += $(BUILD_CFILES) $(BUIL +diff -rup binutils.orig/bfd/Makefile.am binutils-2.38/bfd/Makefile.am +--- binutils.orig/bfd/Makefile.am 2022-02-09 14:10:42.659300681 +0000 ++++ binutils-2.38/bfd/Makefile.am 2022-02-09 14:12:40.562532916 +0000 +@@ -977,8 +977,8 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in $(AM_V_GEN)\ bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\ @@ -12,7 +12,7 @@ diff -rupN --no-dereference binutils-2.41/bfd/Makefile.am binutils-2.41-new/bfd/ bfd_version_package="\"$(PKGVERSION)\"" ;\ report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ . $(srcdir)/development.sh ;\ -@@ -978,7 +978,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ +@@ -989,7 +989,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ fi ;\ $(SED) -e "s,@bfd_version@,$$bfd_version," \ -e "s,@bfd_version_string@,$$bfd_version_string," \ @@ -21,10 +21,10 @@ diff -rupN --no-dereference binutils-2.41/bfd/Makefile.am binutils-2.41-new/bfd/ -e "s,@report_bugs_to@,$$report_bugs_to," \ < $(srcdir)/version.h > $@; \ echo "$${bfd_soversion}" > libtool-soversion -diff -rupN --no-dereference binutils-2.41/bfd/Makefile.in binutils-2.41-new/bfd/Makefile.in ---- binutils-2.41/bfd/Makefile.in 2023-07-03 01:00:00.000000000 +0200 -+++ binutils-2.41-new/bfd/Makefile.in 2023-10-17 08:36:02.533285735 +0200 -@@ -2425,8 +2425,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC +diff -rup binutils.orig/bfd/Makefile.in binutils-2.38/bfd/Makefile.in +--- binutils.orig/bfd/Makefile.in 2022-02-09 14:10:42.653300720 +0000 ++++ binutils-2.38/bfd/Makefile.in 2022-02-09 14:19:03.362040188 +0000 +@@ -2094,8 +2094,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in $(AM_V_GEN)\ bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\ @@ -35,7 +35,7 @@ diff -rupN --no-dereference binutils-2.41/bfd/Makefile.in binutils-2.41-new/bfd/ bfd_version_package="\"$(PKGVERSION)\"" ;\ report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ . $(srcdir)/development.sh ;\ -@@ -2437,7 +2437,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ +@@ -2106,7 +2106,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ fi ;\ $(SED) -e "s,@bfd_version@,$$bfd_version," \ -e "s,@bfd_version_string@,$$bfd_version_string," \ diff --git a/SPECS/mingw-binutils.spec b/SPECS/mingw-binutils.spec index cb2b841..0386508 100644 --- a/SPECS/mingw-binutils.spec +++ b/SPECS/mingw-binutils.spec @@ -3,11 +3,11 @@ %define enable_new_dtags 0 Name: mingw-binutils -Version: 2.41 -Release: 3%{?dist} +Version: 2.43.1 +Release: 2%{?dist} Summary: Cross-compiled version of binutils for Win32 and Win64 environments -License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later LGPL-2.1-or-later AND LGPL-2.0-or-later +License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later URL: http://www.gnu.org/software/binutils/ Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz @@ -63,12 +63,12 @@ Patch06: binutils-2.27-aarch64-ifunc.patch Patch07: binutils-do-not-link-with-static-libstdc++.patch # Purpose: Allow OS specific sections in section groups. -# Lifetime: Fixed in 2.42 (maybe) -Patch08: binutils-special-sections-in-groups.patch +# Lifetime: Fixed in 2.43 (maybe) +# Patch08: binutils-special-sections-in-groups.patch # Purpose: Stop gold from aborting when input sections with the same name # have different flags. -# Lifetime: Fixed in 2.42 (maybe) +# Lifetime: Fixed in 2.43 (maybe) Patch09: binutils-gold-mismatched-section-flags.patch # Purpose: Change the gold configuration script to only warn about @@ -84,21 +84,15 @@ Patch11: binutils-gold-i386-gnu-property-notes.patch # Purpose: Allow the binutils to be configured with any (recent) version of # autoconf. -# Lifetime: Fixed in 2.42 (maybe ?) +# Lifetime: Fixed in 2.44 (maybe ?) Patch12: binutils-autoconf-version.patch # Purpose: Stop libtool from inserting useless runpaths into binaries. # Lifetime: Who knows. Patch13: binutils-libtool-no-rpath.patch -%if %{enable_new_dtags} -# Purpose: Change ld man page so that it says that --enable-new-dtags is the default. -# Lifetime: Permanent -Patch14: binutils-update-linker-manual.patch -%endif - # Purpose: Stop an abort when using dwp to process a file with no dwo links. -# Lifetime: Fixed in 2.42 (maybe) +# Lifetime: Fixed in 2.44 (maybe) Patch15: binutils-gold-empty-dwp.patch # Purpose: Fix binutils testsuite failures. @@ -109,14 +103,21 @@ Patch16: binutils-testsuite-fixes.patch # Lifetime: Permanent, but varies with each rebase. Patch17: binutils-riscv-testsuite-fixes.patch -# Purpose: Fix the GOLD linker's handling of 32-bit PowerPC binaries. -# Lifetime: Fixed in 2.42 -Patch18: binutils-gold-powerpc.patch +# Purpose: Make the GOLD linker ignore the "-z pack-relative-relocs" command line option. +# Lifetime: Fixed in 2.44 (maybe) +Patch18: binutils-gold-pack-relative-relocs.patch -# Purpose: Fix a potential NULL pointer dereference when parsing corrupt -# ELF symbol version information. -# Lifetime: Fixed in 2.42 -Patch19: binutils-handle-corrupt-version-info.patch +# Purpose: Let the gold lihnker ignore --error-execstack and --error-rwx-segments. +# Lifetime: Fixed in 2.44 (maybe) +Patch19: binutils-gold-ignore-execstack-error.patch + +# Purpose: Fix the ar test of non-deterministic archives. +# Lifetime: Fixed in 2.44 +Patch20: binutils-fix-ar-test.patch + +# Purpose: Suppress the x86 linker's p_align-1 tests due to kernel bug on CentOS-10 +# Lifetime: TEMPORARY +Patch99: binutils-suppress-ld-align-tests.patch BuildRequires: make @@ -125,9 +126,9 @@ BuildRequires: flex BuildRequires: bison BuildRequires: texinfo BuildRequires: zlib-devel -BuildRequires: mingw32-filesystem >= 133 -BuildRequires: mingw64-filesystem >= 133 -BuildRequires: ucrt64-filesystem >= 133 +BuildRequires: mingw32-filesystem +BuildRequires: mingw64-filesystem +BuildRequires: ucrt64-filesystem %if %{run_testsuite} BuildRequires: dejagnu BuildRequires: sharutils @@ -450,6 +451,18 @@ rm -rf %{buildroot}%{_mandir}/man1/* %changelog +* Wed Oct 02 2024 Davide Cavalca - 2.43.1-2 +- Fix invalid SPDX expression in license tag + +* Tue Aug 20 2024 Sandro Mani - 2.43.1-1 +- Update to 2.43.1 + +* Thu Jul 18 2024 Fedora Release Engineering - 2.42-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Feb 18 2024 Sandro Mani - 2.42-1 +- Update to 2.42 + * Thu Jan 25 2024 Fedora Release Engineering - 2.41-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild