From 9cec58d3e38cecc2aac53d91c98ccafd33927149 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 8 Nov 2023 15:57:24 +0300 Subject: [PATCH] import mingw-binutils-2.40-3.el9 --- .gitignore | 2 +- .mingw-binutils.metadata | 2 +- SOURCES/CVE-2022-38533.patch | 19 - SOURCES/CVE-2023-1972.patch | 22 + SOURCES/binutils-2.27-aarch64-ifunc.patch | 11 + SOURCES/binutils-autoconf-version.patch | 6 +- ...ls-do-not-link-with-static-libstdc++.patch | 18 +- SOURCES/binutils-export-demangle.h.patch | 16 +- ...nutils-filename-in-readelf-messages.patch} | 12 +- SOURCES/binutils-fix-testsuite-failures.patch | 156 +- ...utils-gas-dwarf-skip-empty-functions.patch | 67 - ...b2a9d4f4e92692daf14b09fc95ca11b72e30.patch | 13 + ...inutils-gold-i386-gnu-property-notes.patch | 6 +- ...nutils-gold-mismatched-section-flags.patch | 10 +- SOURCES/binutils-gold-warn-unsupported.patch | 34 +- SOURCES/binutils-libtool-no-rpath.patch | 6 +- SOURCES/binutils-no-config-h-check.patch | 12 +- .../binutils-objcopy-note-merge-speedup.patch | 45 + SOURCES/binutils-package-metadata.patch | 197 -- SOURCES/binutils-readelf-other-sym-info.patch | 10 +- SOURCES/binutils-revert-PLT-elision.patch | 160 +- .../binutils-special-sections-in-groups.patch | 10 +- SOURCES/binutils-testsuite-fixes.patch | 1991 ++++++++--------- SOURCES/binutils-version.patch | 20 +- SPECS/mingw-binutils.spec | 80 +- 25 files changed, 1266 insertions(+), 1659 deletions(-) delete mode 100644 SOURCES/CVE-2022-38533.patch create mode 100644 SOURCES/CVE-2023-1972.patch create mode 100644 SOURCES/binutils-2.27-aarch64-ifunc.patch rename SOURCES/{binutils-filename-in-error-messages.patch => binutils-filename-in-readelf-messages.patch} (88%) delete mode 100644 SOURCES/binutils-gas-dwarf-skip-empty-functions.patch create mode 100644 SOURCES/binutils-gdb.git-b7eab2a9d4f4e92692daf14b09fc95ca11b72e30.patch create mode 100644 SOURCES/binutils-objcopy-note-merge-speedup.patch delete mode 100644 SOURCES/binutils-package-metadata.patch diff --git a/.gitignore b/.gitignore index 1237d14..554f19f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/binutils-2.39.tar.xz +SOURCES/binutils-2.40.tar.xz diff --git a/.mingw-binutils.metadata b/.mingw-binutils.metadata index c1e2fdd..df6593c 100644 --- a/.mingw-binutils.metadata +++ b/.mingw-binutils.metadata @@ -1 +1 @@ -f17653e7b1d1fa5242a408919845da23e8cc5141 SOURCES/binutils-2.39.tar.xz +fee4fbef9d632afc1988dd631d7f75d4394b7f8d SOURCES/binutils-2.40.tar.xz diff --git a/SOURCES/CVE-2022-38533.patch b/SOURCES/CVE-2022-38533.patch deleted file mode 100644 index 8262b4e..0000000 --- a/SOURCES/CVE-2022-38533.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -rupN --no-dereference binutils-2.39/bfd/coffcode.h binutils-2.39-new/bfd/coffcode.h ---- binutils-2.39/bfd/coffcode.h 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/bfd/coffcode.h 2022-10-30 12:41:41.408023817 +0100 -@@ -4284,10 +4284,13 @@ coff_set_section_contents (bfd * abfd, - - rec = (bfd_byte *) location; - recend = rec + count; -- while (rec < recend) -+ while (recend - rec >= 4) - { -+ size_t len = bfd_get_32 (abfd, rec); -+ if (len == 0 || len > (size_t) (recend - rec) / 4) -+ break; -+ rec += len * 4; - ++section->lma; -- rec += bfd_get_32 (abfd, rec) * 4; - } - - BFD_ASSERT (rec == recend); diff --git a/SOURCES/CVE-2023-1972.patch b/SOURCES/CVE-2023-1972.patch new file mode 100644 index 0000000..c214363 --- /dev/null +++ b/SOURCES/CVE-2023-1972.patch @@ -0,0 +1,22 @@ +diff -rupN --no-dereference binutils-2.40/bfd/elf.c binutils-2.40-new/bfd/elf.c +--- binutils-2.40/bfd/elf.c 2023-04-14 16:12:16.185323541 +0200 ++++ binutils-2.40-new/bfd/elf.c 2023-04-14 16:12:27.583371759 +0200 +@@ -9048,6 +9048,9 @@ _bfd_elf_slurp_version_tables (bfd *abfd + bfd_set_error (bfd_error_file_too_big); + goto error_return_verdef; + } ++ ++ if (amt == 0) ++ goto error_return_verdef; + elf_tdata (abfd)->verdef = (Elf_Internal_Verdef *) bfd_zalloc (abfd, amt); + if (elf_tdata (abfd)->verdef == NULL) + goto error_return_verdef; +@@ -9151,6 +9154,8 @@ _bfd_elf_slurp_version_tables (bfd *abfd + bfd_set_error (bfd_error_file_too_big); + goto error_return; + } ++ if (amt == 0) ++ goto error_return; + elf_tdata (abfd)->verdef = (Elf_Internal_Verdef *) bfd_zalloc (abfd, amt); + if (elf_tdata (abfd)->verdef == NULL) + goto error_return; diff --git a/SOURCES/binutils-2.27-aarch64-ifunc.patch b/SOURCES/binutils-2.27-aarch64-ifunc.patch new file mode 100644 index 0000000..a435522 --- /dev/null +++ b/SOURCES/binutils-2.27-aarch64-ifunc.patch @@ -0,0 +1,11 @@ +diff -rupN --no-dereference binutils-2.40/bfd/elfnn-aarch64.c binutils-2.40-new/bfd/elfnn-aarch64.c +--- binutils-2.40/bfd/elfnn-aarch64.c 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/elfnn-aarch64.c 2023-03-09 14:51:55.011379383 +0100 +@@ -5487,6 +5487,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 ++ && (input_section->flags & SEC_ALLOC) + && h->def_regular) + { + asection *plt; diff --git a/SOURCES/binutils-autoconf-version.patch b/SOURCES/binutils-autoconf-version.patch index c555904..ae16a6e 100644 --- a/SOURCES/binutils-autoconf-version.patch +++ b/SOURCES/binutils-autoconf-version.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.39/config/override.m4 binutils-2.39-new/config/override.m4 ---- binutils-2.39/config/override.m4 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/config/override.m4 2022-10-30 12:41:36.883023796 +0100 +diff -rupN --no-dereference binutils-2.40/config/override.m4 binutils-2.40-new/config/override.m4 +--- binutils-2.40/config/override.m4 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/config/override.m4 2023-03-09 14:52:03.599278848 +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 ae1f1c2..c9e4f04 100644 --- a/SOURCES/binutils-do-not-link-with-static-libstdc++.patch +++ b/SOURCES/binutils-do-not-link-with-static-libstdc++.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.39/configure binutils-2.39-new/configure ---- binutils-2.39/configure 2022-07-08 11:55:40.000000000 +0200 -+++ binutils-2.39-new/configure 2022-10-30 12:41:28.785023757 +0100 -@@ -5276,49 +5276,6 @@ if test -z "$LD"; then +diff -rupN --no-dereference binutils-2.40/configure binutils-2.40-new/configure +--- binutils-2.40/configure 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/configure 2023-03-09 14:51:56.227365462 +0100 +@@ -5442,49 +5442,6 @@ if test -z "$LD"; then fi fi @@ -51,10 +51,10 @@ diff -rupN --no-dereference binutils-2.39/configure binutils-2.39-new/configure if test -n "$ac_tool_prefix"; then -diff -rupN --no-dereference binutils-2.39/configure.ac binutils-2.39-new/configure.ac ---- binutils-2.39/configure.ac 2022-08-05 13:02:04.000000000 +0200 -+++ binutils-2.39-new/configure.ac 2022-10-30 12:41:28.786023757 +0100 -@@ -1314,26 +1314,6 @@ if test -z "$LD"; then +diff -rupN --no-dereference binutils-2.40/configure.ac binutils-2.40-new/configure.ac +--- binutils-2.40/configure.ac 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/configure.ac 2023-03-09 14:51:56.228365450 +0100 +@@ -1435,26 +1435,6 @@ if test -z "$LD"; then fi fi @@ -79,5 +79,5 @@ diff -rupN --no-dereference binutils-2.39/configure.ac binutils-2.39-new/configu -fi - ACX_PROG_GNAT + ACX_PROG_GDC ACX_PROG_CMP_IGNORE_INITIAL - diff --git a/SOURCES/binutils-export-demangle.h.patch b/SOURCES/binutils-export-demangle.h.patch index 237f719..d246443 100644 --- a/SOURCES/binutils-export-demangle.h.patch +++ b/SOURCES/binutils-export-demangle.h.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.39/bfd/Makefile.am binutils-2.39-new/bfd/Makefile.am ---- binutils-2.39/bfd/Makefile.am 2022-10-30 12:41:22.907023730 +0100 -+++ binutils-2.39-new/bfd/Makefile.am 2022-10-30 12:41:22.912023730 +0100 +diff -rupN --no-dereference binutils-2.40/bfd/Makefile.am binutils-2.40-new/bfd/Makefile.am +--- binutils-2.40/bfd/Makefile.am 2023-03-09 14:51:48.814448632 +0100 ++++ binutils-2.40-new/bfd/Makefile.am 2023-03-09 14:51:48.819448577 +0100 @@ -38,7 +38,7 @@ bfdlibdir = @bfdlibdir@ bfdincludedir = @bfdincludedir@ bfdlib_LTLIBRARIES = libbfd.la @@ -10,10 +10,10 @@ diff -rupN --no-dereference binutils-2.39/bfd/Makefile.am binutils-2.39-new/bfd/ else !INSTALL_LIBBFD # Empty these so that the respective installation directories will not be created. bfdlibdir = -diff -rupN --no-dereference binutils-2.39/bfd/Makefile.in binutils-2.39-new/bfd/Makefile.in ---- binutils-2.39/bfd/Makefile.in 2022-10-30 12:41:22.908023730 +0100 -+++ binutils-2.39-new/bfd/Makefile.in 2022-10-30 12:41:22.912023730 +0100 -@@ -290,7 +290,7 @@ am__can_run_installinfo = \ +diff -rupN --no-dereference binutils-2.40/bfd/Makefile.in binutils-2.40-new/bfd/Makefile.in +--- binutils-2.40/bfd/Makefile.in 2023-03-09 14:51:48.815448621 +0100 ++++ binutils-2.40-new/bfd/Makefile.in 2023-03-09 14:51:48.819448577 +0100 +@@ -292,7 +292,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.39/bfd/Makefile.in binutils-2.39-new/bfd/ HEADERS = $(bfdinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -@@ -511,7 +511,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -rel +@@ -517,7 +517,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-filename-in-error-messages.patch b/SOURCES/binutils-filename-in-readelf-messages.patch similarity index 88% rename from SOURCES/binutils-filename-in-error-messages.patch rename to SOURCES/binutils-filename-in-readelf-messages.patch index c9b406e..98b3553 100644 --- a/SOURCES/binutils-filename-in-error-messages.patch +++ b/SOURCES/binutils-filename-in-readelf-messages.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.39/binutils/readelf.c binutils-2.39-new/binutils/readelf.c ---- binutils-2.39/binutils/readelf.c 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/binutils/readelf.c 2022-10-30 12:41:25.339023741 +0100 -@@ -22710,46 +22710,53 @@ process_file (char * file_name) +diff -rupN --no-dereference binutils-2.40/binutils/readelf.c binutils-2.40-new/binutils/readelf.c +--- binutils-2.40/binutils/readelf.c 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/binutils/readelf.c 2023-03-09 14:51:51.335420794 +0100 +@@ -22858,46 +22858,53 @@ process_file (char * file_name) Filedata * filedata = NULL; struct stat statbuf; char armag[SARMAG]; @@ -69,8 +69,8 @@ diff -rupN --no-dereference binutils-2.39/binutils/readelf.c binutils-2.39-new/b + goto done; } - filedata->file_size = (bfd_size_type) statbuf.st_size; -@@ -22757,33 +22764,39 @@ process_file (char * file_name) + filedata->file_size = statbuf.st_size; +@@ -22905,33 +22912,39 @@ process_file (char * file_name) if (memcmp (armag, ARMAG, SARMAG) == 0) { diff --git a/SOURCES/binutils-fix-testsuite-failures.patch b/SOURCES/binutils-fix-testsuite-failures.patch index 87d4b29..bbdbf8e 100644 --- a/SOURCES/binutils-fix-testsuite-failures.patch +++ b/SOURCES/binutils-fix-testsuite-failures.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elfvers/vers24.rd binutils-2.39-new/ld/testsuite/ld-elfvers/vers24.rd ---- binutils-2.39/ld/testsuite/ld-elfvers/vers24.rd 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elfvers/vers24.rd 2022-10-30 12:41:31.100023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elfvers/vers24.rd binutils-2.40-new/ld/testsuite/ld-elfvers/vers24.rd +--- binutils-2.40/ld/testsuite/ld-elfvers/vers24.rd 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-elfvers/vers24.rd 2023-03-09 14:51:58.684337020 +0100 @@ -7,9 +7,9 @@ Symbol table '.dynsym' contains [0-9]+ e # And ensure the dynamic symbol table contains at least x@VERS.0 # and foo@@VERS.0 symbols @@ -13,9 +13,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elfvers/vers24.rd binu #... Symbol table '.symtab' contains [0-9]+ entries: #pass -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-10.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-10.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-10.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-10.d 2022-10-30 12:41:31.099023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-10.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-10.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-10.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-10.d 2023-03-09 14:51:58.683337032 +0100 @@ -32,7 +32,8 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/libtext.a \[@.* not claimed #... @@ -26,9 +26,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-10.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-11.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-11.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-11.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-11.d 2022-10-30 12:41:31.099023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-11.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-11.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-11.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-11.d 2023-03-09 14:51:58.683337032 +0100 @@ -35,8 +35,9 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED #... @@ -41,18 +41,18 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-11.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-13.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-13.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-13.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-13.d 2022-10-30 12:41:31.095023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-13.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-13.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-13.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-13.d 2023-03-09 14:51:58.679337079 +0100 @@ -23,5 +23,3 @@ hook called: claim_file tmpdir/main.o \[ hook called: claim_file .*/ld/testsuite/ld-plugin/func.c \[@0/.* CLAIMED hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... -.*main.c.*: undefined reference to `\.?func' -#... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-14.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-14.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-14.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-14.d 2022-10-30 12:41:31.095023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-14.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-14.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-14.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-14.d 2023-03-09 14:51:58.679337079 +0100 @@ -27,7 +27,6 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -62,9 +62,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-14.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-15.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-15.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-15.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-15.d 2022-10-30 12:41:31.095023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-15.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-15.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-15.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-15.d 2023-03-09 14:51:58.679337079 +0100 @@ -28,7 +28,6 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -74,9 +74,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-15.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-16.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-16.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-16.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-16.d 2022-10-30 12:41:31.096023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-16.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-16.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-16.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-16.d 2023-03-09 14:51:58.680337067 +0100 @@ -30,9 +30,8 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -89,9 +89,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-16.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-17.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-17.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-17.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-17.d 2022-10-30 12:41:31.096023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-17.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-17.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-17.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-17.d 2023-03-09 14:51:58.680337067 +0100 @@ -31,7 +31,8 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -102,9 +102,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-17.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-18.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-18.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-18.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-18.d 2022-10-30 12:41:31.100023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-18.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-18.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-18.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-18.d 2023-03-09 14:51:58.683337032 +0100 @@ -32,7 +32,8 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/libtext.a \[@.* not claimed #... @@ -115,9 +115,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-18.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-19.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-19.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-19.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-19.d 2022-10-30 12:41:31.100023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-19.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-19.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-19.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-19.d 2023-03-09 14:51:58.684337020 +0100 @@ -35,8 +35,9 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED #... @@ -130,9 +130,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-19.d bin +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-20.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-20.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-20.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-20.d 2022-10-30 12:41:31.096023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-20.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-20.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-20.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-20.d 2023-03-09 14:51:58.680337067 +0100 @@ -2,6 +2,5 @@ hook called: all symbols read. Input: func.c \(tmpdir/libfunc.a\) Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* @@ -141,9 +141,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-20.d bin -.*main.c.*: undefined reference to `\.?func' +#... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-21.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-21.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-21.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-21.d 2022-10-30 12:41:31.096023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-21.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-21.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-21.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-21.d 2023-03-09 14:51:58.680337067 +0100 @@ -2,6 +2,5 @@ hook called: all symbols read. Input: .*/ld/testsuite/ld-plugin/func.c \(.*/ld/testsuite/ld-plugin/func.c\) Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* @@ -152,9 +152,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-21.d bin -.*main.c.*: undefined reference to `\.?func' +#... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-22.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-22.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-22.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-22.d 2022-10-30 12:41:31.097023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-22.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-22.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-22.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-22.d 2023-03-09 14:51:58.680337067 +0100 @@ -2,6 +2,5 @@ Claimed: tmpdir/libfunc.a \[@.* hook called: all symbols read. Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* @@ -163,9 +163,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-22.d bin -.*main.c.*: undefined reference to `\.?func' +#... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-23.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-23.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-23.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-23.d 2022-10-30 12:41:31.097023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-23.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-23.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-23.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-23.d 2023-03-09 14:51:58.681337056 +0100 @@ -2,6 +2,5 @@ Claimed: .*/ld/testsuite/ld-plugin/func. hook called: all symbols read. Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* @@ -174,47 +174,47 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-23.d bin -.*main.c.*: undefined reference to `\.?func' +#... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-24.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-24.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-24.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-24.d 2022-10-30 12:41:31.097023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-24.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-24.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-24.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-24.d 2023-03-09 14:51:58.681337056 +0100 @@ -2,4 +2,5 @@ hook called: all symbols read. Input: .*/ld/testsuite/ld-plugin/func.c \(.*/ld/testsuite/ld-plugin/func.c\) Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* +#... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-25.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-25.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-25.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-25.d 2022-10-30 12:41:31.097023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-25.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-25.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-25.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-25.d 2023-03-09 14:51:58.681337056 +0100 @@ -2,4 +2,5 @@ Claimed: .*/ld/testsuite/ld-plugin/func. hook called: all symbols read. Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* +#... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-28.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-28.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-28.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-28.d 2022-10-30 12:41:31.100023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-28.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-28.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-28.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-28.d 2023-03-09 14:51:58.684337020 +0100 @@ -1 +1,2 @@ .*: error: Error +#... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-29.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-29.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-29.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-29.d 2022-10-30 12:41:31.098023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-29.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-29.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-29.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-29.d 2023-03-09 14:51:58.681337056 +0100 @@ -1 +1,2 @@ .*: warning: Warning +#... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-30.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-30.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-30.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-30.d 2022-10-30 12:41:31.098023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-30.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-30.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-30.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-30.d 2023-03-09 14:51:58.681337056 +0100 @@ -24,3 +24,4 @@ hook called: claim_file tmpdir/main.o \[ hook called: claim_file tmpdir/func.o \[@0/.* not claimed hook called: claim_file tmpdir/text.o \[@0/.* not claimed hook called: claim_file tmpdir/libempty.a \[@.* not claimed +#pass -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-6.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-6.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-6.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-6.d 2022-10-30 12:41:31.098023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-6.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-6.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-6.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-6.d 2023-03-09 14:51:58.682337044 +0100 @@ -27,7 +27,6 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -224,9 +224,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-6.d binu +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-7.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-7.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-7.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-7.d 2022-10-30 12:41:31.098023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-7.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-7.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-7.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-7.d 2023-03-09 14:51:58.682337044 +0100 @@ -28,7 +28,6 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -236,9 +236,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-7.d binu +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-8.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-8.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-8.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-8.d 2022-10-30 12:41:31.100023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-8.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-8.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-8.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-8.d 2023-03-09 14:51:58.684337020 +0100 @@ -30,9 +30,8 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -251,9 +251,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-8.d binu +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-9.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-9.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-9.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-9.d 2022-10-30 12:41:31.099023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-9.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-9.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-9.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-9.d 2023-03-09 14:51:58.682337044 +0100 @@ -31,7 +31,8 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... @@ -264,9 +264,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-9.d binu +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin.exp binutils-2.39-new/ld/testsuite/ld-plugin/plugin.exp ---- binutils-2.39/ld/testsuite/ld-plugin/plugin.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin.exp 2022-10-30 12:41:31.101023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin.exp binutils-2.40-new/ld/testsuite/ld-plugin/plugin.exp +--- binutils-2.40/ld/testsuite/ld-plugin/plugin.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin.exp 2023-03-09 14:51:58.685337009 +0100 @@ -117,6 +117,12 @@ if { $can_compile && !$failed_compile } } } @@ -280,9 +280,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin.exp binu set testobjfiles "tmpdir/main.o tmpdir/func.o tmpdir/text.o" set testobjfiles_notext "tmpdir/main.o tmpdir/func.o" set testsrcfiles "tmpdir/main.o $srcdir/$subdir/func.c tmpdir/text.o" -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/pr20070.d binutils-2.39-new/ld/testsuite/ld-plugin/pr20070.d ---- binutils-2.39/ld/testsuite/ld-plugin/pr20070.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/pr20070.d 2022-10-30 12:41:31.099023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/pr20070.d binutils-2.40-new/ld/testsuite/ld-plugin/pr20070.d +--- binutils-2.40/ld/testsuite/ld-plugin/pr20070.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/pr20070.d 2023-03-09 14:51:58.683337032 +0100 @@ -5,5 +5,6 @@ Sym: 'weakdef' Resolution: LDPR_PREVAILI Sym: 'undef' Resolution: LDPR_UNDEF Sym: 'weakundef' Resolution: LDPR_UNDEF @@ -290,9 +290,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/pr20070.d binut +#... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-srec/srec.exp binutils-2.39-new/ld/testsuite/ld-srec/srec.exp ---- binutils-2.39/ld/testsuite/ld-srec/srec.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-srec/srec.exp 2022-10-30 12:41:31.099023768 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-srec/srec.exp binutils-2.40-new/ld/testsuite/ld-srec/srec.exp +--- binutils-2.40/ld/testsuite/ld-srec/srec.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-srec/srec.exp 2023-03-09 14:51:58.683337032 +0100 @@ -21,6 +21,8 @@ # Get the offset from an S-record line to the start of the data. diff --git a/SOURCES/binutils-gas-dwarf-skip-empty-functions.patch b/SOURCES/binutils-gas-dwarf-skip-empty-functions.patch deleted file mode 100644 index 5f0371c..0000000 --- a/SOURCES/binutils-gas-dwarf-skip-empty-functions.patch +++ /dev/null @@ -1,67 +0,0 @@ -diff -rupN --no-dereference binutils-2.39/gas/dwarf2dbg.c binutils-2.39-new/gas/dwarf2dbg.c ---- binutils-2.39/gas/dwarf2dbg.c 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/gas/dwarf2dbg.c 2022-10-30 12:41:40.297023812 +0100 -@@ -2882,6 +2882,7 @@ out_debug_info (segT info_seg, segT abbr - { - const char *name; - size_t len; -+ expressionS size = { .X_op = O_constant }; - - /* Skip warning constructs (see above). */ - if (symbol_get_bfdsym (symp)->flags & BSF_WARNING) -@@ -2895,6 +2896,18 @@ out_debug_info (segT info_seg, segT abbr - if (!S_IS_DEFINED (symp) || !S_IS_FUNCTION (symp)) - continue; - -+#if defined (OBJ_ELF) /* || defined (OBJ_MAYBE_ELF) */ -+ size.X_add_number = S_GET_SIZE (symp); -+ if (size.X_add_number == 0 && IS_ELF -+ && symbol_get_obj (symp)->size != NULL) -+ { -+ size.X_op = O_add; -+ size.X_op_symbol = make_expr_symbol (symbol_get_obj (symp)->size); -+ } -+#endif -+ if (size.X_op == O_constant && size.X_add_number == 0) -+ continue; -+ - subseg_set (str_seg, 0); - name_sym = symbol_temp_new_now_octets (); - name = S_GET_NAME (symp); -@@ -2920,29 +2933,17 @@ out_debug_info (segT info_seg, segT abbr - emit_expr (&exp, sizeof_address); - - /* DW_AT_high_pc */ -- exp.X_op = O_constant; --#if defined (OBJ_ELF) /* || defined (OBJ_MAYBE_ELF) */ -- exp.X_add_number = S_GET_SIZE (symp); -- if (exp.X_add_number == 0 && IS_ELF -- && symbol_get_obj (symp)->size != NULL) -- { -- exp.X_op = O_add; -- exp.X_op_symbol = make_expr_symbol (symbol_get_obj (symp)->size); -- } --#else -- exp.X_add_number = 0; --#endif - if (DWARF2_VERSION < 4) - { -- if (exp.X_op == O_constant) -- exp.X_op = O_symbol; -- exp.X_add_symbol = symp; -- emit_expr (&exp, sizeof_address); -+ if (size.X_op == O_constant) -+ size.X_op = O_symbol; -+ size.X_add_symbol = symp; -+ emit_expr (&size, sizeof_address); - } -- else if (exp.X_op == O_constant) -- out_uleb128 (exp.X_add_number); -+ else if (size.X_op == O_constant) -+ out_uleb128 (size.X_add_number); - else -- emit_leb128_expr (symbol_get_value_expression (exp.X_op_symbol), 0); -+ emit_leb128_expr (symbol_get_value_expression (size.X_op_symbol), 0); - } - - /* End of children. */ diff --git a/SOURCES/binutils-gdb.git-b7eab2a9d4f4e92692daf14b09fc95ca11b72e30.patch b/SOURCES/binutils-gdb.git-b7eab2a9d4f4e92692daf14b09fc95ca11b72e30.patch new file mode 100644 index 0000000..4091345 --- /dev/null +++ b/SOURCES/binutils-gdb.git-b7eab2a9d4f4e92692daf14b09fc95ca11b72e30.patch @@ -0,0 +1,13 @@ +diff -rupN --no-dereference binutils-2.40/ld/ldlang.c binutils-2.40-new/ld/ldlang.c +--- binutils-2.40/ld/ldlang.c 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/ldlang.c 2023-06-14 16:26:54.425556661 +0200 +@@ -649,7 +649,8 @@ wild_sort (lang_wild_statement_type *wil + looking at the sections for this file. */ + + /* Find the correct node to append this section. */ +- if (compare_section (sec->spec.sorted, section, (*tree)->section) < 0) ++ if (sec && sec->spec.sorted != none && sec->spec.sorted != by_none ++ && compare_section (sec->spec.sorted, section, (*tree)->section) < 0) + tree = &((*tree)->left); + else + tree = &((*tree)->right); diff --git a/SOURCES/binutils-gold-i386-gnu-property-notes.patch b/SOURCES/binutils-gold-i386-gnu-property-notes.patch index a1c729b..89d9325 100644 --- a/SOURCES/binutils-gold-i386-gnu-property-notes.patch +++ b/SOURCES/binutils-gold-i386-gnu-property-notes.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.39/gold/i386.cc binutils-2.39-new/gold/i386.cc ---- binutils-2.39/gold/i386.cc 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/i386.cc 2022-10-30 12:41:35.714023790 +0100 +diff -rupN --no-dereference binutils-2.40/gold/i386.cc binutils-2.40-new/gold/i386.cc +--- binutils-2.40/gold/i386.cc 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/gold/i386.cc 2023-03-09 14:52:02.399293207 +0100 @@ -360,7 +360,11 @@ class Target_i386 : public Sized_target< got_(NULL), plt_(NULL), got_plt_(NULL), got_irelative_(NULL), got_tlsdesc_(NULL), global_offset_table_(NULL), rel_dyn_(NULL), diff --git a/SOURCES/binutils-gold-mismatched-section-flags.patch b/SOURCES/binutils-gold-mismatched-section-flags.patch index 855b3ee..b1337f9 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.39/gold/layout.cc binutils-2.39-new/gold/layout.cc ---- binutils-2.39/gold/layout.cc 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/layout.cc 2022-10-30 12:41:32.255023774 +0100 -@@ -869,6 +869,7 @@ Layout::get_output_section(const char* n +diff -rupN --no-dereference binutils-2.40/gold/layout.cc binutils-2.40-new/gold/layout.cc +--- binutils-2.40/gold/layout.cc 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/gold/layout.cc 2023-03-09 14:51:59.908322697 +0100 +@@ -872,6 +872,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.39/gold/layout.cc binutils-2.39-new/gold/ else if ((flags & elfcpp::SHF_TLS) == 0) { elfcpp::Elf_Xword zero_flags = 0; -@@ -879,6 +880,7 @@ Layout::get_output_section(const char* n +@@ -882,6 +883,7 @@ Layout::get_output_section(const char* n if (p != this->section_name_map_.end()) os = p->second; } diff --git a/SOURCES/binutils-gold-warn-unsupported.patch b/SOURCES/binutils-gold-warn-unsupported.patch index bb3399d..58eb8a6 100644 --- a/SOURCES/binutils-gold-warn-unsupported.patch +++ b/SOURCES/binutils-gold-warn-unsupported.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.39/bfd/config.bfd binutils-2.39-new/bfd/config.bfd ---- binutils-2.39/bfd/config.bfd 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/bfd/config.bfd 2022-10-30 12:41:33.412023779 +0100 -@@ -490,7 +490,7 @@ case "${targ}" in +diff -rupN --no-dereference binutils-2.40/bfd/config.bfd binutils-2.40-new/bfd/config.bfd +--- binutils-2.40/bfd/config.bfd 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/config.bfd 2023-03-09 14:52:01.154308002 +0100 +@@ -501,7 +501,7 @@ case "${targ}" in ;; #ifdef BFD64 @@ -10,7 +10,7 @@ diff -rupN --no-dereference binutils-2.39/bfd/config.bfd binutils-2.39-new/bfd/c targ_defvec=bpf_elf64_le_vec targ_selvecs=bpf_elf64_be_vec targ_underscore=yes -@@ -1478,7 +1478,7 @@ case "${targ}" in +@@ -1494,7 +1494,7 @@ case "${targ}" in ;; *) @@ -19,10 +19,10 @@ diff -rupN --no-dereference binutils-2.39/bfd/config.bfd binutils-2.39-new/bfd/c echo 1>&2 "*** Look in bfd/config.bfd for supported targets." exit 1 ;; -diff -rupN --no-dereference binutils-2.39/gold/configure binutils-2.39-new/gold/configure ---- binutils-2.39/gold/configure 2022-07-08 11:58:08.000000000 +0200 -+++ binutils-2.39-new/gold/configure 2022-10-30 12:41:33.410023779 +0100 -@@ -5223,7 +5223,8 @@ for targ in $target $canon_targets; do +diff -rupN --no-dereference binutils-2.40/gold/configure binutils-2.40-new/gold/configure +--- binutils-2.40/gold/configure 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/gold/configure 2023-03-09 14:52:01.152308026 +0100 +@@ -5255,7 +5255,8 @@ for targ in $target $canon_targets; do . ${srcdir}/configure.tgt if test "$targ_obj" = "UNKNOWN"; then @@ -32,9 +32,9 @@ diff -rupN --no-dereference binutils-2.39/gold/configure binutils-2.39-new/gold/ else targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" if test "$targ_extra_obj" != ""; then -diff -rupN --no-dereference binutils-2.39/gold/configure.ac binutils-2.39-new/gold/configure.ac ---- binutils-2.39/gold/configure.ac 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/configure.ac 2022-10-30 12:41:33.411023779 +0100 +diff -rupN --no-dereference binutils-2.40/gold/configure.ac binutils-2.40-new/gold/configure.ac +--- binutils-2.40/gold/configure.ac 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/gold/configure.ac 2023-03-09 14:52:01.153308014 +0100 @@ -182,7 +182,7 @@ for targ in $target $canon_targets; do . ${srcdir}/configure.tgt @@ -44,10 +44,10 @@ diff -rupN --no-dereference binutils-2.39/gold/configure.ac binutils-2.39-new/go else targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" if test "$targ_extra_obj" != ""; then -diff -rupN --no-dereference binutils-2.39/ld/configure.tgt binutils-2.39-new/ld/configure.tgt ---- binutils-2.39/ld/configure.tgt 2022-07-29 09:37:48.000000000 +0200 -+++ binutils-2.39-new/ld/configure.tgt 2022-10-30 12:41:33.411023779 +0100 -@@ -258,7 +258,7 @@ bfin-*-linux-uclibc*) targ_emul=elf32bfi +diff -rupN --no-dereference binutils-2.40/ld/configure.tgt binutils-2.40-new/ld/configure.tgt +--- binutils-2.40/ld/configure.tgt 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/configure.tgt 2023-03-09 14:52:01.153308014 +0100 +@@ -263,7 +263,7 @@ bfin-*-linux-uclibc*) targ_emul=elf32bfi targ_extra_emuls="elf32bfin" targ_extra_libpath=$targ_extra_emuls ;; @@ -56,7 +56,7 @@ diff -rupN --no-dereference binutils-2.39/ld/configure.tgt binutils-2.39-new/ld/ ;; cr16-*-elf*) targ_emul=elf32cr16 ;; -@@ -1078,7 +1078,7 @@ loongarch64-*) targ_emul=elf64loongarch +@@ -1088,7 +1088,7 @@ loongarch64-*) targ_emul=elf64loongarch targ_extra_ofiles= ;; *) diff --git a/SOURCES/binutils-libtool-no-rpath.patch b/SOURCES/binutils-libtool-no-rpath.patch index 398736f..6433eb0 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.39/ltmain.sh binutils-2.39-new/ltmain.sh ---- binutils-2.39/ltmain.sh 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ltmain.sh 2022-10-30 12:41:38.049023801 +0100 +diff -rupN --no-dereference binutils-2.40/ltmain.sh binutils-2.40-new/ltmain.sh +--- binutils-2.40/ltmain.sh 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ltmain.sh 2023-03-09 14:52:04.803264344 +0100 @@ -7103,6 +7103,7 @@ EOF rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" diff --git a/SOURCES/binutils-no-config-h-check.patch b/SOURCES/binutils-no-config-h-check.patch index 0f84b9e..445d2c7 100644 --- a/SOURCES/binutils-no-config-h-check.patch +++ b/SOURCES/binutils-no-config-h-check.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.39/bfd/bfd-in2.h binutils-2.39-new/bfd/bfd-in2.h ---- binutils-2.39/bfd/bfd-in2.h 2022-08-01 09:12:32.000000000 +0200 -+++ binutils-2.39-new/bfd/bfd-in2.h 2022-10-30 12:41:24.134023735 +0100 +diff -rupN --no-dereference binutils-2.40/bfd/bfd-in2.h binutils-2.40-new/bfd/bfd-in2.h +--- binutils-2.40/bfd/bfd-in2.h 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/bfd-in2.h 2023-03-09 14:51:50.115434327 +0100 @@ -30,11 +30,6 @@ #ifndef __BFD_H_SEEN__ #define __BFD_H_SEEN__ @@ -13,9 +13,9 @@ diff -rupN --no-dereference binutils-2.39/bfd/bfd-in2.h binutils-2.39-new/bfd/bf #ifdef __cplusplus extern "C" { #endif -diff -rupN --no-dereference binutils-2.39/bfd/bfd-in.h binutils-2.39-new/bfd/bfd-in.h ---- binutils-2.39/bfd/bfd-in.h 2022-08-01 09:12:32.000000000 +0200 -+++ binutils-2.39-new/bfd/bfd-in.h 2022-10-30 12:41:24.133023735 +0100 +diff -rupN --no-dereference binutils-2.40/bfd/bfd-in.h binutils-2.40-new/bfd/bfd-in.h +--- binutils-2.40/bfd/bfd-in.h 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/bfd-in.h 2023-03-09 14:51:50.114434338 +0100 @@ -23,11 +23,6 @@ #ifndef __BFD_H_SEEN__ #define __BFD_H_SEEN__ diff --git a/SOURCES/binutils-objcopy-note-merge-speedup.patch b/SOURCES/binutils-objcopy-note-merge-speedup.patch new file mode 100644 index 0000000..47f2d1d --- /dev/null +++ b/SOURCES/binutils-objcopy-note-merge-speedup.patch @@ -0,0 +1,45 @@ +diff -rupN --no-dereference binutils-2.40/binutils/objcopy.c binutils-2.40-new/binutils/objcopy.c +--- binutils-2.40/binutils/objcopy.c 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/binutils/objcopy.c 2023-03-09 14:52:06.043249302 +0100 +@@ -2403,6 +2403,8 @@ merge_gnu_build_notes (bfd * ab + other note then if they are both of the same type (open + or func) then they can be merged and one deleted. If + they are of different types then they cannot be merged. */ ++ objcopy_internal_note * prev_note = NULL; ++ + for (pnote = pnotes; pnote < pnotes_end; pnote ++) + { + /* Skip already deleted notes. +@@ -2424,7 +2426,9 @@ merge_gnu_build_notes (bfd * ab + objcopy_internal_note * back; + + /* Rule 2: Check to see if there is an identical previous note. */ +- for (iter = 0, back = pnote - 1; back >= pnotes; back --) ++ for (iter = 0, back = prev_note ? prev_note : pnote - 1; ++ back >= pnotes; ++ back --) + { + if (is_deleted_note (back)) + continue; +@@ -2486,11 +2490,18 @@ merge_gnu_build_notes (bfd * ab + break; + } + } +-#if DEBUG_MERGE ++ ++ + if (! is_deleted_note (pnote)) +- merge_debug ("Unable to do anything with note at %#08lx\n", +- (pnote->note.namedata - (char *) contents) - 12); ++ { ++ /* Keep a pointer to this note, so that we can ++ start the next search for rule 2 matches here. */ ++ prev_note = pnote; ++#if DEBUG_MERGE ++ merge_debug ("Unable to do anything with note at %#08lx\n", ++ (pnote->note.namedata - (char *) contents) - 12); + #endif ++ } + } + + /* Resort the notes. */ diff --git a/SOURCES/binutils-package-metadata.patch b/SOURCES/binutils-package-metadata.patch deleted file mode 100644 index a224888..0000000 --- a/SOURCES/binutils-package-metadata.patch +++ /dev/null @@ -1,197 +0,0 @@ -diff -rupN --no-dereference binutils-2.39/elfcpp/elfcpp.h binutils-2.39-new/elfcpp/elfcpp.h ---- binutils-2.39/elfcpp/elfcpp.h 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/elfcpp/elfcpp.h 2022-10-30 12:41:39.175023806 +0100 -@@ -999,7 +999,9 @@ enum - // string. - NT_GNU_GOLD_VERSION = 4, - // Program property note, as described in "Linux Extensions to the gABI". -- NT_GNU_PROPERTY_TYPE_0 = 5 -+ NT_GNU_PROPERTY_TYPE_0 = 5, -+ // FDO .note.package notes as defined on https://systemd.io/ELF_PACKAGE_METADATA/ -+ FDO_PACKAGING_METADATA = 0xcafe1a7e - }; - - // The OS values which may appear in word 0 of a NT_GNU_ABI_TAG note. -diff -rupN --no-dereference binutils-2.39/gold/configure.ac binutils-2.39-new/gold/configure.ac ---- binutils-2.39/gold/configure.ac 2022-10-30 12:41:34.538023785 +0100 -+++ binutils-2.39-new/gold/configure.ac 2022-10-30 12:41:39.173023806 +0100 -@@ -591,6 +591,32 @@ if test "$threads" = "yes"; then - fi - AM_CONDITIONAL(THREADS, test "$threads" = "yes") - -+# Used to validate --package-metadata= input. Disabled by default. -+AC_ARG_ENABLE([jansson], -+ [AS_HELP_STRING([--enable-jansson], -+ [enable jansson [default=no]])], -+ [enable_jansson=$enableval], -+ [enable_jansson="no"]) -+ -+if test "x$enable_jansson" != "xno"; then -+ PKG_PROG_PKG_CONFIG -+ AS_IF([test -n "$PKG_CONFIG"], -+ [ -+ PKG_CHECK_MODULES(JANSSON, [jansson], -+ [ -+ AC_DEFINE(HAVE_JANSSON, 1, [The jansson library is to be used]) -+ AC_SUBST([JANSSON_CFLAGS]) -+ AC_SUBST([JANSSON_LIBS]) -+ ], -+ [ -+ AC_MSG_ERROR([Cannot find jansson library]) -+ ]) -+ ], -+ [ -+ AC_MSG_ERROR([Cannot find pkg-config]) -+ ]) -+fi -+ - dnl We have to check these in C, not C++, because autoconf generates - dnl tests which have no type information, and current glibc provides - dnl multiple declarations of functions like basename when compiling -diff -rupN --no-dereference binutils-2.39/gold/layout.cc binutils-2.39-new/gold/layout.cc ---- binutils-2.39/gold/layout.cc 2022-10-30 12:41:33.405023779 +0100 -+++ binutils-2.39-new/gold/layout.cc 2022-10-30 12:41:39.174023806 +0100 -@@ -38,6 +38,9 @@ - #include - #include - #endif -+#ifdef HAVE_JANSSON -+#include -+#endif - - #include "parameters.h" - #include "options.h" -@@ -2439,6 +2442,7 @@ Layout::create_notes() - this->create_gold_note(); - this->create_stack_segment(); - this->create_build_id(); -+ this->create_package_metadata(); - } - - // Create the dynamic sections which are needed before we read the -@@ -3536,6 +3540,52 @@ Layout::create_build_id() - } - } - -+// If --package-metadata was used, set up the package metadata note. -+// https://systemd.io/ELF_PACKAGE_METADATA/ -+ -+void -+Layout::create_package_metadata() -+{ -+ if (!parameters->options().user_set_package_metadata()) -+ return; -+ -+ const char* desc = parameters->options().package_metadata(); -+ if (strcmp(desc, "") == 0) -+ return; -+ -+#ifdef HAVE_JANSSON -+ json_error_t json_error; -+ json_t *json = json_loads(desc, 0, &json_error); -+ if (json) -+ json_decref(json); -+ else -+ { -+ gold_fatal(_("error: --package-metadata=%s does not contain valid " -+ "JSON: %s\n"), -+ desc, json_error.text); -+ } -+#endif -+ -+ // Create the note. -+ size_t trailing_padding; -+ // Ensure the trailing NULL byte is always included, as per specification. -+ size_t descsz = strlen(desc) + 1; -+ Output_section* os = this->create_note("FDO", elfcpp::FDO_PACKAGING_METADATA, -+ ".note.package", descsz, true, -+ &trailing_padding); -+ if (os == NULL) -+ return; -+ -+ Output_section_data* posd = new Output_data_const(desc, descsz, 4); -+ os->add_output_section_data(posd); -+ -+ if (trailing_padding != 0) -+ { -+ posd = new Output_data_zero_fill(trailing_padding, 0); -+ os->add_output_section_data(posd); -+ } -+} -+ - // If we have both .stabXX and .stabXXstr sections, then the sh_link - // field of the former should point to the latter. I'm not sure who - // started this, but the GNU linker does it, and some tools depend -diff -rupN --no-dereference binutils-2.39/gold/layout.h binutils-2.39-new/gold/layout.h ---- binutils-2.39/gold/layout.h 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/layout.h 2022-10-30 12:41:39.174023806 +0100 -@@ -1107,6 +1107,10 @@ class Layout - void - create_build_id(); - -+ // Create a package metadata note if needed. -+ void -+ create_package_metadata(); -+ - // Link .stab and .stabstr sections. - void - link_stabs_sections(); -@@ -1453,6 +1457,8 @@ class Layout - Gdb_index* gdb_index_data_; - // The space for the build ID checksum if there is one. - Output_section_data* build_id_note_; -+ // The space for the package metadata JSON if there is one. -+ Output_section_data* package_metadata_note_; - // The output section containing dwarf abbreviations - Output_reduced_debug_abbrev_section* debug_abbrev_; - // The output section containing the dwarf debug info tree -diff -rupN --no-dereference binutils-2.39/gold/Makefile.am binutils-2.39-new/gold/Makefile.am ---- binutils-2.39/gold/Makefile.am 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/Makefile.am 2022-10-30 12:41:39.173023806 +0100 -@@ -35,7 +35,7 @@ THREADFLAGS = @PTHREAD_CFLAGS@ - THREADLIBS = @PTHREAD_LIBS@ - - AM_CFLAGS = $(WARN_CFLAGS) $(LFS_CFLAGS) $(RANDOM_SEED_CFLAGS) $(ZLIBINC) $(THREADFLAGS) --AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CFLAGS) $(RANDOM_SEED_CFLAGS) $(ZLIBINC) $(THREADFLAGS) -+AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CFLAGS) $(RANDOM_SEED_CFLAGS) $(ZLIBINC) $(THREADFLAGS) $(JANSSON_CFLAGS) - AM_LDFLAGS = $(THREADFLAGS) - - AM_CPPFLAGS = \ -@@ -187,7 +187,7 @@ libgold_a_LIBADD = $(LIBOBJS) - sources_var = main.cc - deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP) - ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) \ -- $(THREADLIBS) $(LIBDL) $(ZLIB) -+ $(THREADLIBS) $(LIBDL) $(ZLIB) $(JANSSON_LIBS) - ldflags_var = $(GOLD_LDFLAGS) - - ld_new_SOURCES = $(sources_var) -@@ -201,12 +201,12 @@ incremental_dump_SOURCES = incremental-d - incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \ - $(LIBINTL_DEP) - incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \ -- $(THREADLIBS) $(LIBDL) $(ZLIB) -+ $(THREADLIBS) $(LIBDL) $(ZLIB) $(JANSSON_LIBS) - - dwp_SOURCES = dwp.cc - dwp_DEPENDENCIES = libgold.a $(LIBIBERTY) $(LIBINTL_DEP) - dwp_LDADD = libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) $(THREADLIBS) \ -- $(LIBDL) $(ZLIB) -+ $(LIBDL) $(ZLIB) $(JANSSON_LIBS) - dwp_LDFLAGS = $(GOLD_LDFLAGS) - - CONFIG_STATUS_DEPENDENCIES = $(srcdir)/../bfd/development.sh -diff -rupN --no-dereference binutils-2.39/gold/options.h binutils-2.39-new/gold/options.h ---- binutils-2.39/gold/options.h 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/options.h 2022-10-30 12:41:39.175023806 +0100 -@@ -1102,6 +1102,10 @@ class General_options - DEFINE_bool(p, options::ONE_DASH, 'p', false, - N_("Ignored for ARM compatibility"), NULL); - -+ DEFINE_optional_string(package_metadata, options::TWO_DASHES, '\0', NULL, -+ N_("Generate package metadata note"), -+ N_("[=JSON]")); -+ - 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-readelf-other-sym-info.patch b/SOURCES/binutils-readelf-other-sym-info.patch index ddfd850..3b68a30 100644 --- a/SOURCES/binutils-readelf-other-sym-info.patch +++ b/SOURCES/binutils-readelf-other-sym-info.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.39/binutils/readelf.c binutils-2.39-new/binutils/readelf.c ---- binutils-2.39/binutils/readelf.c 2022-10-30 12:41:26.462023746 +0100 -+++ binutils-2.39-new/binutils/readelf.c 2022-10-30 12:41:27.687023752 +0100 -@@ -13177,11 +13177,13 @@ print_dynamic_symbol (Filedata *filedata +diff -rupN --no-dereference binutils-2.40/binutils/readelf.c binutils-2.40-new/binutils/readelf.c +--- binutils-2.40/binutils/readelf.c 2023-03-09 14:51:52.549407223 +0100 ++++ binutils-2.40-new/binutils/readelf.c 2023-03-09 14:51:53.790393244 +0100 +@@ -13247,11 +13247,13 @@ print_dynamic_symbol (Filedata *filedata unsigned int vis = ELF_ST_VISIBILITY (psym->st_other); printf (" %-7s", get_symbol_visibility (vis)); @@ -15,7 +15,7 @@ diff -rupN --no-dereference binutils-2.39/binutils/readelf.c binutils-2.39-new/b } printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx)); -@@ -13235,7 +13237,17 @@ print_dynamic_symbol (Filedata *filedata +@@ -13305,7 +13307,17 @@ print_dynamic_symbol (Filedata *filedata version_string); } diff --git a/SOURCES/binutils-revert-PLT-elision.patch b/SOURCES/binutils-revert-PLT-elision.patch index c43fc21..d40f838 100644 --- a/SOURCES/binutils-revert-PLT-elision.patch +++ b/SOURCES/binutils-revert-PLT-elision.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference binutils-2.39/bfd/elfxx-x86.c binutils-2.39-new/bfd/elfxx-x86.c ---- binutils-2.39/bfd/elfxx-x86.c 2022-07-26 09:13:10.000000000 +0200 -+++ binutils-2.39-new/bfd/elfxx-x86.c 2022-10-30 12:41:26.471023746 +0100 +diff -rupN --no-dereference binutils-2.40/bfd/elfxx-x86.c binutils-2.40-new/bfd/elfxx-x86.c +--- binutils-2.40/bfd/elfxx-x86.c 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/elfxx-x86.c 2023-03-09 14:51:52.557407133 +0100 @@ -105,7 +105,7 @@ elf_x86_allocate_dynrelocs (struct elf_l plt_entry_size = htab->plt.plt_entry_size; @@ -19,9 +19,9 @@ diff -rupN --no-dereference binutils-2.39/bfd/elfxx-x86.c binutils-2.39-new/bfd/ /* 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.39/ld/testsuite/ld-i386/pltgot-1.d binutils-2.39-new/ld/testsuite/ld-i386/pltgot-1.d ---- binutils-2.39/ld/testsuite/ld-i386/pltgot-1.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/pltgot-1.d 2022-10-30 12:41:26.467023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/pltgot-1.d binutils-2.40-new/ld/testsuite/ld-i386/pltgot-1.d +--- binutils-2.40/ld/testsuite/ld-i386/pltgot-1.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-i386/pltgot-1.d 2023-03-09 14:51:52.553407178 +0100 @@ -2,6 +2,7 @@ #readelf: -S --wide #as: --32 @@ -30,9 +30,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-i386/pltgot-2.d binutils-2.39-new/ld/testsuite/ld-i386/pltgot-2.d ---- binutils-2.39/ld/testsuite/ld-i386/pltgot-2.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/pltgot-2.d 2022-10-30 12:41:26.467023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/pltgot-2.d binutils-2.40-new/ld/testsuite/ld-i386/pltgot-2.d +--- binutils-2.40/ld/testsuite/ld-i386/pltgot-2.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-i386/pltgot-2.d 2023-03-09 14:51:52.554407167 +0100 @@ -3,7 +3,6 @@ #readelf: -d --wide #as: --32 @@ -41,9 +41,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-i386/pltgot-2.d binuti #... +0x[0-9a-f]+ +\(PLTREL.* #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.39-new/ld/testsuite/ld-i386/pr19636-2d.d ---- binutils-2.39/ld/testsuite/ld-i386/pr19636-2d.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/pr19636-2d.d 2022-10-30 12:41:26.467023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.40-new/ld/testsuite/ld-i386/pr19636-2d.d +--- binutils-2.40/ld/testsuite/ld-i386/pr19636-2d.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-i386/pr19636-2d.d 2023-03-09 14:51:52.554407167 +0100 @@ -8,7 +8,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 @@ -53,9 +53,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.39-new/ld/testsuite/ld-i386/pr19636-2e.d ---- binutils-2.39/ld/testsuite/ld-i386/pr19636-2e.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/pr19636-2e.d 2022-10-30 12:41:26.468023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.40-new/ld/testsuite/ld-i386/pr19636-2e.d +--- binutils-2.40/ld/testsuite/ld-i386/pr19636-2e.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-i386/pr19636-2e.d 2023-03-09 14:51:52.554407167 +0100 @@ -8,7 +8,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 @@ -65,9 +65,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-i386/pr20830.d binutils-2.39-new/ld/testsuite/ld-i386/pr20830.d ---- binutils-2.39/ld/testsuite/ld-i386/pr20830.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/pr20830.d 2022-10-30 12:41:26.472023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/pr20830.d binutils-2.40-new/ld/testsuite/ld-i386/pr20830.d +--- binutils-2.40/ld/testsuite/ld-i386/pr20830.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-i386/pr20830.d 2023-03-09 14:51:52.557407133 +0100 @@ -19,7 +19,7 @@ Contents of the .eh_frame section: DW_CFA_offset: r8 \(eip\) at cfa-4 DW_CFA_nop @@ -77,9 +77,9 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-i386/pr20830.d binutil 0+18 00000010 0000001c FDE cie=00000000 pc=00000128..00000133 DW_CFA_nop DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.39-new/ld/testsuite/ld-x86-64/pltgot-1.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pltgot-1.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pltgot-1.d 2022-10-30 12:41:26.468023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.40-new/ld/testsuite/ld-x86-64/pltgot-1.d +--- binutils-2.40/ld/testsuite/ld-x86-64/pltgot-1.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/pltgot-1.d 2023-03-09 14:51:52.555407156 +0100 @@ -2,8 +2,4 @@ #readelf: -S --wide #as: --64 @@ -89,9 +89,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.39-new/ld/testsuite/ld-x86-64/pltgot-2.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pltgot-2.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pltgot-2.d 2022-10-30 12:41:26.469023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.40-new/ld/testsuite/ld-x86-64/pltgot-2.d +--- binutils-2.40/ld/testsuite/ld-x86-64/pltgot-2.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/pltgot-2.d 2023-03-09 14:51:52.555407156 +0100 @@ -3,7 +3,6 @@ #readelf: -d --wide #as: --64 @@ -100,17 +100,17 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pltgot-2.d binu #... +0x[0-9a-f]+ +\(PLTREL.* #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.39-new/ld/testsuite/ld-x86-64/plt-main.rd ---- binutils-2.39/ld/testsuite/ld-x86-64/plt-main.rd 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/plt-main.rd 2022-10-30 12:41:26.469023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.40-new/ld/testsuite/ld-x86-64/plt-main.rd +--- binutils-2.40/ld/testsuite/ld-x86-64/plt-main.rd 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/plt-main.rd 2023-03-09 14:51:52.555407156 +0100 @@ -1,4 +1,3 @@ -#failif #... [0-9a-f ]+R_X86_64_JUMP_SLOT +0+ +bar \+ 0 #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830a.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr20830a.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830a.d 2022-10-30 12:41:26.469023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830a.d +--- binutils-2.40/ld/testsuite/ld-x86-64/pr20830a.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830a.d 2023-03-09 14:51:52.555407156 +0100 @@ -20,6 +20,7 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -119,9 +119,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830a-now.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr20830a-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830a-now.d 2022-10-30 12:41:26.469023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830a-now.d +--- binutils-2.40/ld/testsuite/ld-x86-64/pr20830a-now.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830a-now.d 2023-03-09 14:51:52.555407156 +0100 @@ -20,6 +20,7 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -130,9 +130,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830b.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr20830b.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830b.d 2022-10-30 12:41:26.469023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830b.d +--- binutils-2.40/ld/testsuite/ld-x86-64/pr20830b.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830b.d 2023-03-09 14:51:52.556407144 +0100 @@ -20,7 +20,8 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -143,9 +143,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830b-now.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr20830b-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr20830b-now.d 2022-10-30 12:41:26.469023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830b-now.d +--- binutils-2.40/ld/testsuite/ld-x86-64/pr20830b-now.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/pr20830b-now.d 2023-03-09 14:51:52.556407144 +0100 @@ -20,7 +20,8 @@ Contents of the .eh_frame section: DW_CFA_offset: r16 \(rip\) at cfa-8 DW_CFA_nop @@ -156,85 +156,9 @@ diff -rupN --no-dereference binutils-2.39/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.39/ld/testsuite/ld-x86-64/pr21038a.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038a.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr21038a.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038a.d 2022-10-30 12:41:26.470023746 +0100 -@@ -19,7 +19,8 @@ Contents of the .eh_frame section: - DW_CFA_offset: r16 \(rip\) at cfa-8 - DW_CFA_nop - DW_CFA_nop -- -+#pass -+ - 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4 - DW_CFA_nop - DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr21038a-now.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038a-now.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr21038a-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038a-now.d 2022-10-30 12:41:26.470023746 +0100 -@@ -20,7 +20,8 @@ Contents of the .eh_frame section: - DW_CFA_offset: r16 \(rip\) at cfa-8 - DW_CFA_nop - DW_CFA_nop -- -+#pass -+ - 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4 - DW_CFA_nop - DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr21038b.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038b.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr21038b.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038b.d 2022-10-30 12:41:26.470023746 +0100 -@@ -19,6 +19,7 @@ Contents of the .eh_frame section: - DW_CFA_offset: r16 \(rip\) at cfa-8 - DW_CFA_nop - DW_CFA_nop -+#pass - - 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd - DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr21038b-now.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038b-now.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr21038b-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038b-now.d 2022-10-30 12:41:26.470023746 +0100 -@@ -20,7 +20,8 @@ Contents of the .eh_frame section: - DW_CFA_offset: r16 \(rip\) at cfa-8 - DW_CFA_nop - DW_CFA_nop -- -+#pass -+ - 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd - DW_CFA_nop - DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr21038c.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038c.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr21038c.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038c.d 2022-10-30 12:41:26.470023746 +0100 -@@ -19,7 +19,8 @@ Contents of the .eh_frame section: - DW_CFA_offset: r16 \(rip\) at cfa-8 - DW_CFA_nop - DW_CFA_nop -- -+#pass -+ - 0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231 - DW_CFA_nop - DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr21038c-now.d binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038c-now.d ---- binutils-2.39/ld/testsuite/ld-x86-64/pr21038c-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr21038c-now.d 2022-10-30 12:41:26.470023746 +0100 -@@ -20,7 +20,8 @@ Contents of the .eh_frame section: - DW_CFA_offset: r16 \(rip\) at cfa-8 - DW_CFA_nop - DW_CFA_nop -- -+#pass -+ - 0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231 - DW_CFA_nop - DW_CFA_nop -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.39-new/ld/testsuite/ld-x86-64/tlspic2.rd ---- binutils-2.39/ld/testsuite/ld-x86-64/tlspic2.rd 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/tlspic2.rd 2022-10-30 12:41:26.471023746 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.40-new/ld/testsuite/ld-x86-64/tlspic2.rd +--- binutils-2.40/ld/testsuite/ld-x86-64/tlspic2.rd 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/tlspic2.rd 2023-03-09 14:51:52.556407144 +0100 @@ -14,6 +14,7 @@ Section Headers: +\[[ 0-9]+\] .dynsym +.* +\[[ 0-9]+\] .dynstr +.* diff --git a/SOURCES/binutils-special-sections-in-groups.patch b/SOURCES/binutils-special-sections-in-groups.patch index 559a850..a1d7dc0 100644 --- a/SOURCES/binutils-special-sections-in-groups.patch +++ b/SOURCES/binutils-special-sections-in-groups.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.39/bfd/elf.c binutils-2.39-new/bfd/elf.c ---- binutils-2.39/bfd/elf.c 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/bfd/elf.c 2022-10-30 12:41:29.952023763 +0100 -@@ -824,7 +824,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd +diff -rupN --no-dereference binutils-2.40/bfd/elf.c binutils-2.40-new/bfd/elf.c +--- binutils-2.40/bfd/elf.c 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/elf.c 2023-03-09 14:51:57.453351322 +0100 +@@ -825,7 +825,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd } } @@ -16,7 +16,7 @@ diff -rupN --no-dereference binutils-2.39/bfd/elf.c binutils-2.39-new/bfd/elf.c { /* xgettext:c-format */ _bfd_error_handler (_("%pB: no group info for section '%pA'"), -@@ -927,7 +933,8 @@ _bfd_elf_setup_sections (bfd *abfd) +@@ -933,7 +939,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 diff --git a/SOURCES/binutils-testsuite-fixes.patch b/SOURCES/binutils-testsuite-fixes.patch index cbb3bfa..78ddee9 100644 --- a/SOURCES/binutils-testsuite-fixes.patch +++ b/SOURCES/binutils-testsuite-fixes.patch @@ -1,155 +1,452 @@ -diff -rupN --no-dereference binutils-2.39/binutils/testsuite/binutils-all/compress.exp binutils-2.39-new/binutils/testsuite/binutils-all/compress.exp ---- binutils-2.39/binutils/testsuite/binutils-all/compress.exp 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/binutils/testsuite/binutils-all/compress.exp 2022-10-30 12:41:34.555023785 +0100 -@@ -766,12 +766,6 @@ proc test_gnu_debuglink {} { - } else { - pass "$test (objdump with missing link)" - } -- set got [remote_exec host [concat sh -c [list "$READELF -S tmpdir/testprog > /dev/null"]]] -- if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then { -- fail "$test (readelf with missing link)" -- } else { -- pass "$test (readelf with missing link)" -- } - } +diff -rupN --no-dereference binutils-2.40/binutils/testsuite/binutils-all/pr26160.r binutils-2.40-new/binutils/testsuite/binutils-all/pr26160.r +--- binutils-2.40/binutils/testsuite/binutils-all/pr26160.r 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/binutils/testsuite/binutils-all/pr26160.r 2023-03-09 14:52:07.335233505 +0100 +@@ -30,14 +30,14 @@ Contents of the .debug_info.dwo section: + DW_AT_decl_file : 1 + DW_AT_decl_line : 30 + DW_AT_type : <0x90> +- DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: (0x)?0\): 0 + DW_AT_high_pc : 0x304 + DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) + DW_AT_GNU_all_tail_call_sites: 1 + DW_AT_sibling : <0x11b> + <2>: Abbrev Number: 14 \(DW_TAG_lexical_block\) +- DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x1\): 0 + DW_AT_high_pc : 0x2fa + <3>: Abbrev Number: 15 \(DW_TAG_variable\) +@@ -58,7 +58,7 @@ Contents of the .debug_info.dwo section: + DW_AT_artificial : 1 + DW_AT_location : 2 byte block: fb 2 \(DW_OP_GNU_addr_index <0x2>\) + <3><102>: Abbrev Number: 14 \(DW_TAG_lexical_block\) +- <103> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <103> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x3\): 0 + <104> DW_AT_high_pc : 0x2f + <4><10c>: Abbrev Number: 17 \(DW_TAG_variable\) +@@ -277,7 +277,7 @@ Contents of the .debug_info.dwo section: + <2dd> DW_AT_decl_file : 1 + <2de> DW_AT_decl_line : 70 + <2df> DW_AT_linkage_name: _Z4f13iv +- <2e8> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <2e8> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: (0x)?0\): 0 + <2e9> DW_AT_high_pc : 0x6 + <2f1> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -286,7 +286,7 @@ Contents of the .debug_info.dwo section: + <2f4> DW_AT_specification: <0x219> + <2f8> DW_AT_decl_file : 2 + <2f9> DW_AT_decl_line : 30 +- <2fa> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <2fa> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x1\): 0 + <2fb> DW_AT_high_pc : 0x20 + <303> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -305,7 +305,7 @@ Contents of the .debug_info.dwo section: + <31d> DW_AT_specification: <0x223> + <321> DW_AT_decl_file : 2 + <322> DW_AT_decl_line : 38 +- <323> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <323> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x2\): 0 + <324> DW_AT_high_pc : 0x18 + <32c> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -322,7 +322,7 @@ Contents of the .debug_info.dwo section: + <341> DW_AT_specification: <0x22d> + <345> DW_AT_decl_file : 2 + <346> DW_AT_decl_line : 46 +- <347> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <347> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x3\): 0 + <348> DW_AT_high_pc : 0x18 + <350> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -339,7 +339,7 @@ Contents of the .debug_info.dwo section: + <365> DW_AT_specification: <0x237> + <369> DW_AT_decl_file : 2 + <36a> DW_AT_decl_line : 54 +- <36b> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <36b> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x4\): 0 + <36c> DW_AT_high_pc : 0x16 + <374> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -356,7 +356,7 @@ Contents of the .debug_info.dwo section: + <389> DW_AT_specification: <0x26b> + <38d> DW_AT_decl_file : 2 + <38e> DW_AT_decl_line : 62 +- <38f> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <38f> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x5\): 0 + <390> DW_AT_high_pc : 0x16 + <398> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -375,7 +375,7 @@ Contents of the .debug_info.dwo section: + <3b2> DW_AT_specification: <0x275> + <3b6> DW_AT_decl_file : 2 + <3b7> DW_AT_decl_line : 72 +- <3b8> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <3b8> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x6\): 0 + <3b9> DW_AT_high_pc : 0x1b + <3c1> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -392,7 +392,7 @@ Contents of the .debug_info.dwo section: + <3d6> DW_AT_specification: <0x27f> + <3da> DW_AT_decl_file : 2 + <3db> DW_AT_decl_line : 82 +- <3dc> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <3dc> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x7\): 0 + <3dd> DW_AT_high_pc : 0x1b + <3e5> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -409,7 +409,7 @@ Contents of the .debug_info.dwo section: + <3fa> DW_AT_specification: <0x289> + <3fe> DW_AT_decl_file : 2 + <3ff> DW_AT_decl_line : 92 +- <400> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <400> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x8\): 0 + <401> DW_AT_high_pc : 0x19 + <409> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -426,7 +426,7 @@ Contents of the .debug_info.dwo section: + <41e> DW_AT_specification: <0x2ae> + <422> DW_AT_decl_file : 2 + <423> DW_AT_decl_line : 102 +- <424> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <424> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x9\): 0 + <425> DW_AT_high_pc : 0x19 + <42d> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -445,7 +445,7 @@ Contents of the .debug_info.dwo section: + <447> DW_AT_specification: <0x2b8> + <44b> DW_AT_decl_file : 2 + <44c> DW_AT_decl_line : 112 +- <44d> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <44d> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0xa\): 0 + <44e> DW_AT_high_pc : 0x1f + <456> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -465,7 +465,7 @@ Contents of the .debug_info.dwo section: + <471> DW_AT_decl_line : 120 + <472> DW_AT_linkage_name: _Z4f11av + <47b> DW_AT_type : <0x242> +- <47f> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <47f> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0xb\): 0 + <480> DW_AT_high_pc : 0xb + <488> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -474,7 +474,7 @@ Contents of the .debug_info.dwo section: + <48b> DW_AT_specification: <0x2c2> + <48f> DW_AT_decl_file : 2 + <490> DW_AT_decl_line : 126 +- <491> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <491> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0xc\): 0 + <492> DW_AT_high_pc : 0x20 + <49a> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -494,7 +494,7 @@ Contents of the .debug_info.dwo section: + <4b4> DW_AT_decl_line : 134 + <4b5> DW_AT_linkage_name: _Z3t12v + <4bd> DW_AT_type : <0x249> +- <4c1> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <4c1> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0xd\): 0 + <4c2> DW_AT_high_pc : 0x19 + <4ca> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -506,7 +506,7 @@ Contents of the .debug_info.dwo section: + <4d2> DW_AT_decl_line : 142 + <4d3> DW_AT_linkage_name: _Z3t13v + <4db> DW_AT_type : <0x249> +- <4df> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <4df> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0xe\): 0 + <4e0> DW_AT_high_pc : 0x14 + <4e8> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -518,14 +518,14 @@ Contents of the .debug_info.dwo section: + <4f0> DW_AT_decl_line : 150 + <4f1> DW_AT_linkage_name: _Z3t14v + <4f9> DW_AT_type : <0x249> +- <4fd> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <4fd> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0xf\): 0 + <4fe> DW_AT_high_pc : 0x61 + <506> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) + <508> DW_AT_GNU_all_tail_call_sites: 1 + <508> DW_AT_sibling : <0x532> + <2><50c>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <50d> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <50d> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x10\): 0 + <50e> DW_AT_high_pc : 0x57 + <3><516>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -558,14 +558,14 @@ Contents of the .debug_info.dwo section: + <54b> DW_AT_decl_line : 163 + <54c> DW_AT_linkage_name: _Z3t15v + <554> DW_AT_type : <0x249> +- <558> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <558> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x11\): 0 + <559> DW_AT_high_pc : 0x5d + <561> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) + <563> DW_AT_GNU_all_tail_call_sites: 1 + <563> DW_AT_sibling : <0x58d> + <2><567>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <568> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <568> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x12\): 0 + <569> DW_AT_high_pc : 0x53 + <3><571>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -598,7 +598,7 @@ Contents of the .debug_info.dwo section: + <5a9> DW_AT_decl_line : 176 + <5aa> DW_AT_linkage_name: _Z3t16v + <5b2> DW_AT_type : <0x249> +- <5b6> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <5b6> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x13\): 0 + <5b7> DW_AT_high_pc : 0x13 + <5bf> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -610,14 +610,14 @@ Contents of the .debug_info.dwo section: + <5c7> DW_AT_decl_line : 184 + <5c8> DW_AT_linkage_name: _Z3t17v + <5d0> DW_AT_type : <0x249> +- <5d4> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <5d4> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x14\): 0 + <5d5> DW_AT_high_pc : 0x5f + <5dd> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) + <5df> DW_AT_GNU_all_call_sites: 1 + <5df> DW_AT_sibling : <0x612> + <2><5e3>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <5e4> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <5e4> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x15\): 0 + <5e5> DW_AT_high_pc : 0x59 + <3><5ed>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -627,7 +627,7 @@ Contents of the .debug_info.dwo section: + <5f2> DW_AT_type : <0x53d> + <5f6> DW_AT_location : 2 byte block: 91 6f \(DW_OP_fbreg: -17\) + <3><5f9>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <5fa> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <5fa> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x16\): 0 + <5fb> DW_AT_high_pc : 0x50 + <4><603>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -646,14 +646,14 @@ Contents of the .debug_info.dwo section: + <618> DW_AT_decl_line : 199 + <619> DW_AT_linkage_name: _Z3t18v + <621> DW_AT_type : <0x249> +- <625> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <625> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x17\): 0 + <626> DW_AT_high_pc : 0x5f + <62e> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) + <630> DW_AT_GNU_all_tail_call_sites: 1 + <630> DW_AT_sibling : <0x67a> + <2><634>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <635> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <635> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x18\): 0 + <636> DW_AT_high_pc : 0x55 + <3><63e>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -663,7 +663,7 @@ Contents of the .debug_info.dwo section: + <643> DW_AT_type : <0x53d> + <647> DW_AT_location : 2 byte block: 91 6f \(DW_OP_fbreg: -17\) + <3><64a>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <64b> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <64b> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x19\): 0 + <64c> DW_AT_high_pc : 0x4c + <4><654>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -673,7 +673,7 @@ Contents of the .debug_info.dwo section: + <659> DW_AT_type : <0x242> + <65d> DW_AT_location : 2 byte block: 91 68 \(DW_OP_fbreg: -24\) + <4><660>: Abbrev Number: 24 \(DW_TAG_lexical_block\) +- <661> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <661> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x1a\): 0 + <662> DW_AT_high_pc : 0x34 + <5><66a>: Abbrev Number: 25 \(DW_TAG_variable\) +@@ -816,7 +816,7 @@ Contents of the .debug_info.dwo section: + <7d3> DW_AT_decl_line : 32 + <7d4> DW_AT_linkage_name: _Z4t16av + <7dd> DW_AT_type : <0x7c4> +- <7e1> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <7e1> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: (0x)?0\): 0 + <7e2> DW_AT_high_pc : 0x13 + <7ea> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -909,7 +909,7 @@ Contents of the .debug_info.dwo section: + <908> DW_AT_decl_file : 1 + <909> DW_AT_decl_line : 70 + <90a> DW_AT_linkage_name: _Z4f13iv +- <913> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <913> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: (0x)?0\): 0 + <914> DW_AT_high_pc : 0x6 + <91c> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -917,7 +917,7 @@ Contents of the .debug_info.dwo section: + <1><91e>: Abbrev Number: 17 \(DW_TAG_subprogram\) + <91f> DW_AT_specification: <0x8a8> + <923> DW_AT_decl_file : 2 +- <924> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <924> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x1\): 0 + <925> DW_AT_high_pc : 0xf + <92d> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -936,7 +936,7 @@ Contents of the .debug_info.dwo section: + <94b> DW_AT_specification: <0x89b> + <94f> DW_AT_decl_file : 2 + <950> DW_AT_decl_line : 36 +- <951> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <951> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x2\): 0 + <952> DW_AT_high_pc : 0x20 + <95a> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -956,7 +956,7 @@ Contents of the .debug_info.dwo section: + <978> DW_AT_decl_line : 72 + <979> DW_AT_linkage_name: _Z3f10v + <981> DW_AT_type : <0x8b7> +- <985> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <985> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x3\): 0 + <986> DW_AT_high_pc : 0xb + <98e> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -968,7 +968,7 @@ Contents of the .debug_info.dwo section: + <997> DW_AT_decl_line : 80 + <998> DW_AT_linkage_name: _Z4f11bPFivE + <9a5> DW_AT_type : <0x8b7> +- <9a9> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <9a9> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x4\): 0 + <9aa> DW_AT_high_pc : 0x14 + <9b2> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -990,7 +990,7 @@ Contents of the .debug_info.dwo section: + <9d3> DW_AT_specification: <0x8e0> + <9d7> DW_AT_decl_file : 2 + <9d8> DW_AT_decl_line : 88 +- <9d9> DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ <9d9> DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x5\): 0 + <9da> DW_AT_high_pc : 0xf + <9e2> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -1013,7 +1013,7 @@ Contents of the .debug_info.dwo section: + DW_AT_decl_line : 96 + DW_AT_linkage_name: _Z3f13v + DW_AT_type : <0xa1e> +- DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x6\): 0 + DW_AT_high_pc : 0xb + DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -1028,7 +1028,7 @@ Contents of the .debug_info.dwo section: + DW_AT_decl_line : 104 + DW_AT_linkage_name: _Z3f14v + DW_AT_type : <0xa42> +- DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x7\): 0 + DW_AT_high_pc : 0xb + DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -1049,7 +1049,7 @@ Contents of the .debug_info.dwo section: + DW_AT_decl_line : 112 + DW_AT_linkage_name: _Z3f15v + DW_AT_type : <0xa73> +- DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x8\): 0 + DW_AT_high_pc : 0xb + DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +@@ -1070,7 +1070,7 @@ Contents of the .debug_info.dwo section: + DW_AT_decl_line : 127 + DW_AT_linkage_name: _Z3f18i + DW_AT_type : <0xa42> +- DW_AT_low_pc :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing ++ DW_AT_low_pc :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing + \(index: 0x9\): 0 + DW_AT_high_pc : 0x44 + DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) +diff -rupN --no-dereference binutils-2.40/gas/testsuite/gas/riscv/variant_cc.d binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc.d +--- binutils-2.40/gas/testsuite/gas/riscv/variant_cc.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc.d 2023-03-09 14:52:07.346233370 +0100 +@@ -3,7 +3,7 @@ + #readelf: -Ws - if {[is_elf_format]} then { -diff -rupN --no-dereference binutils-2.39/gold/main.cc binutils-2.39-new/gold/main.cc ---- binutils-2.39/gold/main.cc 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gold/main.cc 2022-10-30 12:41:34.547023785 +0100 -@@ -290,16 +290,6 @@ main(int argc, char** argv) - elapsed.sys / 1000, (elapsed.sys % 1000) * 1000, - elapsed.wall / 1000, (elapsed.wall % 1000) * 1000); + #... +-[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+func ++[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+func[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+UND[ ]+foo ++[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+foo[ ]+\[VARIANT_CC\] + #... +diff -rupN --no-dereference binutils-2.40/gas/testsuite/gas/riscv/variant_cc-set.d binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc-set.d +--- binutils-2.40/gas/testsuite/gas/riscv/variant_cc-set.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc-set.d 2023-03-09 14:52:07.346233370 +0100 +@@ -3,11 +3,11 @@ + #readelf: -Ws --#if defined(HAVE_MALLINFO2) -- struct mallinfo2 m = mallinfo2(); -- fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"), -- program_name, static_cast(m.arena)); --#elif defined(HAVE_MALLINFO) -- struct mallinfo m = mallinfo(); -- fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"), -- program_name, static_cast(m.arena)); --#endif -- - File_read::print_stats(); - Archive::print_stats(); - Lib_group::print_stats(); -diff -rupN --no-dereference binutils-2.39/gprofng/testsuite/lib/display-lib.exp binutils-2.39-new/gprofng/testsuite/lib/display-lib.exp ---- binutils-2.39/gprofng/testsuite/lib/display-lib.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/gprofng/testsuite/lib/display-lib.exp 2022-10-30 12:41:34.560023785 +0100 -@@ -96,9 +96,8 @@ proc run_display_test { dir cflags gprof - perror "comparison of results in $dir failed" - } else { - send_log "compilation of test program in $dir failed:\n$out\n" -- perror "compilation of test program in $dir failed" -+ unsupported "compilation of test program in $dir failed" - } -- fail $dir - return 0 - } - pass $dir -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/bti-plt-5.d binutils-2.39-new/ld/testsuite/ld-aarch64/bti-plt-5.d ---- binutils-2.39/ld/testsuite/ld-aarch64/bti-plt-5.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/bti-plt-5.d 2022-10-30 12:41:34.563023785 +0100 -@@ -8,21 +8,4 @@ + #... +-[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+foo ++[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+foo[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+bar + #... +-[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+alias_foo ++[ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+alias_foo[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]alias_bar + #... +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/bti-plt-5.d binutils-2.40-new/ld/testsuite/ld-aarch64/bti-plt-5.d +--- binutils-2.40/ld/testsuite/ld-aarch64/bti-plt-5.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/bti-plt-5.d 2023-03-09 14:52:07.338233469 +0100 +@@ -8,7 +8,7 @@ [^:]*: *file format elf64-.*aarch64 Disassembly of section \.plt: - --[0-9a-f]+ <.*>: --.*: d503245f bti c --.*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! --.*: 90000090 adrp x16, 410000 <.*> --.*: f9421611 ldr x17, \[x16, #1064\] --.*: 9110a210 add x16, x16, #0x428 --.*: d61f0220 br x17 --.*: d503201f nop --.*: d503201f nop -- --[0-9a-f]+ <.*>: --.*: d503245f bti c --.*: 90000090 adrp x16, 410000 <.*> --.*: f9421a11 ldr x17, \[x16, #1072\] --.*: 9110c210 add x16, x16, #0x430 --.*: d61f0220 br x17 --.*: d503201f nop -+#... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/erratum843419-far-full.d binutils-2.39-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d ---- binutils-2.39/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2022-10-30 12:41:34.561023785 +0100 -@@ -8,7 +8,7 @@ Disassembly of section \.text: ++#pass + [0-9a-f]+ <.*>: + .*: d503245f bti c + .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/erratum843419-far-full.d binutils-2.40-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d +--- binutils-2.40/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d 2023-03-09 14:52:07.339233456 +0100 +@@ -5,7 +5,7 @@ + #... + Disassembly of section \.text: +- ++#pass 0*400000 <_start>: ... -- 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+0x7ffedff0> -+ 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+.*> - 401000: f9000042 str x2, \[x2\] - 401004: d2800002 mov x2, #0x0 // #0 - 401008: 14000004 b 401018 -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/farcall-bl-plt.d binutils-2.39-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d ---- binutils-2.39/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2022-10-30 12:41:34.561023785 +0100 -@@ -10,7 +10,7 @@ Disassembly of section .plt: + 400ffc: 90400000 adrp x0, 80400000 <__bss_end__\+0x7ffedff0> +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/farcall-bl-plt.d binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d +--- binutils-2.40/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d 2023-03-09 14:52:07.339233456 +0100 +@@ -7,7 +7,7 @@ + #... + Disassembly of section .plt: +- ++#pass .* <.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, .* <.*> - .*: .* add x16, x16, #.* - .*: d61f0200 br x16 - ... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/farcall-b-plt.d binutils-2.39-new/ld/testsuite/ld-aarch64/farcall-b-plt.d ---- binutils-2.39/ld/testsuite/ld-aarch64/farcall-b-plt.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/farcall-b-plt.d 2022-10-30 12:41:34.561023785 +0100 -@@ -10,7 +10,7 @@ Disassembly of section .plt: + .*: .* adrp x16, .* <__foo_veneer\+.*> +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/farcall-b-plt.d binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-b-plt.d +--- binutils-2.40/ld/testsuite/ld-aarch64/farcall-b-plt.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-b-plt.d 2023-03-09 14:52:07.339233456 +0100 +@@ -7,7 +7,7 @@ + #... + Disassembly of section .plt: +- ++#pass .* <.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, .* <.*> - .*: .* add x16, x16, #.* - .*: d61f0200 br x16 - ... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-1.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-1.d 2022-10-30 12:41:34.564023785 +0100 -@@ -2,8 +2,6 @@ + .*: .* adrp x16, .* <__foo_veneer\+.*> +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1.d 2023-03-09 14:52:07.339233456 +0100 +@@ -2,8 +2,4 @@ #ld: -shared --hash-style=sysv #objdump: -dw @@ -157,13 +454,11 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d binu -0+(130|1a0|1c8) : -#... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt> -+.*: file format elf.+aarch64.* #pass -+ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-1-local.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-1-local.d 2022-10-30 12:41:34.564023785 +0100 -@@ -2,8 +2,6 @@ +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1-local.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1-local.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1-local.d 2023-03-09 14:52:07.342233420 +0100 +@@ -2,8 +2,4 @@ #ld: -shared --hash-style=sysv #objdump: -dw @@ -171,487 +466,222 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local. -0+(110|180|1a0) <(__GI_)?foo>: -#... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0)@plt> -+.*: file format elf.+aarch64.* #pass -+ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/ifunc-21.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-21.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-21.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-21.d 2022-10-30 12:41:34.562023785 +0100 -@@ -11,16 +11,4 @@ Contents of section .text: +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-21.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-21.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-21.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-21.d 2023-03-09 14:52:07.339233456 +0100 +@@ -6,6 +6,7 @@ + # Ensure the .got.plt slot used is correct + + .*: file format elf64-(little|big)aarch64 ++#pass + + 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]+ .* -- --Disassembly of section .text: -- --.* : -- .*: d65f03c0 ret -- --.* : -- .*: 90000080 adrp x0, 10000 <.*> -- .*: .* ldr x0, \[x0, #(672|704)\] -- .*: d65f03c0 ret -- - #pass -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/ifunc-22.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-22.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-22.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-22.d 2022-10-30 12:41:34.562023785 +0100 -@@ -6,6 +6,4 @@ +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-22.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-22.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-22.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-22.d 2023-03-09 14:52:07.340233444 +0100 +@@ -6,6 +6,7 @@ # Ensure GOT is populated correctly in static link .*: 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.39/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-2.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-2.d 2022-10-30 12:41:34.564023785 +0100 -@@ -3,9 +3,3 @@ + + Contents of section \.got: + [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .* +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2.d 2023-03-09 14:52:07.342233420 +0100 +@@ -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.39/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-2-local.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2-local.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-2-local.d 2022-10-30 12:41:34.563023785 +0100 -@@ -3,9 +3,3 @@ + #pass +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2-local.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2-local.d 2023-03-09 14:52:07.342233420 +0100 +@@ -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.39/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-3a.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-3a.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-3a.d 2022-10-30 12:41:34.564023785 +0100 -@@ -4,7 +4,3 @@ + #pass +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-3a.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-3a.d 2023-03-09 14:52:07.342233420 +0100 +@@ -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.39/ld/testsuite/ld-aarch64/ifunc-7c.d binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-7c.d ---- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-7c.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/ifunc-7c.d 2022-10-30 12:41:34.564023785 +0100 -@@ -6,14 +6,4 @@ + #pass +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-7c.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-7c.d +--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-7c.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-7c.d 2023-03-09 14:52:07.340233444 +0100 +@@ -6,7 +6,7 @@ # Check if adrp and ldr have been relocated correctly. .*: file format elf.+aarch64.* - -- --Disassembly of section \.text: -- --[0-9a-f]+ : -- [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, .+\] -+#... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d binutils-2.39-new/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d ---- binutils-2.39/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2022-10-30 12:41:34.547023785 +0100 -@@ -11,7 +11,7 @@ - 0x.+ \(PLTRELSZ\) \s+.+ \(bytes\) - 0x.+ \(PLTREL\) \s+RELA - 0x.+ \(JMPREL\) \s+0x.+ -- 0x.+ \(BIND_NOW\) \s+ -+ 0x.+ \(FLAGS\) \s+BIND_NOW - 0x.+ \(FLAGS_1\) \s+ Flags: NOW - 0x.+ \(NULL\) \s+ 0x0 ++#pass + + Disassembly of section \.text: -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.39-new/ld/testsuite/ld-aarch64/variant_pcs-now.d ---- binutils-2.39/ld/testsuite/ld-aarch64/variant_pcs-now.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/variant_pcs-now.d 2022-10-30 12:41:34.546023785 +0100 -@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri - Num: Value Size Type Bind Vis Ndx Name - 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND - 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef -- 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef -- 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc -+ 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\] -+ 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\] - 4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def -- 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def -+ 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\] - 6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-now.d +--- binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-now.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-now.d 2023-03-09 14:52:07.340233444 +0100 +@@ -5,6 +5,7 @@ + #readelf: -rsW + + Relocation section '\.rela\.plt' at offset 0x11000 contains 12 entries: ++#pass + Offset Info Type Symbol's Value Symbol's Name \+ Addend + 0000000000009020 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 f_base_global_default_undef \+ 0 + 0000000000009028 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000000000 f_spec_global_default_undef \+ 0 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-r.d +--- binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-r.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-r.d 2023-03-09 14:52:07.340233444 +0100 +@@ -4,6 +4,7 @@ + #readelf: -rsW - Symbol table '\.symtab' contains 35 entries: -@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr - 7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.* - 8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.* - 9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o -- 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local -- 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc -+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .* -+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .* - 12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc - 13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local - 14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x - 15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o -- 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2 -- 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc -+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .* -+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .* - 18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc - 19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2 - 20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x - 21: 0000000000000000 0 FILE LOCAL DEFAULT ABS - 22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC -- 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def -+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .* - 24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc - 25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def - 26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ -- 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc -+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .* - 28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x - 29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef -- 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef -- 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc -+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .* -+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .* - 32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def -- 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def -+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .* - 34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.39-new/ld/testsuite/ld-aarch64/variant_pcs-r.d ---- binutils-2.39/ld/testsuite/ld-aarch64/variant_pcs-r.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/variant_pcs-r.d 2022-10-30 12:41:34.546023785 +0100 -@@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr - 2: 0000000000000000 0 SECTION LOCAL DEFAULT 3.* - 3: 0000000000000000 0 SECTION LOCAL DEFAULT 4.* - 4: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o -- 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local -- 6: 0000000000000000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc -+ 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT .* -+ 6: 0000000000000000 0 IFUNC LOCAL DEFAULT .* - 7: 0000000000000000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc - 8: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 f_base_local - 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 \$x - 10: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o -- 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2 -- 12: 0000000000000038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc -+ 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT .* -+ 12: 0000000000000038 0 IFUNC LOCAL DEFAULT .* - 13: 0000000000000038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc - 14: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2 - 15: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 \$x - 16: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef -- 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef -- 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_def -+ 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .* -+ 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN .* - 19: 0000000000000000 0 IFUNC GLOBAL HIDDEN 1 f_base_global_hidden_ifunc -- 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc -+ 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT .* - 21: 0000000000000000 0 NOTYPE GLOBAL HIDDEN 1 f_base_global_hidden_def -- 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc -+ 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN .* - 23: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def -- 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def -+ 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .* - 25: 0000000000000000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.39-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d ---- binutils-2.39/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2022-10-30 12:41:34.547023785 +0100 -@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri - Num: Value Size Type Bind Vis Ndx Name - 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND - 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef -- 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef -- 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc -+ 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\] -+ 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\] - 4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def -- 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def -+ 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\] - 6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc + Relocation section '\.rela\.text' at offset .* contains 24 entries: ++#pass + Offset Info Type Symbol's Value Symbol's Name \+ Addend + 0000000000000000 000000180000011b R_AARCH64_CALL26 0000000000000000 f_spec_global_default_def \+ 0 + 0000000000000004 000000110000011b R_AARCH64_CALL26 0000000000000000 f_spec_global_default_undef \+ 0 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d +--- binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2023-03-09 14:52:07.340233444 +0100 +@@ -5,6 +5,7 @@ + #readelf: -rsW - Symbol table '\.symtab' contains 35 entries: -@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr - 7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.* - 8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.* - 9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o -- 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local -- 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc -+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .* -+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .* - 12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc - 13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local - 14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x - 15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o -- 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2 -- 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc -+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .* -+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .* - 18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc - 19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2 - 20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x - 21: 0000000000000000 0 FILE LOCAL DEFAULT ABS - 22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC -- 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def -+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .* - 24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc - 25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def - 26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ -- 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc -+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .* - 28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x - 29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef -- 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef -- 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc -+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .* -+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .* - 32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def -- 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def -+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .* - 34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elf/binutils.exp binutils-2.39-new/ld/testsuite/ld-elf/binutils.exp ---- binutils-2.39/ld/testsuite/ld-elf/binutils.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elf/binutils.exp 2022-10-30 12:41:34.555023785 +0100 + Relocation section '\.rela\.plt' at offset 0x11000 contains 12 entries: ++#pass + Offset Info Type Symbol's Value Symbol's Name \+ Addend + 0000000000009020 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 f_base_global_default_undef \+ 0 + 0000000000009028 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000000000 f_spec_global_default_undef \+ 0 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/binutils.exp binutils-2.40-new/ld/testsuite/ld-elf/binutils.exp +--- binutils-2.40/ld/testsuite/ld-elf/binutils.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-elf/binutils.exp 2023-03-09 14:52:07.343233407 +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*-*-linux*"] } { ++if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-*"] } { lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3" } set tls_opts { -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elf/compress.exp binutils-2.39-new/ld/testsuite/ld-elf/compress.exp ---- binutils-2.39/ld/testsuite/ld-elf/compress.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elf/compress.exp 2022-10-30 12:41:34.548023785 +0100 -@@ -167,8 +167,8 @@ if { [regexp_diff tmpdir/$test.out $srcd - - set test_name "Link with zlib compressed debug output 1" - set test normal --send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n" --set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"] -+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n" -+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"] - if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then { - send_log "$got\n" - fail "$test_name" -@@ -176,8 +176,8 @@ if { [lindex $got 0] != 0 || ![string ma - - set test_name "Link with zlib compressed debug output 2" - set test zlibnormal --send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n" --set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"] -+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n" -+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"] - if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then { - send_log "$got\n" - fail "$test_name" -@@ -203,8 +203,8 @@ if { [regexp_diff tmpdir/$test.out $srcd - - set test_name "Link with zlib-gnu compressed debug output 1" - set test gnunormal --send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n" --set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"] -+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n" -+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"] - if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then { - send_log "$got\n" - fail "$test_name" -@@ -230,8 +230,8 @@ if { [regexp_diff tmpdir/$test.out $srcd - - set test gabinormal - set test_name "Link with zlib-gabi compressed debug output 1" --send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n" --set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"] -+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n" -+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"] - if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then { - send_log "$got\n" - fail "$test_name" -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elf/linux-x86.exp binutils-2.39-new/ld/testsuite/ld-elf/linux-x86.exp ---- binutils-2.39/ld/testsuite/ld-elf/linux-x86.exp 2022-07-25 09:04:15.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elf/linux-x86.exp 2022-10-30 12:41:34.557023785 +0100 -@@ -73,6 +73,10 @@ run_ld_link_tests [list \ - ] \ - ] +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/dwarf.exp binutils-2.40-new/ld/testsuite/ld-elf/dwarf.exp +--- binutils-2.40/ld/testsuite/ld-elf/dwarf.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-elf/dwarf.exp 2023-03-09 14:52:07.348233346 +0100 +@@ -29,6 +29,10 @@ if ![is_elf_format] { + return + } -+if { [istarget "i?86-*-*"] } { ++if { [istarget riscv*-*-*] } then { + return +} + + # Skip targets where -shared is not supported + + if ![check_shared_lib_support] { +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/linux-x86.exp binutils-2.40-new/ld/testsuite/ld-elf/linux-x86.exp +--- binutils-2.40/ld/testsuite/ld-elf/linux-x86.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-elf/linux-x86.exp 2023-03-09 14:52:07.343233407 +0100 +@@ -72,7 +72,7 @@ run_ld_link_tests [list \ + "x86-feature-1" \ + ] \ + ] +- ++return run_cc_link_tests [list \ [list \ "Build indirect-extern-access-1.so" \ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elf/pr26580-3.out binutils-2.39-new/ld/testsuite/ld-elf/pr26580-3.out ---- binutils-2.39/ld/testsuite/ld-elf/pr26580-3.out 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elf/pr26580-3.out 2022-10-30 12:41:34.554023785 +0100 -@@ -1,2 +1,2 @@ - library not loaded --alignment 1 -+alignment . -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elf/shared.exp binutils-2.39-new/ld/testsuite/ld-elf/shared.exp ---- binutils-2.39/ld/testsuite/ld-elf/shared.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elf/shared.exp 2022-10-30 12:41:34.554023785 +0100 -@@ -1576,18 +1576,6 @@ if { [istarget *-*-linux*] +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/shared.exp binutils-2.40-new/ld/testsuite/ld-elf/shared.exp +--- binutils-2.40/ld/testsuite/ld-elf/shared.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-elf/shared.exp 2023-03-09 14:52:07.344233395 +0100 +@@ -1151,6 +1151,8 @@ 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" ] \ ++] ++set disabled_run_tests [list \ + [list "pr26580-3" \ + "" "" \ + {pr26580-a.c} "pr26580-3" "pr26580-3.out" "-fcommon" "c" "" \ +@@ -1578,6 +1580,8 @@ if { [istarget *-*-linux*] "pr22393-2-static" \ "pass.out" \ ] \ -- [list \ -- "Run pr21964-4" \ -- "" \ -- "" \ -- {pr21964-4.c} \ -- "pr21964-4" \ -- "pass.out" \ -- "" \ -- "" \ -- "" \ -- "-ldl" \ -- ] \ - ] ++ ] ++ set disabled_run_ld_link_exec_tests [list \ + [list \ + "Run pr21964-4" \ + "" \ +@@ -1656,7 +1660,7 @@ proc mix_pic_and_non_pic {xfails cflags + } } -@@ -1669,6 +1657,7 @@ if [istarget "sparc*-*-*"] { - if { ([istarget "*-*-linux*"] - || [istarget "*-*-nacl*"] - || [istarget "*-*-gnu*"]) -+ && ![istarget "aarch64*-*-*"] && ![istarget "arm*-*-*"] - && ![istarget "mips*-*-*"] } { - run_ld_link_tests [list \ - [list \ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-elf/tls.exp binutils-2.39-new/ld/testsuite/ld-elf/tls.exp ---- binutils-2.39/ld/testsuite/ld-elf/tls.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-elf/tls.exp 2022-10-30 12:41:34.554023785 +0100 -@@ -32,6 +32,9 @@ if { !([istarget *-*-linux*] - if { ![check_compiler_available] } { +-mix_pic_and_non_pic [list "arm*-*-*" "aarch64*-*-*"] "" "" "pr19719" ++mix_pic_and_non_pic [list "arm*-*-*"] "" "" "pr19719" + mix_pic_and_non_pic [] "-fPIE" "-pie" "pr19719pie" + + set AFLAGS_PIE "" +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/tls.exp binutils-2.40-new/ld/testsuite/ld-elf/tls.exp +--- binutils-2.40/ld/testsuite/ld-elf/tls.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-elf/tls.exp 2023-03-09 14:52:07.348233346 +0100 +@@ -28,6 +28,10 @@ if { !([istarget *-*-linux*] return } -+if { [istarget s390x*-*-*] } { + ++if { [istarget riscv*-*-*] } then { + return +} - - # This target requires extra GAS options when building PIC/PIE code. - set AFLAGS_PIC "" -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-gc/pr13683.d binutils-2.39-new/ld/testsuite/ld-gc/pr13683.d ---- binutils-2.39/ld/testsuite/ld-gc/pr13683.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-gc/pr13683.d 2022-10-30 12:41:34.557023785 +0100 -@@ -2,7 +2,7 @@ - #source: dummy.s - #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o - #nm: --format=bsd --#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* -+#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* arm*-*-* - - # Note - look for both "foo" and "foo2" being defined, non-zero function symbols - -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-gc/pr19161.d binutils-2.39-new/ld/testsuite/ld-gc/pr19161.d ---- binutils-2.39/ld/testsuite/ld-gc/pr19161.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-gc/pr19161.d 2022-10-30 12:41:34.557023785 +0100 -@@ -2,7 +2,7 @@ - #source: dummy.s - #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o - #nm: --format=bsd --#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* -+#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* arm*-*-* - #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-* - - #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-i386/i386.exp binutils-2.39-new/ld/testsuite/ld-i386/i386.exp ---- binutils-2.39/ld/testsuite/ld-i386/i386.exp 2022-07-26 09:13:10.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/i386.exp 2022-10-30 12:41:34.560023785 +0100 -@@ -1077,15 +1077,6 @@ if { [isnative] - "pr18900.out" \ - ] \ - [list \ -- "Run pr19031" \ -- "$NOPIE_LDFLAGS tmpdir/pr19031.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { pr19031b.S pr19031c.c } \ -- "pr19031" \ -- "pr19031.out" \ -- "$NOPIE_CFLAGS" \ -- ] \ -- [list \ - "Run got1" \ - "$NOPIE_LDFLAGS tmpdir/got1d.so" \ - "-Wa,-mx86-used-note=yes" \ -@@ -1137,7 +1128,9 @@ if { [isnative] - ] \ - ] - -- undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" -+ if { ! [istarget i686*-*-*] } { -+ undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" -+ } - undefined_weak "-fPIE" "$NOPIE_LDFLAGS" - undefined_weak "-fPIE" "-pie" - undefined_weak "-fPIE" "-z nodynamic-undefined-weak $NOPIE_LDFLAGS" -@@ -1201,7 +1194,7 @@ if { [isnative] - ] \ - ] - -- if { [istarget "i?86-*-linux*"] } { -+ if { [istarget "i?86-*-linux*"] && ! [istarget i686*-*-*] } { - run_cc_link_tests [list \ - [list \ - "Build pr21168.so with -z ibtplt" \ -@@ -1299,22 +1292,6 @@ if { [isnative] - {} \ - "pr28875.so" \ - ] \ -- [list \ -- "Build pr28875" \ -- "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr28875.so" \ -- "$NOPIE_CFLAGS" \ -- { pr28875b.c } \ -- {{error_output "pr28875.err"}} \ -- "pr28875" \ -- ] \ -- [list \ -- "Build pr21997-1" \ -- "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \ -- "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ -- { pr21997-1b.c } \ -- {{error_output "pr21997-1.err"}} \ -- "pr21997-1" \ -- ] \ - ] - - run_ld_link_exec_tests [list \ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-i386/plt-main.rd binutils-2.39-new/ld/testsuite/ld-i386/plt-main.rd ---- binutils-2.39/ld/testsuite/ld-i386/plt-main.rd 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-i386/plt-main.rd 2022-10-30 12:41:34.550023785 +0100 -@@ -1,4 +1 @@ --#failif --#... --[0-9a-f ]+R_386_JUMP_SLOT +0+ +bar - #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.39-new/ld/testsuite/ld-ifunc/ifunc.exp ---- binutils-2.39/ld/testsuite/ld-ifunc/ifunc.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-ifunc/ifunc.exp 2022-10-30 12:41:34.553023785 +0100 -@@ -39,6 +39,8 @@ if { ![is_elf_format] || ![supports_gnu_ ++ + # Check to see if the C compiler works. + if { ![check_compiler_available] } { + return +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/i386.exp binutils-2.40-new/ld/testsuite/ld-i386/i386.exp +--- binutils-2.40/ld/testsuite/ld-i386/i386.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-i386/i386.exp 2023-03-09 14:52:07.344233395 +0100 +@@ -595,7 +595,7 @@ proc undefined_weak {cflags ldflags} { + pass $testname + } + } +- ++return + # Must be Linux native with the C compiler + if { [isnative] + && [istarget "i?86-*-linux*"] +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.40-new/ld/testsuite/ld-ifunc/ifunc.exp +--- binutils-2.40/ld/testsuite/ld-ifunc/ifunc.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-ifunc/ifunc.exp 2023-03-09 14:52:07.345233383 +0100 +@@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_ || [istarget nds32*-*-*] || [istarget nios2-*-*] || [istarget or1k-*-*] + || [istarget powerpc*-*-*] -+ || [istarget ppc*-*-*] || [istarget score*-*-*] || [istarget sh*-*-*] || [istarget tic6x-*-*] -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/lto.exp binutils-2.39-new/ld/testsuite/ld-plugin/lto.exp ---- binutils-2.39/ld/testsuite/ld-plugin/lto.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/lto.exp 2022-10-30 12:41:34.558023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/lto.exp binutils-2.40-new/ld/testsuite/ld-plugin/lto.exp +--- binutils-2.40/ld/testsuite/ld-plugin/lto.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/lto.exp 2023-03-09 14:52:07.338233469 +0100 @@ -31,8 +31,8 @@ if { ![check_plugin_api_available] set saved_CFLAGS "$CFLAGS_FOR_TARGET" @@ -663,606 +693,429 @@ diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/lto.exp binutil proc restore_notify { } { global saved_CFLAGS -@@ -481,23 +481,6 @@ set lto_link_elf_tests [list \ +@@ -480,6 +480,9 @@ set lto_link_elf_tests [list \ + "libpr28879a.so" \ "c++" \ ] \ ++] ++ ++set disabled_lto_link_elf_tests [list \ [list \ -- "Build libpr28879b.so" \ -- "-shared -Wl,--no-as-needed tmpdir/libpr28879a.so" \ -- "-O2 -fpic" \ -- {dummy.c} \ -- {} \ -- "libpr28879b.so" \ -- ] \ -- [list \ -- "Build pr28879" \ -- "-Wl,--no-as-needed tmpdir/libpr28879b.so -Wl,-rpath-link,." \ -- "-O0 -flto -D_GLIBCXX_ASSERTIONS" \ -- {pr28879b.cc} \ -- {} \ -- "pr28879" \ -- "c++" \ -- ] \ -- [list \ - "Build libpr28849a.so" \ - "-shared" \ - "-fPIC" \ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-10.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-10.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-10.d 2022-10-30 12:41:32.245023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-10.d 2022-10-30 12:41:34.543023785 +0100 + "Build libpr28879b.so" \ + "-shared -Wl,--no-as-needed tmpdir/libpr28879a.so" \ +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-10.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-10.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-10.d 2023-03-09 14:51:59.900322791 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-10.d 2023-03-09 14:52:07.336233493 +0100 @@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/libtext.a \[@.* not claimed #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY #... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-11.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-11.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-11.d 2022-10-30 12:41:32.245023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-11.d 2022-10-30 12:41:34.543023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-11.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-11.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-11.d 2023-03-09 14:51:59.900322791 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-11.d 2023-03-09 14:52:07.336233493 +0100 @@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY -Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?text' Resolution: LDPR_PREVAILING_.* #... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-12.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-12.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-12.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-12.d 2022-10-30 12:41:34.546023785 +0100 -@@ -1,6 +1,6 @@ - #... --.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DEF --.*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY --.*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY --.*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY -+.*: symbol `.*unc' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.* -+.*: symbol `.*unc1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY -+.*: symbol `.*unc2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY -+.*: symbol `.*unc3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY - #pass -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-16.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-16.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-16.d 2022-10-30 12:41:32.246023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-16.d 2022-10-30 12:41:34.543023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-16.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-16.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-16.d 2023-03-09 14:51:59.900322791 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-16.d 2023-03-09 14:52:07.336233493 +0100 @@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY #... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-17.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-17.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-17.d 2022-10-30 12:41:32.246023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-17.d 2022-10-30 12:41:34.543023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-17.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-17.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-17.d 2023-03-09 14:51:59.901322779 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-17.d 2023-03-09 14:52:07.336233493 +0100 @@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY #... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-18.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-18.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-18.d 2022-10-30 12:41:32.246023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-18.d 2022-10-30 12:41:34.544023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-18.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-18.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-18.d 2023-03-09 14:51:59.901322779 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-18.d 2023-03-09 14:52:07.336233493 +0100 @@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/libtext.a \[@.* not claimed #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY #... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-19.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-19.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-19.d 2022-10-30 12:41:32.247023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-19.d 2022-10-30 12:41:34.544023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-19.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-19.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-19.d 2023-03-09 14:51:59.901322779 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-19.d 2023-03-09 14:52:07.338233469 +0100 @@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/ hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY -Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?text' Resolution: LDPR_PREVAILING_.* #... hook called: cleanup. #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-8.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-8.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-8.d 2022-10-30 12:41:32.249023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-8.d 2022-10-30 12:41:34.544023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-8.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-8.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-8.d 2023-03-09 14:51:59.903322756 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-8.d 2023-03-09 14:52:07.337233481 +0100 @@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY #... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin-9.d binutils-2.39-new/ld/testsuite/ld-plugin/plugin-9.d ---- binutils-2.39/ld/testsuite/ld-plugin/plugin-9.d 2022-10-30 12:41:32.250023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin-9.d 2022-10-30 12:41:34.544023785 +0100 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-9.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-9.d +--- binutils-2.40/ld/testsuite/ld-plugin/plugin-9.d 2023-03-09 14:51:59.903322756 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-9.d 2023-03-09 14:52:07.337233481 +0100 @@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[ hook called: claim_file tmpdir/text.o \[@0/.* not claimed #... hook called: all symbols read. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY -+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.* ++Sym: '_?func' Resolution: LDPR_PREVAILING_.* Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY #... hook called: cleanup. -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-plugin/plugin.exp binutils-2.39-new/ld/testsuite/ld-plugin/plugin.exp ---- binutils-2.39/ld/testsuite/ld-plugin/plugin.exp 2022-10-30 12:41:32.250023774 +0100 -+++ binutils-2.39-new/ld/testsuite/ld-plugin/plugin.exp 2022-10-30 12:41:34.556023785 +0100 -@@ -119,7 +119,7 @@ if { $can_compile && !$failed_compile } +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin.exp binutils-2.40-new/ld/testsuite/ld-plugin/plugin.exp +--- binutils-2.40/ld/testsuite/ld-plugin/plugin.exp 2023-03-09 14:51:59.903322756 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin.exp 2023-03-09 14:52:07.342233420 +0100 +@@ -304,6 +304,7 @@ if { !$can_compile || $failed_compile } + run_ld_link_tests $plugin_tests - # I do not know why, but the underscore prefix test is going - # wrong on ppc64le targets. So override it here. --if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] } { -+if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] || [istarget *-*-*] } { - set _ "" + if { [is_elf_format] \ ++ && [istarget "x86_64-*-*"] \ + && [ld_compile $CC_FOR_TARGET $srcdir/$subdir/func1p.c tmpdir/func1p.o] \ + && [ld_compile $CC_FOR_TARGET $srcdir/$subdir/func2i.c tmpdir/func2i.o] \ + && [ld_compile $CC_FOR_TARGET $srcdir/$subdir/func3h.c tmpdir/func3h.o] } { +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.40-new/ld/testsuite/ld-powerpc/powerpc.exp +--- binutils-2.40/ld/testsuite/ld-powerpc/powerpc.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-powerpc/powerpc.exp 2023-03-09 14:52:07.345233383 +0100 +@@ -19,7 +19,7 @@ + # MA 02110-1301, USA. + # + +-if { ![istarget "powerpc*-*-*"] } { ++if { ![istarget "powerpc-*-*"] } { + return } -@@ -258,6 +258,10 @@ set plugin_lib_tests [list \ - $testobjfiles tmpdir/libempty.a $libs" "" "" "" {{ld plugin-30.d}} "main.x" ] \ - ] +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/attr-phdr.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/attr-phdr.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/attr-phdr.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/attr-phdr.d 2023-03-09 14:52:07.347233358 +0100 +@@ -12,8 +12,8 @@ Program Headers: + Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align + RISCV_ATTRIBUT .* + LOAD .* +- ++#... + Section to Segment mapping: + Segment Sections... + 00 .riscv.attributes +- 01 .text ++#pass +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d 2023-03-09 14:52:07.347233358 +0100 +@@ -8,7 +8,7 @@ + Disassembly of section \.text: -+if { [istarget "powerpc*-*-linux*"] } { -+ return -+} -+ - set plugin_extra_elf_tests [list \ - [list "plugin set symbol visibility" "-plugin $plugin_path $regclm \ - $regas $regcln -plugin-opt claim:tmpdir/func.o \ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-powerpc/group1.sym binutils-2.39-new/ld/testsuite/ld-powerpc/group1.sym ---- binutils-2.39/ld/testsuite/ld-powerpc/group1.sym 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-powerpc/group1.sym 2022-10-30 12:41:34.553023785 +0100 -@@ -1,3 +1 @@ --#... --.* 8 FUNC +GLOBAL DEFAULT \[: 4\] +1 foo + 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]+[ ]+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.40/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d 2023-03-09 14:52:07.347233358 +0100 +@@ -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]+[ ]+mv[ ]+a1,a1 #pass -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-powerpc/group3.sym binutils-2.39-new/ld/testsuite/ld-powerpc/group3.sym ---- binutils-2.39/ld/testsuite/ld-powerpc/group3.sym 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-powerpc/group3.sym 2022-10-30 12:41:34.553023785 +0100 -@@ -1,3 +1 @@ --#... --.* 4 FUNC +GLOBAL DEFAULT \[: 1\] +1 foo - #pass -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-powerpc/notoc3.d binutils-2.39-new/ld/testsuite/ld-powerpc/notoc3.d ---- binutils-2.39/ld/testsuite/ld-powerpc/notoc3.d 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-powerpc/notoc3.d 2022-10-30 12:41:34.553023785 +0100 -@@ -57,7 +57,7 @@ Disassembly of section \.text: - - .* : - .*: (02 10 40 3c|3c 40 10 02) lis r2,4098 --.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672 -+.*:.* - .*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1> - .*: (18 00 41 e8|e8 41 00 18) ld r2,24\(r1\) - .*: (.. .. ff 4b|4b ff .. ..) bl .* -@@ -72,7 +72,7 @@ Disassembly of section \.text: - - .* : - .*: (02 10 40 3c|3c 40 10 02) lis r2,4098 --.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672 -+.*:.* - .*: (.. .. ff 4b|4b ff .. ..) bl .* - .*: (00 00 00 60|60 00 00 00) nop - .*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1> -@@ -91,6 +91,6 @@ Disassembly of section \.text\.ext: - - 8000000000000000 : - 8000000000000000: (02 10 40 3c|3c 40 10 02) lis r2,4098 --8000000000000004: (00 90 42 38|38 42 90 00) addi r2,r2,-28672 -+8000000000000004:.* - 8000000000000008: (00 00 00 60|60 00 00 00) nop - 800000000000000c: (20 00 80 4e|4e 80 00 20) blr -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.39-new/ld/testsuite/ld-powerpc/powerpc.exp ---- binutils-2.39/ld/testsuite/ld-powerpc/powerpc.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-powerpc/powerpc.exp 2022-10-30 12:41:34.556023785 +0100 -@@ -89,6 +89,10 @@ proc supports_ppc64 { } { - } +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d 2023-03-09 14:52:07.347233358 +0100 +@@ -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 -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-now.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-now.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-now.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-now.d 2023-03-09 14:52:07.347233358 +0100 +@@ -22,52 +22,52 @@ Symbol table '.dynsym' contains .* + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+nocc_global_default_undef + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+UND[ ]+cc_global_default_undef ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+cc_global_default_undef[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_def ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_def + #... + Symbol table '.symtab' contains .* + .* + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local_ifunc + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local + #... +-[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local2 ++[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local2[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local2_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local2_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local2_ifunc + #... + [ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local2 + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_hidden_def ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_global_hidden_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_hidden_def + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_hidden_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_hidden_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_global_hidden_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+nocc_global_default_undef + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+UND[ ]+cc_global_default_undef ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+cc_global_default_undef[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_def ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_def + #... +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-r.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-r.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-r.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-r.d 2023-03-09 14:52:07.348233346 +0100 +@@ -38,17 +38,17 @@ Relocation section '.rela.text' at .* + Symbol table '.symtab' contains .* + .* + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local_ifunc ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local_ifunc + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local + #... +-[ ]+[0-9a-f]+:[ ]+0+0070[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local2 ++[ ]+[0-9a-f]+:[ ]+0+0070[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local2[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+0070[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local2_ifunc ++[ ]+[0-9a-f]+:[ ]+0+0070[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local2_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+0070[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local2_ifunc + #... +@@ -56,11 +56,11 @@ Symbol table '.symtab' contains .* + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+nocc_global_default_undef + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+HIDDEN[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_hidden_def ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+HIDDEN[ ]+1[ ]+cc_global_hidden_def[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+UND[ ]+cc_global_default_undef ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+cc_global_default_undef[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_ifunc ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+HIDDEN[ ]+1[ ]+nocc_global_hidden_def + #... +@@ -68,9 +68,9 @@ Symbol table '.symtab' contains .* + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_def ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_def + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+HIDDEN[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_hidden_ifunc ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+HIDDEN[ ]+1[ ]+cc_global_hidden_ifunc[ ]+\[VARIANT_CC\] + #... +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-shared.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-shared.d +--- binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-shared.d 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-shared.d 2023-03-09 14:52:07.348233346 +0100 +@@ -22,52 +22,52 @@ Symbol table '.dynsym' contains .* + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+nocc_global_default_undef + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+UND[ ]+cc_global_default_undef ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+cc_global_default_undef[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_def ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_def + #... + Symbol table '.symtab' contains .* + .* + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local_ifunc + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local + #... +-[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local2 ++[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local2[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_local2_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_local2_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local2_ifunc + #... + [ ]+[0-9a-f]+:[ ]+0+8050[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_local2 + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_hidden_def ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_global_hidden_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_hidden_def + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_hidden_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_hidden_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+LOCAL[ ]+DEFAULT[ ]+1[ ]+cc_global_hidden_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+nocc_global_default_undef + #... +-[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+UND[ ]+cc_global_default_undef ++[ ]+[0-9a-f]+:[ ]+0+0000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+UND[ ]+cc_global_default_undef[ ]+\[VARIANT_CC\] + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_ifunc ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_ifunc[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_ifunc + #... +-[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+\[VARIANT_CC\][ ]+1[ ]+cc_global_default_def ++[ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+cc_global_default_def[ ]+\[VARIANT_CC\] + #... + [ ]+[0-9a-f]+:[ ]+0+8000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+1[ ]+nocc_global_default_def + #... +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-s390/s390.exp binutils-2.40-new/ld/testsuite/ld-s390/s390.exp +--- binutils-2.40/ld/testsuite/ld-s390/s390.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-s390/s390.exp 2023-03-09 14:52:07.345233383 +0100 +@@ -25,6 +25,7 @@ + if { !([istarget "s390-*-*"] || [istarget "s390x-*-*"]) } { + return } ++return -+if { [istarget "powerpc*-*-linux*"] } { -+ return -+} -+ # List contains test-items with 3 items followed by 2 lists: # 0:name 1:ld early options 2:ld late options 3:assembler options - # 4:filenames of assembler files 5: action and options. 6: name of output file -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-s390/s390.exp binutils-2.39-new/ld/testsuite/ld-s390/s390.exp ---- binutils-2.39/ld/testsuite/ld-s390/s390.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-s390/s390.exp 2022-10-30 12:41:34.556023785 +0100 -@@ -26,6 +26,8 @@ if { !([istarget "s390-*-*"] || [istarge - return +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-scripts/crossref.exp binutils-2.40-new/ld/testsuite/ld-scripts/crossref.exp +--- binutils-2.40/ld/testsuite/ld-scripts/crossref.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-scripts/crossref.exp 2023-03-09 14:52:07.345233383 +0100 +@@ -122,6 +122,7 @@ if [string match "" $exec_output] then { } + # Check cross references for ld -r +return -+ - # List contains test-items with 3 items followed by 2 lists: - # 0:name 1:ld early options 2:ld late options 3:assembler options - # 4:filenames of assembler files 5: action and options. 6: name of output file -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-scripts/crossref.exp binutils-2.39-new/ld/testsuite/ld-scripts/crossref.exp ---- binutils-2.39/ld/testsuite/ld-scripts/crossref.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-scripts/crossref.exp 2022-10-30 12:41:34.551023785 +0100 -@@ -141,6 +141,8 @@ set exec_output [prune_warnings $exec_ou - - regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output - -+setup_xfail i686*-*-* -+ - if [string match "" $exec_output] then { - pass $test3 - } else { -@@ -181,6 +183,8 @@ set exec_output [prune_warnings $exec_ou - regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output - -+setup_xfail i686*-*-* -+ - if [string match "" $exec_output] then { - pass $test6 - } else { -@@ -193,6 +197,8 @@ set exec_output [prune_warnings $exec_ou - - regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output - -+setup_xfail i686*-*-* -+ - if [string match "" $exec_output] then { - fail $test7 - } else { -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-shared/shared.exp binutils-2.39-new/ld/testsuite/ld-shared/shared.exp ---- binutils-2.39/ld/testsuite/ld-shared/shared.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-shared/shared.exp 2022-10-30 12:41:34.551023785 +0100 -@@ -36,9 +36,6 @@ if { ![istarget hppa*64*-*-hpux*] \ - && ![istarget hppa*-*-linux*] \ + if { ![ld_compile "$CC_FOR_TARGET $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" "$srcdir/$subdir/cross4.c" tmpdir/cross4.o] } { + unsupported $test3 +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-shared/shared.exp binutils-2.40-new/ld/testsuite/ld-shared/shared.exp +--- binutils-2.40/ld/testsuite/ld-shared/shared.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-shared/shared.exp 2023-03-09 14:52:07.346233370 +0100 +@@ -42,8 +42,6 @@ if { ![istarget hppa*64*-*-hpux*] \ && ![istarget i?86-*-sysv4*] \ && ![istarget i?86-*-unixware] \ -- && ![istarget i?86-*-elf*] \ + && ![istarget i?86-*-elf*] \ - && ![istarget i?86-*-linux*] \ - && ![istarget i?86-*-gnu*] \ && ![istarget *-*-nacl*] \ && ![istarget ia64-*-elf*] \ && ![istarget ia64-*-linux*] \ -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-vsb/vsb.exp binutils-2.39-new/ld/testsuite/ld-vsb/vsb.exp ---- binutils-2.39/ld/testsuite/ld-vsb/vsb.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-vsb/vsb.exp 2022-10-30 12:41:34.558023785 +0100 -@@ -123,6 +123,10 @@ if { [istarget *-*-linux*] +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-vsb/vsb.exp binutils-2.40-new/ld/testsuite/ld-vsb/vsb.exp +--- binutils-2.40/ld/testsuite/ld-vsb/vsb.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-vsb/vsb.exp 2023-03-09 14:52:07.346233370 +0100 +@@ -34,8 +34,6 @@ if { ![check_compiler_available] } { + # Square bracket expressions seem to confuse istarget. + if { ![istarget hppa*64*-*-hpux*] \ + && ![istarget hppa*-*-linux*] \ +- && ![istarget i?86-*-linux*] \ +- && ![istarget i?86-*-gnu*] \ + && ![istarget *-*-nacl*] \ + && ![istarget ia64-*-linux*] \ + && ![istarget m68k-*-linux*] \ +diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.40-new/ld/testsuite/ld-x86-64/x86-64.exp +--- binutils-2.40/ld/testsuite/ld-x86-64/x86-64.exp 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/ld/testsuite/ld-x86-64/x86-64.exp 2023-03-09 14:52:07.337233481 +0100 +@@ -786,6 +786,8 @@ proc undefined_weak {cflags ldflags} { } } -+if { [istarget "i?86-*-*"] } { -+ set support_protected "no" -+} -+ - # The test procedure. - proc visibility_test { visibility progname testname main sh1 sh2 dat args } { - global CC_FOR_TARGET -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/pr22001-1b.err binutils-2.39-new/ld/testsuite/ld-x86-64/pr22001-1b.err ---- binutils-2.39/ld/testsuite/ld-x86-64/pr22001-1b.err 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/pr22001-1b.err 2022-10-30 12:41:34.555023785 +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_(PC32|32S) against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE - #... -diff -rupN --no-dereference binutils-2.39/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.39-new/ld/testsuite/ld-x86-64/x86-64.exp ---- binutils-2.39/ld/testsuite/ld-x86-64/x86-64.exp 2022-07-26 09:13:10.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/ld-x86-64/x86-64.exp 2022-10-30 12:41:34.560023785 +0100 -@@ -1376,14 +1376,6 @@ if { [isnative] && [check_compiler_avail - "libprotected-func-2b.so" \ - ] \ - [list \ -- "Build protected-func-2 without PIE" \ -- "$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 \ - "Build libprotected-func-2c.so" \ - "-shared" \ - "-fPIC -Wa,-mx86-used-note=yes" \ -@@ -1392,14 +1384,6 @@ if { [isnative] && [check_compiler_avail - "libprotected-func-2c.so" \ - ] \ - [list \ -- "Build protected-func-2a without PIE" \ -- "$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 \ - "Build libprotected-data-1a.so" \ - "-shared -z noindirect-extern-access" \ - "-fPIC -Wa,-mx86-used-note=yes" \ -@@ -1999,103 +1983,6 @@ if { [isnative] && [check_compiler_avail - if { [istarget "x86_64-*-linux*"] \ - && ![istarget "x86_64-*-linux*-gnux32"]} { - -- run_cc_link_tests [list \ -- [list \ -- "Build plt-main with -z bndplt" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,bndplt \ -- -Wl,-z,noseparate-code,-z,max-page-size=0x200000" \ -- "-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \ -- { plt-main5.c } \ -- {{objdump {-drw} plt-main-bnd.dd}} \ -- "plt-main-bnd" \ -- ] \ -- [list \ -- "Build plt-main with PIE and -z bndplt" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \ -- -Wl,-z,bndplt,-z,noseparate-code \ -- -Wl,-z,max-page-size=0x200000" \ -- "-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \ -- { plt-main5.c } \ -- {{objdump {-drw} plt-main-bnd.dd}} \ -- "plt-main-pie-bnd" \ -- ] \ -- [list \ -- "Build plt-main with -z bndplt -z now" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,bndplt \ -- -Wl,-z,now,-z,noseparate-code,-z,max-page-size=0x200000" \ -- "-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \ -- { plt-main5.c } \ -- {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \ -- "plt-main-bnd-now" \ -- ] \ -- [list \ -- "Build plt-main with PIE and -z bndplt -z now" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \ -- -Wl,-z,bndplt,-z,now,-z,noseparate-code \ -- -Wl,-z,max-page-size=0x200000" \ -- "-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \ -- { plt-main5.c } \ -- {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \ -- "plt-main-pie-bnd-now" \ -- ] \ -- ] -- -- run_ld_link_exec_tests [list \ -- [list \ -- "Run plt-main with -z bndplt" \ -- "-Wl,--no-as-needed,-z,bndplt tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-bnd" \ -- "plt-main.out" \ -- ] \ -- [list \ -- "Run plt-main with PIE and -z bndplt" \ -- "-Wl,--no-as-needed,-z,bndplt -pie tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-pie-bnd" \ -- "plt-main.out" \ -- "-fPIC" \ -- ] \ -- [list \ -- "Run plt-main with -z bndplt -z now" \ -- "-Wl,--no-as-needed,-z,bndplt,-z,now tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-bnd-now" \ -- "plt-main.out" \ -- ] \ -- [list \ -- "Run plt-main with PIE and -z bndplt -z now" \ -- "-Wl,--no-as-needed,-z,bndplt,-z,now -pie tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-pie-bnd-now" \ -- "plt-main.out" \ -- "-fPIC" \ -- ] \ -- [list \ -- "Run pr20800" \ -- "-Wl,-z,now -pie" \ -- "-Wa,-mx86-used-note=yes" \ -- { pr20800a.S pr20800b.S } \ -- "pr20800" \ -- "pass.out" \ -- ] \ -- ] - if { [check_ifunc_attribute_available] } { - run_ld_link_exec_tests [list \ - [list \ -@@ -2128,132 +2015,6 @@ if { [isnative] && [check_compiler_avail - set pltdump {{objdump {-drw} plt-main-ibt.dd}} - set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}} - } -- run_cc_link_tests [list \ -- [list \ -- "Build plt-main with -z ibtplt" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,ibtplt \ -- -Wl,-z,noseparate-code,-z,max-page-size=0x200000" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- $pltdump \ -- "plt-main-ibt" \ -- ] \ -- [list \ -- "Build plt-main with PIE and -z ibtplt" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \ -- -Wl,-z,ibtplt,-z,noseparate-code \ -- -Wl,-z,max-page-size=0x200000" \ -- "-fPIC -Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- $pltdump \ -- "plt-main-pie-ibt" \ -- ] \ -- [list \ -- "Build plt-main with -z ibtplt -z now" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,ibtplt \ -- -Wl,-z,now,-z,noseparate-code,-z,max-page-size=0x200000" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- $pltsecdump \ -- "plt-main-ibt-now" \ -- ] \ -- [list \ -- "Build plt-main with PIE and -z ibtplt -z now" \ -- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \ -- -Wl,-z,ibtplt,-z,now,-z,noseparate-code \ -- -Wl,-z,max-page-size=0x200000" \ -- "-fPIC -Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- $pltsecdump \ -- "plt-main-pie-ibt-now" \ -- ] \ -- [list \ -- "Build libibtplt-lib.so with -z ibtplt" \ -- "-shared -Wl,-z,ibtplt,-z,noseparate-code \ -- -Wl,-z,max-page-size=0x200000" \ -- "-fPIC -Wa,-mx86-used-note=yes" \ -- { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \ -- $pltdump \ -- "libibtplt-lib.so" \ -- ] \ -- [list \ -- "Build libibtplt--now-lib.so with -z ibtplt -z now" \ -- "-shared -Wl,-z,ibtplt,-z,now,-z,noseparate-code \ -- -Wl,-z,max-page-size=0x200000" \ -- "-fPIC -Wa,-mx86-used-note=yes" \ -- { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \ -- $pltdump \ -- "libibtplt-now-lib.so" \ -- ] \ -- ] -- -- run_ld_link_exec_tests [list \ -- [list \ -- "Run plt-main with -z ibtplt" \ -- "-Wl,--no-as-needed,-z,ibtplt tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-ibt" \ -- "plt-main.out" \ -- ] \ -- [list \ -- "Run plt-main with PIE and -z ibtplt" \ -- "-Wl,--no-as-needed,-z,ibtplt -pie tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-pie-ibt" \ -- "plt-main.out" \ -- "-fPIC" \ -- ] \ -- [list \ -- "Run plt-main with -z ibtplt -z now" \ -- "-Wl,--no-as-needed,-z,ibtplt,-z,now tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-ibt-now" \ -- "plt-main.out" \ -- ] \ -- [list \ -- "Run plt-main with PIE and -z ibtplt -z now" \ -- "-Wl,--no-as-needed,-z,ibtplt,-z,now -pie tmpdir/plt-main1.o \ -- tmpdir/plt-main2.o tmpdir/plt-main3.o \ -- tmpdir/plt-main4.o tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-pie-ibt-now" \ -- "plt-main.out" \ -- "-fPIC" \ -- ] \ -- [list \ -- "Run plt-main with libibtplt-lib.so -z ibtplt" \ -- "-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \ -- tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-ibt-lib" \ -- "plt-main.out" \ -- ] \ -- [list \ -- "Run plt-main with libibtplt-lib.so -z ibtplt -z now" \ -- "-Wl,--no-as-needed,-z,ibtplt,-z,now \ -- tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \ -- "-Wa,-mx86-used-note=yes" \ -- { plt-main5.c } \ -- "plt-main-ibt-now-lib" \ -- "plt-main.out" \ -- ] \ -- ] -- - if { [check_ifunc_attribute_available] } { - run_ld_link_exec_tests [list \ - [list \ -@@ -2278,7 +2039,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" -diff -rupN --no-dereference binutils-2.39/ld/testsuite/lib/ld-lib.exp binutils-2.39-new/ld/testsuite/lib/ld-lib.exp ---- binutils-2.39/ld/testsuite/lib/ld-lib.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/ld/testsuite/lib/ld-lib.exp 2022-10-30 12:41:34.558023785 +0100 -@@ -1670,6 +1670,10 @@ proc skip_ctf_tests { } { - return 1 - } - -+ if { [istarget "i?86-*-*"] } { -+ return 1 -+ } ++return + - if [check_ctf_available] { - return 0 - } -diff -rupN --no-dereference binutils-2.39/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp binutils-2.39-new/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp ---- binutils-2.39/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp 2022-07-08 11:46:48.000000000 +0200 -+++ binutils-2.39-new/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp 2022-10-30 12:41:34.559023785 +0100 -@@ -97,9 +97,8 @@ if [is_remote host] { - set comp_output [prune_warnings [run_host_cmd "$CC_FOR_TARGET" "$CFLAGS_FOR_TARGET -gctf -fPIC -shared -o tmpdir/libctf-repeat-cu-main.so $src tmpdir/a.a tmpdir/b.a tmpdir/c.a"]] - if { $comp_output != "" } { - send_log "compilation of tmpdir/libctf-repeat-cu-main.so failed" -- perror "compilation of tmpdir/libctf-repeat-cu-main.so failed" -- fail $testname -- return $comp_output -+ unsupported "compilation of tmpdir/libctf-repeat-cu-main.so failed" -+ return 0 - } - - set comp_output [prune_warnings [run_host_cmd "$OBJDUMP" "--ctf tmpdir/libctf-repeat-cu-main.so > tmpdir/dump.out"]] + # Must be native with the C compiler + if { [isnative] && [check_compiler_available] } { + run_cc_link_tests [list \ diff --git a/SOURCES/binutils-version.patch b/SOURCES/binutils-version.patch index 01e7e41..4674f68 100644 --- a/SOURCES/binutils-version.patch +++ b/SOURCES/binutils-version.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference binutils-2.39/bfd/Makefile.am binutils-2.39-new/bfd/Makefile.am ---- binutils-2.39/bfd/Makefile.am 2022-07-08 11:46:47.000000000 +0200 -+++ binutils-2.39-new/bfd/Makefile.am 2022-10-30 12:41:21.707023724 +0100 -@@ -973,8 +973,8 @@ DISTCLEANFILES += $(BUILD_CFILES) $(BUIL +diff -rupN --no-dereference binutils-2.40/bfd/Makefile.am binutils-2.40-new/bfd/Makefile.am +--- binutils-2.40/bfd/Makefile.am 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/Makefile.am 2023-03-09 14:51:47.525462680 +0100 +@@ -988,8 +988,8 @@ DISTCLEANFILES += $(BUILD_CFILES) $(BUIL 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.39/bfd/Makefile.am binutils-2.39-new/bfd/ bfd_version_package="\"$(PKGVERSION)\"" ;\ report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ . $(srcdir)/development.sh ;\ -@@ -985,7 +985,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ +@@ -1000,7 +1000,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.39/bfd/Makefile.am binutils-2.39-new/bfd/ -e "s,@report_bugs_to@,$$report_bugs_to," \ < $(srcdir)/version.h > $@; \ echo "$${bfd_soversion}" > libtool-soversion -diff -rupN --no-dereference binutils-2.39/bfd/Makefile.in binutils-2.39-new/bfd/Makefile.in ---- binutils-2.39/bfd/Makefile.in 2022-08-05 11:53:59.000000000 +0200 -+++ binutils-2.39-new/bfd/Makefile.in 2022-10-30 12:41:21.708023724 +0100 -@@ -2443,8 +2443,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC +diff -rupN --no-dereference binutils-2.40/bfd/Makefile.in binutils-2.40-new/bfd/Makefile.in +--- binutils-2.40/bfd/Makefile.in 2023-01-14 01:00:00.000000000 +0100 ++++ binutils-2.40-new/bfd/Makefile.in 2023-03-09 14:51:47.526462669 +0100 +@@ -2470,8 +2470,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.39/bfd/Makefile.in binutils-2.39-new/bfd/ bfd_version_package="\"$(PKGVERSION)\"" ;\ report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ . $(srcdir)/development.sh ;\ -@@ -2455,7 +2455,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ +@@ -2482,7 +2482,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 f71ed9b..9eede1a 100644 --- a/SPECS/mingw-binutils.spec +++ b/SPECS/mingw-binutils.spec @@ -1,9 +1,10 @@ %global run_testsuite 1 %global mingw_build_ucrt64 1 +%define enable_new_dtags 0 Name: mingw-binutils -Version: 2.39 -Release: 2%{?dist} +Version: 2.40 +Release: 3%{?dist} Summary: Cross-compiled version of binutils for Win32 and Win64 environments License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+ @@ -43,14 +44,16 @@ Patch03: binutils-export-demangle.h.patch # order. Patch04: binutils-no-config-h-check.patch -# Purpose: Include the filename concerned in readelf error messages. This -# makes readelf's output more helpful when it is run on multiple -# input files. +# Purpose: Include the filename concerned in readelf error and warning +# messages. This helps when readelf is run with multiple +# input files or when multiple instances of readelf are +# running at the same time. # Lifetime: Permanent. This patch changes the format of readelf's output, # making it better (IMHO) but also potentially breaking tools that -# depend upon readelf's current format. Hence it remains a local -# patch. -Patch05: binutils-filename-in-error-messages.patch +# depend upon readelf's current output format. cf/ Patch07. +# It also tends to break parts of the binutils own +# testsuite. Hence the patch remains local for now. +Patch05: binutils-filename-in-readelf-messages.patch # Purpose: Disable an x86/x86_64 optimization that moves functions from the # PLT into the GOTPLT for faster access. This optimization is @@ -62,7 +65,7 @@ Patch06: binutils-revert-PLT-elision.patch # Purpose: Changes readelf so that when it displays extra information about # a symbol, this information is placed at the end of the line. -# Lifetime: Permanent. +# Lifetime: Permanent. cf/ Patch05. # FIXME: The proper fix would be to update the scripts that are expecting # a fixed output from readelf. But it seems that some of them are # no longer being maintained. @@ -72,8 +75,7 @@ Patch07: binutils-readelf-other-sym-info.patch # debug sections. # Lifetime: Permanent. # FIXME: Find related bug. Decide on permanency. -# Not needed, mingw does not have aarch64 -# Patch08: binutils-2.27-aarch64-ifunc.patch +Patch08: binutils-2.27-aarch64-ifunc.patch # Purpose: Stop the binutils from statically linking with libstdc++. # Lifetime: Permanent. @@ -98,40 +100,41 @@ Patch12: binutils-gold-mismatched-section-flags.patch # Lifetime: Permanent. Patch13: binutils-gold-warn-unsupported.patch -# Purpose: Fix testsuite failures due to the patches applied here. -# Lifetime: Permanent, but varying with each new rebase. -Patch14: binutils-testsuite-fixes.patch - # Purpose: Enable the creation of .note.gnu.property sections by the GOLD # linker for x86 binaries. -# Lifetime: Fixed in 2.38 maybe -Patch15: binutils-gold-i386-gnu-property-notes.patch +# Lifetime: Permanent. +Patch14: binutils-gold-i386-gnu-property-notes.patch # Purpose: Allow the binutils to be configured with any (recent) version of # autoconf. # Lifetime: Fixed in 2.39 (maybe ?) -Patch16: binutils-autoconf-version.patch +Patch15: binutils-autoconf-version.patch # Purpose: Stop libtool from inserting useless runpaths into binaries. # Lifetime: Who knows. -Patch17: binutils-libtool-no-rpath.patch +Patch16: 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 -# Not needed, mingw does not ship man -# Patch18: binutils-update-linker-manual.patch +Patch17: binutils-update-linker-manual.patch +%endif -# Purpose: Add a --package-metadata option to the linkers. -# Lifetime: Fixed in 2.40 -Patch19: binutils-package-metadata.patch +# Purpose: Speed up objcopy's note merging algorithm. +# Lifetime: Fixed in 2.41 +Patch18: binutils-objcopy-note-merge-speedup.patch -# Purpose: Stop the assembler from generating DIE information for zero-sized functions. -# Lifetime: Fixed in 2.40 -Patch20: binutils-gas-dwarf-skip-empty-functions.patch +# # Purpose: Fix testsuite failures due to the patches applied here. +# # Lifetime: Permanent, but varying with each new rebase. +Patch19: binutils-testsuite-fixes.patch -# Backport patch for CVE-2022-38533 -Patch21: CVE-2022-38533.patch +# Backport fix for CVE-2023-1972 +# https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c22d38baefc5a7a1e1f5cdc9dbb556b1f0ec5c57 +Patch20: CVE-2023-1972.patch +# Backport fix for https://sourceware.org/bugzilla/show_bug.cgi?id=30079 +# https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=b7eab2a9d4f4e92692daf14b09fc95ca11b72e30 +Patch21: binutils-gdb.git-b7eab2a9d4f4e92692daf14b09fc95ca11b72e30.patch BuildRequires: make BuildRequires: gcc @@ -464,6 +467,25 @@ rm -rf %{buildroot}%{_mandir}/man1/* %changelog +* Wed Jun 14 2023 Sandro Mani - 2.40-3 +- Backport fix for Backport fix for + https://sourceware.org/bugzilla/show_bug.cgi?id=30079 + +* Fri Apr 14 2023 Sandro Mani - 2.40-2 +- Backport fix for CVE-2023-1972 + +* Thu Mar 09 2023 Sandro Mani - 2.40-1 +- Update to 2.40 + +* Tue Mar 07 2023 Sandro Mani - 2.39-5 +- Backport patch for CVE-2023-25587 + +* Thu Jan 19 2023 Fedora Release Engineering - 2.39-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 03 2023 Sandro Mani - 2.39-3 +- Backport patch for CVE-2022-4285 + * Sun Oct 30 2022 Sandro Mani - 2.39-2 - Backport patch for CVE-2022-38533