From 8d62883ca6790745094dd0b377b8a2a900baa542 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Fri, 26 Sep 2025 13:37:54 +0000 Subject: [PATCH] import CS gcc-toolset-15-binutils-2.44-3.el9 --- .gcc-toolset-15-binutils.metadata | 1 + .gitignore | 2 +- .../binutils-2.19.50.0.1-output-format.sed | 0 .../binutils-2.27-aarch64-ifunc.patch | 0 .../binutils-aarch64-small-plt0.patch | 0 .../binutils-autoconf-version.patch | 0 ...ils-disable-gcs-report-dynamic-tests.patch | 0 .../binutils-disable-gcs-report-dynamic.patch | 0 ...ls-do-not-link-with-static-libstdc++.patch | 0 .../binutils-export-demangle.h.patch | 0 .../binutils-fix-ar-test.patch | 0 .../binutils-gold-empty-dwp.patch | 0 ...inutils-gold-i386-gnu-property-notes.patch | 0 ...binutils-gold-ignore-execstack-error.patch | 0 ...nutils-gold-mismatched-section-flags.patch | 0 .../binutils-gold-pack-relative-relocs.patch | 0 .../binutils-gold-warn-unsupported.patch | 0 .../binutils-libtool-lib64.patch | 0 .../binutils-libtool-no-rpath.patch | 0 .../binutils-no-config-h-check.patch | 0 .../binutils-revert-PLT-elision.patch | 0 .../binutils-riscv-testsuite-fixes.patch | 0 .../binutils-suppress-ld-align-tests.patch | 0 .../binutils-testsuite-fixes.patch | 0 .../binutils-version.patch | 0 binutils.spec => SPECS/binutils.spec | 39 +--- binutils-LTO-restore-wrapper-symbol.patch | 154 --------------- binutils-gcc-10-fixes.patch | 180 ------------------ binutilscompare | 70 ------- gating.yaml | 14 -- plans/.gitkeep | 0 plans/build-gating.fmf | 25 --- rpminspect.yaml | 16 -- sources | 1 - 34 files changed, 11 insertions(+), 491 deletions(-) create mode 100644 .gcc-toolset-15-binutils.metadata rename binutils-2.19.50.0.1-output-format.sed => SOURCES/binutils-2.19.50.0.1-output-format.sed (100%) rename binutils-2.27-aarch64-ifunc.patch => SOURCES/binutils-2.27-aarch64-ifunc.patch (100%) rename binutils-aarch64-small-plt0.patch => SOURCES/binutils-aarch64-small-plt0.patch (100%) rename binutils-autoconf-version.patch => SOURCES/binutils-autoconf-version.patch (100%) rename binutils-disable-gcs-report-dynamic-tests.patch => SOURCES/binutils-disable-gcs-report-dynamic-tests.patch (100%) rename binutils-disable-gcs-report-dynamic.patch => SOURCES/binutils-disable-gcs-report-dynamic.patch (100%) rename binutils-do-not-link-with-static-libstdc++.patch => SOURCES/binutils-do-not-link-with-static-libstdc++.patch (100%) rename binutils-export-demangle.h.patch => SOURCES/binutils-export-demangle.h.patch (100%) rename binutils-fix-ar-test.patch => SOURCES/binutils-fix-ar-test.patch (100%) rename binutils-gold-empty-dwp.patch => SOURCES/binutils-gold-empty-dwp.patch (100%) rename binutils-gold-i386-gnu-property-notes.patch => SOURCES/binutils-gold-i386-gnu-property-notes.patch (100%) rename binutils-gold-ignore-execstack-error.patch => SOURCES/binutils-gold-ignore-execstack-error.patch (100%) rename binutils-gold-mismatched-section-flags.patch => SOURCES/binutils-gold-mismatched-section-flags.patch (100%) rename binutils-gold-pack-relative-relocs.patch => SOURCES/binutils-gold-pack-relative-relocs.patch (100%) rename binutils-gold-warn-unsupported.patch => SOURCES/binutils-gold-warn-unsupported.patch (100%) rename binutils-libtool-lib64.patch => SOURCES/binutils-libtool-lib64.patch (100%) rename binutils-libtool-no-rpath.patch => SOURCES/binutils-libtool-no-rpath.patch (100%) rename binutils-no-config-h-check.patch => SOURCES/binutils-no-config-h-check.patch (100%) rename binutils-revert-PLT-elision.patch => SOURCES/binutils-revert-PLT-elision.patch (100%) rename binutils-riscv-testsuite-fixes.patch => SOURCES/binutils-riscv-testsuite-fixes.patch (100%) rename binutils-suppress-ld-align-tests.patch => SOURCES/binutils-suppress-ld-align-tests.patch (100%) rename binutils-testsuite-fixes.patch => SOURCES/binutils-testsuite-fixes.patch (100%) rename binutils-version.patch => SOURCES/binutils-version.patch (100%) rename binutils.spec => SPECS/binutils.spec (97%) delete mode 100644 binutils-LTO-restore-wrapper-symbol.patch delete mode 100644 binutils-gcc-10-fixes.patch delete mode 100644 binutilscompare delete mode 100644 gating.yaml delete mode 100644 plans/.gitkeep delete mode 100644 plans/build-gating.fmf delete mode 100644 rpminspect.yaml delete mode 100644 sources diff --git a/.gcc-toolset-15-binutils.metadata b/.gcc-toolset-15-binutils.metadata new file mode 100644 index 0000000..f4e8be5 --- /dev/null +++ b/.gcc-toolset-15-binutils.metadata @@ -0,0 +1 @@ +cfe831ced246f5ac617fc194310812e0119634ba SOURCES/binutils-with-gold-2.44.tar.xz diff --git a/.gitignore b/.gitignore index ec38058..526904e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/binutils-with-gold-2.44.tar.xz +SOURCES/binutils-with-gold-2.44.tar.xz diff --git a/binutils-2.19.50.0.1-output-format.sed b/SOURCES/binutils-2.19.50.0.1-output-format.sed similarity index 100% rename from binutils-2.19.50.0.1-output-format.sed rename to SOURCES/binutils-2.19.50.0.1-output-format.sed diff --git a/binutils-2.27-aarch64-ifunc.patch b/SOURCES/binutils-2.27-aarch64-ifunc.patch similarity index 100% rename from binutils-2.27-aarch64-ifunc.patch rename to SOURCES/binutils-2.27-aarch64-ifunc.patch diff --git a/binutils-aarch64-small-plt0.patch b/SOURCES/binutils-aarch64-small-plt0.patch similarity index 100% rename from binutils-aarch64-small-plt0.patch rename to SOURCES/binutils-aarch64-small-plt0.patch diff --git a/binutils-autoconf-version.patch b/SOURCES/binutils-autoconf-version.patch similarity index 100% rename from binutils-autoconf-version.patch rename to SOURCES/binutils-autoconf-version.patch diff --git a/binutils-disable-gcs-report-dynamic-tests.patch b/SOURCES/binutils-disable-gcs-report-dynamic-tests.patch similarity index 100% rename from binutils-disable-gcs-report-dynamic-tests.patch rename to SOURCES/binutils-disable-gcs-report-dynamic-tests.patch diff --git a/binutils-disable-gcs-report-dynamic.patch b/SOURCES/binutils-disable-gcs-report-dynamic.patch similarity index 100% rename from binutils-disable-gcs-report-dynamic.patch rename to SOURCES/binutils-disable-gcs-report-dynamic.patch diff --git a/binutils-do-not-link-with-static-libstdc++.patch b/SOURCES/binutils-do-not-link-with-static-libstdc++.patch similarity index 100% rename from binutils-do-not-link-with-static-libstdc++.patch rename to SOURCES/binutils-do-not-link-with-static-libstdc++.patch diff --git a/binutils-export-demangle.h.patch b/SOURCES/binutils-export-demangle.h.patch similarity index 100% rename from binutils-export-demangle.h.patch rename to SOURCES/binutils-export-demangle.h.patch diff --git a/binutils-fix-ar-test.patch b/SOURCES/binutils-fix-ar-test.patch similarity index 100% rename from binutils-fix-ar-test.patch rename to SOURCES/binutils-fix-ar-test.patch diff --git a/binutils-gold-empty-dwp.patch b/SOURCES/binutils-gold-empty-dwp.patch similarity index 100% rename from binutils-gold-empty-dwp.patch rename to SOURCES/binutils-gold-empty-dwp.patch diff --git a/binutils-gold-i386-gnu-property-notes.patch b/SOURCES/binutils-gold-i386-gnu-property-notes.patch similarity index 100% rename from binutils-gold-i386-gnu-property-notes.patch rename to SOURCES/binutils-gold-i386-gnu-property-notes.patch diff --git a/binutils-gold-ignore-execstack-error.patch b/SOURCES/binutils-gold-ignore-execstack-error.patch similarity index 100% rename from binutils-gold-ignore-execstack-error.patch rename to SOURCES/binutils-gold-ignore-execstack-error.patch diff --git a/binutils-gold-mismatched-section-flags.patch b/SOURCES/binutils-gold-mismatched-section-flags.patch similarity index 100% rename from binutils-gold-mismatched-section-flags.patch rename to SOURCES/binutils-gold-mismatched-section-flags.patch diff --git a/binutils-gold-pack-relative-relocs.patch b/SOURCES/binutils-gold-pack-relative-relocs.patch similarity index 100% rename from binutils-gold-pack-relative-relocs.patch rename to SOURCES/binutils-gold-pack-relative-relocs.patch diff --git a/binutils-gold-warn-unsupported.patch b/SOURCES/binutils-gold-warn-unsupported.patch similarity index 100% rename from binutils-gold-warn-unsupported.patch rename to SOURCES/binutils-gold-warn-unsupported.patch diff --git a/binutils-libtool-lib64.patch b/SOURCES/binutils-libtool-lib64.patch similarity index 100% rename from binutils-libtool-lib64.patch rename to SOURCES/binutils-libtool-lib64.patch diff --git a/binutils-libtool-no-rpath.patch b/SOURCES/binutils-libtool-no-rpath.patch similarity index 100% rename from binutils-libtool-no-rpath.patch rename to SOURCES/binutils-libtool-no-rpath.patch diff --git a/binutils-no-config-h-check.patch b/SOURCES/binutils-no-config-h-check.patch similarity index 100% rename from binutils-no-config-h-check.patch rename to SOURCES/binutils-no-config-h-check.patch diff --git a/binutils-revert-PLT-elision.patch b/SOURCES/binutils-revert-PLT-elision.patch similarity index 100% rename from binutils-revert-PLT-elision.patch rename to SOURCES/binutils-revert-PLT-elision.patch diff --git a/binutils-riscv-testsuite-fixes.patch b/SOURCES/binutils-riscv-testsuite-fixes.patch similarity index 100% rename from binutils-riscv-testsuite-fixes.patch rename to SOURCES/binutils-riscv-testsuite-fixes.patch diff --git a/binutils-suppress-ld-align-tests.patch b/SOURCES/binutils-suppress-ld-align-tests.patch similarity index 100% rename from binutils-suppress-ld-align-tests.patch rename to SOURCES/binutils-suppress-ld-align-tests.patch diff --git a/binutils-testsuite-fixes.patch b/SOURCES/binutils-testsuite-fixes.patch similarity index 100% rename from binutils-testsuite-fixes.patch rename to SOURCES/binutils-testsuite-fixes.patch diff --git a/binutils-version.patch b/SOURCES/binutils-version.patch similarity index 100% rename from binutils-version.patch rename to SOURCES/binutils-version.patch diff --git a/binutils.spec b/SPECS/binutils.spec similarity index 97% rename from binutils.spec rename to SPECS/binutils.spec index 46e07bc..1063e25 100644 --- a/binutils.spec +++ b/SPECS/binutils.spec @@ -5,11 +5,8 @@ %endif %global gts_ver 15 -%global gts_next %(v="%{gts_ver}"; echo $((++v))) - %{?scl_package:%global scl gcc-toolset-%{gts_ver}} %global scl_prefix gcc-toolset-%{gts_ver}- - %if %have_scl_utils BuildRequires: scl-utils-build %else @@ -27,7 +24,7 @@ Name: %{?scl_prefix}binutils # The variable %%{source} (see below) should be set to indicate which of these # origins is being used. Version: 2.44 -Release: 7%{?dist} +Release: 3%{?dist} License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later URL: https://sourceware.org/binutils @@ -151,7 +148,7 @@ URL: https://sourceware.org/binutils # Bootstrapping: Set this to 1 to build the binutils with the system gcc. # Then once GTS-gcc is built and in the buildroot, reset this variable # to 0, bump the NVR and rebuild GTS-binutils. -%define bootstrapping 0 +%define bootstrapping 1 #----End of Configure Options------------------------------------------------ @@ -386,15 +383,13 @@ BuildRequires: clang compiler-rt %define gcc_package %{?scl_prefix}gcc %define gxx_package %{?scl_prefix}gcc-c++ -%define gcc_for_binutils %{_scl_root}/usr/bin/gcc -%define gxx_for_binutils %{_scl_root}/usr/bin/g++ - %if 0%{rhel} < 9 BuildRequires: %{?scl_prefix}annobin-plugin-gcc -%else -BuildRequires: %{?scl_prefix}gcc-plugin-annobin %endif +%define gcc_for_binutils %{_scl_root}/usr/bin/gcc +%define gxx_for_binutils %{_scl_root}/usr/bin/g++ + %endif BuildRequires: %{gcc_package} @@ -477,10 +472,7 @@ BuildRequires: xxhash-devel %if %have_scl_utils %{?scl:Requires:%scl_runtime} -%else -Requires: (%{?scl_prefix}runtime >= %{gts_ver} with %{?scl_prefix}runtime < %{gts_next}) %endif - %define alternatives_cmd %{!?scl:%{_sbindir}}%{?scl:%{_root_sbindir}}/alternatives %define alternatives_cmdline %{alternatives_cmd}%{?scl: --altdir %{_sysconfdir}/alternatives --admindir %{_scl_root}/var/lib/alternatives} @@ -1576,24 +1568,11 @@ exit 0 #---------------------------------------------------------------------------- %changelog -* Mon Aug 11 2025 Nick Clifton - 2.44-7 -- Remove uneeded glibc/powerpc patch. (RHEL-100160) - -* Wed Aug 06 2025 Nick Clifton - 2.44-6 -- Rebuild with glibc fixed for CVE-2025-5702. (RHEL-100160) - -* Tue Jul 22 2025 Nick Clifton - 2.44-5 -- Disable bootstrapping. (RHEL-94763) - -* Tue Jun 24 2025 Nick Clifton - 2.44-4 -- Use the new gcc-toolset-15-runtime package. (RHEL-94763) -- Add in the temporary fix for ppc64 gcc/glibc generating bad code. (RHEL-49348) - * Mon May 12 2025 Siddhesh Poyarekar - 2.44-3 - Avoid using SCL for c10s. -* Thu May 08 2025 Nick Clifton - 2.44-2 -- Switch back to using SCL macros. +* Wed May 07 2025 Siddhesh Poyarekar - 2.44-2 +- Use system alternatives even for bootstrap. -* Tue May 06 2025 Nick Clifton - 2.44-1 -- Initial commit: Import Fedora 42 binutils to GTS-15. (RHELPLAN-172023) (RHEL-81745) +* Wed Apr 09 2025 Nick Clifton - 2.44-1 +- Initial commit: Import Fedora 42 binutils to GTS-15. diff --git a/binutils-LTO-restore-wrapper-symbol.patch b/binutils-LTO-restore-wrapper-symbol.patch deleted file mode 100644 index 946e114..0000000 --- a/binutils-LTO-restore-wrapper-symbol.patch +++ /dev/null @@ -1,154 +0,0 @@ -From 3221c470f0765886a49a1a3d2ec602e4104a377b Mon Sep 17 00:00:00 2001 -From: "H.J. Lu" -Date: Fri, 2 Aug 2024 19:52:00 -0700 -Subject: [PATCH] LTO: Restore the wrapper symbol check for standard function - -Call unwrap_hash_lookup to restore the wrapper symbol check for standard -function since reference to standard function may not show up in LTO -symbol table: - -[hjl@gnu-tgl-3 pr31956-3]$ nm foo.o -00000000 T main - U __real_malloc -00000000 T __wrap_malloc -[hjl@gnu-tgl-3 pr31956-3]$ lto-dump -list foo.o -Type Visibility Size Name -function default 0 malloc -function default 0 __real_malloc -function default 3 main -function default 5 __wrap_malloc -[hjl@gnu-tgl-3 pr31956-3]$ make -gcc -O2 -flto -Wall -c -o foo.o foo.c -gcc -Wl,--wrap=malloc -O2 -flto -Wall -o x foo.o -/usr/local/bin/ld: /tmp/ccsPW0a9.ltrans0.ltrans.o: in function `main': -:(.text.startup+0xa): undefined reference to `__wrap_malloc' -collect2: error: ld returned 1 exit status -make: *** [Makefile:22: x] Error 1 -[hjl@gnu-tgl-3 pr31956-3]$ - -Also add a test to verify that the unused wrapper is removed. - - PR ld/31956 - * plugin.c (get_symbols): Restore the wrapper symbol check for - standard function. - * testsuite/ld-plugin/lto.exp: Run the malloc test and the - unused test. - * testsuite/ld-plugin/pr31956c.c: New file. - * testsuite/ld-plugin/pr31956d.c: New file. - * testsuite/ld-plugin/pr31956d.d: New file. - -Signed-off-by: H.J. Lu ---- - ld/plugin.c | 14 ++++++++++++-- - ld/testsuite/ld-plugin/lto.exp | 16 ++++++++++++++++ - ld/testsuite/ld-plugin/pr31956c.c | 19 +++++++++++++++++++ - ld/testsuite/ld-plugin/pr31956d.c | 7 +++++++ - ld/testsuite/ld-plugin/pr31956d.d | 4 ++++ - 5 files changed, 58 insertions(+), 2 deletions(-) - create mode 100644 ld/testsuite/ld-plugin/pr31956c.c - create mode 100644 ld/testsuite/ld-plugin/pr31956d.c - create mode 100644 ld/testsuite/ld-plugin/pr31956d.d - -diff --git a/ld/plugin.c b/ld/plugin.c -index 03ee9880d10..51c4765cc5b 100644 ---- a/ld/plugin.c -+++ b/ld/plugin.c -@@ -778,8 +778,18 @@ get_symbols (const void *handle, int nsyms, struct ld_plugin_symbol *syms, - { - blhe = h; - /* Check if a symbol is a wrapper symbol. */ -- if (blhe && blhe->wrapper_symbol) -- wrap_status = wrapper; -+ if (blhe) -+ { -+ if (blhe->wrapper_symbol) -+ wrap_status = wrapper; -+ else if (link_info.wrap_hash != NULL) -+ { -+ struct bfd_link_hash_entry *unwrap -+ = unwrap_hash_lookup (&link_info, (bfd *) abfd, blhe); -+ if (unwrap != NULL && unwrap != h) -+ wrap_status = wrapper; -+ } -+ } - } - else - { -diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp -index ad59e2abd61..1a8c3736307 100644 ---- a/ld/testsuite/ld-plugin/lto.exp -+++ b/ld/testsuite/ld-plugin/lto.exp -@@ -546,6 +546,22 @@ set lto_link_elf_tests [list \ - {} \ - "pr31956b" \ - ] \ -+ [list \ -+ "PR ld/31956 (malloc)" \ -+ "-Wl,--wrap=malloc" \ -+ "-O2 -flto" \ -+ {pr31956c.c} \ -+ {} \ -+ "pr31956c" \ -+ ] \ -+ [list \ -+ "PR ld/31956 (unused)" \ -+ "-Wl,--wrap=parse_line" \ -+ "-O2 -flto" \ -+ {pr31956d.c} \ -+ {{"nm" {} "pr31956d.d"}} \ -+ "pr31956d" \ -+ ] \ - [list \ - "Build pr30281.so" \ - "-shared -Wl,--version-script,pr30281.t \ -diff --git a/ld/testsuite/ld-plugin/pr31956c.c b/ld/testsuite/ld-plugin/pr31956c.c -new file mode 100644 -index 00000000000..4a46b2b49a8 ---- /dev/null -+++ b/ld/testsuite/ld-plugin/pr31956c.c -@@ -0,0 +1,19 @@ -+#include -+ -+extern void *__real_malloc (size_t); -+ -+void * -+__wrap_malloc (size_t n) -+{ -+ if (n == 0) -+ return NULL; -+ else -+ return __real_malloc (n); -+}; -+ -+int -+main (void) -+{ -+ void *ptr = malloc (30); -+ return ptr == NULL ? 1 : 0; -+} -diff --git a/ld/testsuite/ld-plugin/pr31956d.c b/ld/testsuite/ld-plugin/pr31956d.c -new file mode 100644 -index 00000000000..cb7f2d50643 ---- /dev/null -+++ b/ld/testsuite/ld-plugin/pr31956d.c -@@ -0,0 +1,7 @@ -+void __wrap_parse_line(void) {}; -+ -+int -+main (void) -+{ -+ return 0; -+} -diff --git a/ld/testsuite/ld-plugin/pr31956d.d b/ld/testsuite/ld-plugin/pr31956d.d -new file mode 100644 -index 00000000000..b579cdc7353 ---- /dev/null -+++ b/ld/testsuite/ld-plugin/pr31956d.d -@@ -0,0 +1,4 @@ -+#failif -+#... -+[0-9a-f]+ T .*parse_line -+#... --- -2.45.2 - diff --git a/binutils-gcc-10-fixes.patch b/binutils-gcc-10-fixes.patch deleted file mode 100644 index 4233279..0000000 --- a/binutils-gcc-10-fixes.patch +++ /dev/null @@ -1,180 +0,0 @@ -diff -rup binutils.orig/gold/gdb-index.cc binutils-2.34.0/gold/gdb-index.cc ---- binutils.orig/gold/gdb-index.cc 2020-07-24 09:12:29.241306445 +0100 -+++ binutils-2.34.0/gold/gdb-index.cc 2020-07-24 09:15:48.332095898 +0100 -@@ -817,7 +817,7 @@ Gdb_index_info_reader::get_qualified_nam - void - Gdb_index_info_reader::record_cu_ranges(Dwarf_die* die) - { -- unsigned int shndx; -+ unsigned int shndx = 0; - unsigned int shndx2; - - off_t ranges_offset = die->ref_attribute(elfcpp::DW_AT_ranges, &shndx); -diff -rup binutils.orig/gold/layout.cc binutils-2.34.0/gold/layout.cc ---- binutils.orig/gold/layout.cc 2020-07-24 09:12:29.243306433 +0100 -+++ binutils-2.34.0/gold/layout.cc 2020-07-24 09:15:11.464320064 +0100 -@@ -1986,7 +1986,7 @@ Layout::attach_allocated_section_to_segm - seg_flags |= os->extra_segment_flags(); - - // Check for --section-start. -- uint64_t addr; -+ uint64_t addr = 0; - bool is_address_set = parameters->options().section_start(os->name(), &addr); - - // In general the only thing we really care about for PT_LOAD -diff -rup binutils.orig/binutils/dlltool.c binutils-2.34.0/binutils/dlltool.c ---- binutils.orig/binutils/dlltool.c 2020-07-24 09:12:28.974308069 +0100 -+++ binutils-2.34.0/binutils/dlltool.c 2020-07-24 12:09:37.527121295 +0100 -@@ -1305,7 +1305,7 @@ run (const char *what, char *args) - int pid, wait_status; - int i; - const char **argv; -- char *errmsg_fmt, *errmsg_arg; -+ char *errmsg_fmt = "", *errmsg_arg = ""; - char *temp_base = choose_temp_base (); - - inform (_("run: %s %s"), what, args); -diff -rup binutils.orig/gas/config/tc-arm.c binutils-2.34.0/gas/config/tc-arm.c ---- binutils.orig/gas/config/tc-arm.c 2020-07-24 09:12:32.368287432 +0100 -+++ binutils-2.34.0/gas/config/tc-arm.c 2020-07-24 12:14:19.842360634 +0100 -@@ -28416,9 +28416,12 @@ md_apply_fix (fixS * fixP, - perform relaxation. */ - if (value == -2) - { -- newval = md_chars_to_number (buf, THUMB_SIZE); -- newval = 0xbf00; /* NOP encoding T1 */ -- md_number_to_chars (buf, newval, THUMB_SIZE); -+ if (fixP->fx_done || !seg->use_rela_p) -+ { -+ newval = md_chars_to_number (buf, THUMB_SIZE); -+ newval = 0xbf00; /* NOP encoding T1 */ -+ md_number_to_chars (buf, newval, THUMB_SIZE); -+ } - } - else - { -@@ -28631,17 +28634,14 @@ md_apply_fix (fixS * fixP, - case BFD_RELOC_ARM_GOTFUNCDESC: - case BFD_RELOC_ARM_GOTOFFFUNCDESC: - case BFD_RELOC_ARM_FUNCDESC: -- if (arm_fdpic) -- { -- if (fixP->fx_done || !seg->use_rela_p) -- md_number_to_chars (buf, 0, 4); -- } -- else -+ if (!arm_fdpic) - { - as_bad_where (fixP->fx_file, fixP->fx_line, - _("Relocation supported only in FDPIC mode")); -- } -- break; -+ break; -+ } -+ value = 0; -+ /* Fall through. */ - #endif - - case BFD_RELOC_RVA: -diff -rup binutils.orig/gas/config/tc-arm.c binutils-2.34.0/gas/config/tc-arm.c ---- binutils.orig/gas/config/tc-arm.c 2020-07-24 12:16:02.099719884 +0100 -+++ binutils-2.34.0/gas/config/tc-arm.c 2020-07-24 12:34:17.690858328 +0100 -@@ -28641,7 +28641,7 @@ md_apply_fix (fixS * fixP, - break; - } - value = 0; -- /* Fall through. */ -+ goto fred; - #endif - - case BFD_RELOC_RVA: -@@ -28653,6 +28653,7 @@ md_apply_fix (fixS * fixP, - #ifdef TE_PE - case BFD_RELOC_32_SECREL: - #endif -+ fred: - if (fixP->fx_done || !seg->use_rela_p) - #ifdef TE_WINCE - /* For WinCE we only do this for pcrel fixups. */ -diff -rup binutils.orig/gas/config/tc-arm.c binutils-2.34.0/gas/config/tc-arm.c ---- binutils.orig/gas/config/tc-arm.c 2020-07-24 13:28:26.926553452 +0100 -+++ binutils-2.34.0/gas/config/tc-arm.c 2020-07-24 13:31:57.835215763 +0100 -@@ -28416,12 +28416,8 @@ md_apply_fix (fixS * fixP, - perform relaxation. */ - if (value == -2) - { -- if (fixP->fx_done || !seg->use_rela_p) -- { -- newval = md_chars_to_number (buf, THUMB_SIZE); -- newval = 0xbf00; /* NOP encoding T1 */ -- md_number_to_chars (buf, newval, THUMB_SIZE); -- } -+ newval = 0xbf00; /* NOP encoding T1 */ -+ goto jim; - } - else - { -@@ -28432,6 +28428,7 @@ md_apply_fix (fixS * fixP, - { - newval = md_chars_to_number (buf, THUMB_SIZE); - newval |= ((value & 0x3e) << 2) | ((value & 0x40) << 3); -+ jim: - md_number_to_chars (buf, newval, THUMB_SIZE); - } - } -diff -rup binutils.orig/binutils/mclex.c binutils-2.34.0/binutils/mclex.c ---- binutils.orig/binutils/mclex.c 2020-07-24 13:28:26.297557441 +0100 -+++ binutils-2.34.0/binutils/mclex.c 2020-07-24 14:46:53.587940149 +0100 -@@ -207,7 +207,7 @@ enum_severity (int e) - static void - mc_add_keyword_ascii (const char *sz, int rid, const char *grp, rc_uint_type nv, const char *sv) - { -- unichar *usz, *usv = NULL; -+ unichar *usz = NULL, *usv = NULL; - rc_uint_type usz_len; - - unicode_from_codepage (&usz_len, &usz, sz, CP_ACP); -diff -rup binutils.orig/binutils/windmc.c binutils-2.34.0/binutils/windmc.c ---- binutils.orig/binutils/windmc.c 2020-07-24 13:28:26.279557556 +0100 -+++ binutils-2.34.0/binutils/windmc.c 2020-07-24 14:48:05.460477478 +0100 -@@ -338,7 +338,7 @@ mc_add_node_lang (mc_node *root, const m - static char * - convert_unicode_to_ACP (const unichar *usz) - { -- char *s; -+ char *s = NULL; - rc_uint_type l; - - if (! usz) -@@ -607,10 +607,10 @@ mc_generate_bin_item (mc_node_lang *n, r - else - { - rc_uint_type txt_len, l; -- char *cvt_txt; -+ char *cvt_txt = NULL; - - codepage_from_unicode( &l, n->message, &cvt_txt, n->lang->lang_info.wincp); -- if (! cvt_txt) -+ if (cvt_txt == NULL) - fatal ("Failed to convert message to language codepage.\n"); - txt_len = strlen (cvt_txt); - if (mcset_automatic_null_termination && txt_len > 0) -@@ -1107,7 +1107,7 @@ main (int argc, char **argv) - - /* Load the input file and do code page transformations to UTF16. */ - { -- unichar *u; -+ unichar *u = NULL; - rc_uint_type ul; - char *buff; - bfd_size_type flen; ---- binutils.orig/binutils/srconv.c 2020-07-24 15:37:25.847459208 +0100 -+++ binutils-2.34.0/binutils/srconv.c 2020-07-24 15:39:12.853773423 +0100 -@@ -316,6 +316,7 @@ wr_hd (struct coff_ofile *p) - struct IT_hd hd; - - hd.spare1 = 0; -+ hd.spare2 = 0; - if (bfd_get_file_flags (abfd) & EXEC_P) - hd.mt = MTYPE_ABS_LM; - else diff --git a/binutilscompare b/binutilscompare deleted file mode 100644 index 3f436e2..0000000 --- a/binutilscompare +++ /dev/null @@ -1,70 +0,0 @@ -#! /usr/bin/perl -# Compare build logs for the testsuite results regressions. -# $Id$ - -use strict; -use warnings; -use Data::Dumper; - -my $reverse=shift @ARGV if ($ARGV[0]||"") eq "-r"; - -sub readfile($) -{ -my($filename)=@_; - - local *F; - open F,$filename or die "open \"$filename\": $!"; - my $F=do { local $/; ; }; - close F or die "close \"$filename\": $!"; - return $F; -} - -sub writefile($$) -{ -my($filename,$content)=@_; - - local *F; - open F,">$filename" or die "create \"$filename\": $!"; - print F $content or die "write \"$filename\": $!"; - close F or die "close \"$filename\": $!"; -} - -local *DIR; -opendir DIR,"tests" or die "opendir: $!"; -my %arch; -for my $name (sort readdir(DIR)) { - next if $name!~/-([^-]*)[.]log$/o; - my $arch=$1; - (my $sum=$name)=~s/log$/sum/ or die; - my $i=readfile "tests/$name"; - my $o=""; - while ($i=~/\n(Native configuration is.*?Summary ===\n.*?\n)make\Q[\E/gs) { - $o.=$1; - } - # Version string differs. - $o=~s{/builddir/build/BUILD/binutils-[^/]*/+}{}g; - $o=~s{^(Version .*) 20\d{6}$}{$1}mg; - $o=~s{^(\Q../as-new\E) 20\d{6}$}{$1}mg; - $o=~s{^(build-[^/]*/ld/ld-new) 20\d{6}$}{$1}mg; - writefile "tests/$sum",$o; - push @{$arch{$arch}},$sum; -} -closedir DIR or die "closedir: $!"; - -for (values(%arch)) { - next if 2==@$_; - warn "Single element: ".${$_}[0]."\n" if 1==@$_; - die "Not 2 elements:\n".Dumper($_) if 1!=@$_; -} - -system("rm -f tests/gdbcompare-*.diff") and die; - -for my $arch (sort keys(%arch)) { - next if 2!=@{$arch{$arch}}; - # sub trans { return {"."=>0,"-"=>1}->{($_[0]=~/([-.])[^-.]+[.]\w+$/)[0]}.$_[0]; }; - sub trans { return $_[0]; }; - my @sorted=sort { my $a1=trans $a; my $b1=trans $b; ($b1 cmp $a1) * ($reverse ? -1 : +1); } @{$arch{$arch}}; - do { system $_ and die $_; } for "diff -u tests/'".$sorted[1]."' tests/'".$sorted[0]."' >tests/gdbcompare-'$arch'.sum.diff;true"; -} - -system("vim tests/gdbcompare-*.sum.diff"); diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index c394f22..0000000 --- a/gating.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- !Policy -product_versions: - - fedora-* -decision_context: bodhi_update_push_stable -subject_type: koji_build -rules: - - !PassingTestCaseRule {test_case_name: baseos-qe.koji-build.scratch-build.validation} ---- !Policy -product_versions: - - rhel-10 -decision_context: osci_compose_gate -rules: - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-fast-lane.functional} - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-slow-lane.functional} diff --git a/plans/.gitkeep b/plans/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/plans/build-gating.fmf b/plans/build-gating.fmf deleted file mode 100644 index 7866245..0000000 --- a/plans/build-gating.fmf +++ /dev/null @@ -1,25 +0,0 @@ -# -# Build/PR gating tests for binutils -# - -/common: - plan: - import: - url: https://gitlab.com/redhat/centos-stream/tests/binutils.git - ref: main - name: /plans/build-gating/common - -/kernel-rebuild: - plan: - import: - url: https://gitlab.com/redhat/centos-stream/tests/binutils.git - ref: main - name: /plans/build-gating/kernel-rebuild - -adjust+: - - because: "Plan to be ran when executed locally, or executed by CI system to gate a build or PR." - when: >- - trigger is defined - and trigger != commit - and trigger != build - enabled: false diff --git a/rpminspect.yaml b/rpminspect.yaml deleted file mode 100644 index ad1ebef..0000000 --- a/rpminspect.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- - -debuginfo: - ignore: - - /usr/lib/debug/opt/rh/gcc-toolset-15/root/usr/lib64/*.debug - - /usr/lib/debug/opt/rh/gcc-toolset-15/root/usr/lib64/bfd-plugins/*.debug - - /usr/lib/debug/opt/rh/gcc-toolset-15/root/usr/lib64/gprofng/*.debug - - /usr/lib/debug/opt/rh/gcc-toolset-15/root/usr/bin/*.debug - - /usr/lib/debug/opt/rh/gcc-toolset-15/root/usr/lib/*.debug - - /usr/lib/debug/opt/rh/gcc-toolset-15/root/usr/lib/bfd-plugins/*.debug - -specname: - primary: filename - -unicode: - exclude: ^binutils-\d+.\d+\/gas\/testsuite\/gas\/all\/multibyte.s$ diff --git a/sources b/sources deleted file mode 100644 index 0a9a57a..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (binutils-with-gold-2.44.tar.xz) = 1d8688f1b6f1bc64cfd1f82e3af05b8ace1d709d4fa819acb4d12d74e1b69b4314d98fb4281dacc9b5fa51ff7370d0249f540ec016fd137aa701502d72426301