Compare commits

..

44 Commits
c10s ... c9s

Author SHA1 Message Date
Nick Clifton
c2c64a690a Fix a potential illegal memory access when linking a corrupt input file.
Resolves: RHEL-130670
2025-11-26 20:08:36 +00:00
Nick Clifton
76965a7d5a Disable bootstrapping.
Resolves: RHEL-112561
2025-09-08 15:58:02 +01:00
Siddhesh Poyarekar
a3efd863e9 Bootstrap with gcc-toolset-15-devel
Key changes:

- Always use the system alternatives command, although I doubt if this
  ever even worked.
- Dropped GTS annobin
- Added the !%have_scl path

Related: RHEL-81741
2025-05-12 14:12:44 -04:00
Siddhesh Poyarekar
dac3899fc6 Keep using the system alternatives for bootstrap
The bootstrap gcc-toolset-15-binutils doesn't appear to be usable since
it fails to install with the following error:

  nothing provides /opt/rh/gcc-toolset-15/root/usr/sbin/alternatives needed by gcc-toolset-15-binutils-2.44-1.el9.x86_64

Fix that by always using the system alternatives with `--altdir`.

Related: RHEL-81741
2025-05-07 08:44:55 -04:00
nick clifton
38e629439a Edit binutils.spec: Doh - fix thinko in previous commit. ie put the "%{?scl:Requires:%scl_runtime}" in the correct place. 2025-04-10 10:02:44 +00:00
nick clifton
824c727efc Only require the scl runtime package when not bootstrapping. 2025-04-10 07:23:45 +00:00
nick clifton
72229ead44 Skip tests of objcopy of compressed debug sections with zlib compression for s390x architecture 2025-04-09 14:51:24 +00:00
nick clifton
f236751ab1 Skip (non-PIC, load offset) visibility tests for the s390x architecture 2025-04-09 13:43:50 +00:00
nick clifton
221735c642 Expect the srec2 test to fail for the i686 architecture 2025-04-09 12:12:12 +00:00
nick clifton
10e7f662c3 Do not include -std=gnu11 in CXXFLAGS 2025-04-09 11:37:24 +00:00
nick clifton
1577853ed1 Enable the patch to suppress the ld alignment tests due to kernel bugs. 2025-04-09 10:37:31 +00:00
nick clifton
f4136a412d Upload binutils-libtool-no-rpath.patch 2025-04-09 10:05:56 +00:00
nick clifton
f8276a00be Upload binutils-version.patch 2025-04-09 10:05:27 +00:00
nick clifton
9d4f861af5 Upload New File 2025-04-09 09:47:54 +00:00
nick clifton
9b096d48bc Add plans directory 2025-04-09 09:47:39 +00:00
nick clifton
5d24413766 Upload "sources" file 2025-04-09 09:47:22 +00:00
nick clifton
db28d8df80 Upload rpminspect.yaml 2025-04-09 09:46:56 +00:00
nick clifton
b8637fb249 Upload gating.yaml 2025-04-09 09:46:33 +00:00
nick clifton
fbeb702926 Upload binutilscompare 2025-04-09 09:46:02 +00:00
nick clifton
9e8912a59f Upload binutils-testsuite-fixes.patch 2025-04-09 09:45:27 +00:00
nick clifton
ab962a1061 Upload binutils-suppress-ld-align-tests.patch 2025-04-09 09:44:58 +00:00
nick clifton
3e315bfd4c Upload binutils-riscv-testsuite-fixes.patch 2025-04-09 09:44:31 +00:00
nick clifton
277c8d3c43 Upload binutils-revert-PLT-elision.patch 2025-04-09 09:44:04 +00:00
nick clifton
4a100cbb12 Upload binutils-no-config-h-check.patch 2025-04-09 09:43:37 +00:00
nick clifton
88bdde056f Upload binutils-libtool-lib64.patch 2025-04-09 09:43:10 +00:00
nick clifton
3b34c308ed Upload binutils-gold-pack-relative-relocs.patch 2025-04-09 09:42:36 +00:00
nick clifton
952c00af63 Upload binutils-gold-pack-relative-relocs.patch 2025-04-09 09:40:49 +00:00
nick clifton
759fe88851 Upload binutils-gold-mismatched-section-flags.patch 2025-04-09 09:40:21 +00:00
nick clifton
121cb5cc66 Upload binutils-gold-ignore-execstack-error.patch 2025-04-09 09:39:54 +00:00
nick clifton
f5c3fc5358 Upload binutils-gold-i386-gnu-property-notes.patch 2025-04-09 09:39:26 +00:00
nick clifton
c1c1e5bbaf Upload binutils-gold-empty-dwp.patch 2025-04-09 09:39:01 +00:00
nick clifton
7cfa89781d Upload binutils-gcc-10-fixes.patch 2025-04-09 09:38:34 +00:00
nick clifton
e74567eb24 Upload binutils-fix-ar-test.patch 2025-04-09 09:34:50 +00:00
nick clifton
71167bb8f8 Upload binutils-export-demangle.h.patch 2025-04-09 09:34:26 +00:00
nick clifton
7312ebfe6f Upload binutils-do-not-link-with-static-libstdc++.patch 2025-04-09 09:33:55 +00:00
nick clifton
b749159c0c Upload binutils-disable-gcs-report-dynamic-tests.patch 2025-04-09 09:33:21 +00:00
nick clifton
840e294278 Upload binutils-disable-gcs-report-dynamic.patch 2025-04-09 09:31:53 +00:00
nick clifton
45cf072235 Upload binutils-autoconf-version.patch 2025-04-09 09:31:28 +00:00
nick clifton
e068c48779 Upload binutils-aarch64-small-plt0.patch 2025-04-09 09:31:02 +00:00
nick clifton
3d263340da Upload binutils-LTO-restore-wrapper-symbol.patch 2025-04-09 09:30:37 +00:00
nick clifton
1c192bec0c Upload binutils-2.27-aarch64-ifunc.patch 2025-04-09 09:30:09 +00:00
nick clifton
156b4d7326 Upload binutils.spec 2025-04-09 09:29:18 +00:00
nick clifton
e108e384f0 Delete dead.package 2025-04-09 09:28:31 +00:00
nick clifton
5342501f45 Delete README.md 2025-04-09 09:28:23 +00:00
6 changed files with 20 additions and 71 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/binutils-with-gold-2.44.tar.xz
binutils-2.19.50.0.1-output-format.sed
binutils-with-gold-2.44.tar.xz

View File

@ -1,38 +0,0 @@
# Generate OUTPUT_FORMAT line for .so files from the system linker output.
# Imported from glibc/Makerules.
/ld.*[ ]-E[BL]/b f
/collect.*[ ]-E[BL]/b f
/OUTPUT_FORMAT[^)]*$/{N
s/\n[ ]*/ /
}
t o
: o
s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
t q
s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/
t s
s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
t q
d
: s
s/"//g
G
s/\n//
s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p
s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p
s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p
/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
q
: q
s/"//g
p
q
: f
s/^.*[ ]-E\([BL]\)[ ].*$/,\1/
t h
s/^.*[ ]-E\([BL]\)$/,\1/
t h
d
: h
h

View File

@ -16,8 +16,8 @@ Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
bfd/elfcode.h | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
--- binutils-with-gold-2.44.orig/bfd/elfcode.h 2025-11-25 13:08:19.115156918 +0000
+++ binutils-with-gold-2.44/bfd/elfcode.h 2025-11-25 13:10:34.050519670 +0000
--- binutils-with-gold-2.44.orig/bfd/elfcode.h 2025-11-26 15:41:49.547812496 +0000
+++ binutils-with-gold-2.44/bfd/elfcode.h 2025-11-26 15:43:23.570202970 +0000
@@ -311,7 +311,7 @@ elf_swap_ehdr_out (bfd *abfd,
/* Translate an ELF section header table entry in external format into an
ELF section header table entry in internal format. */

View File

@ -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: 8%{?dist}
Release: 5%{?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
@ -391,15 +388,16 @@ 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++
# FIXME: gcc-annobin.so is not currently built...
%undefine _annotated_build
%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}
@ -482,10 +480,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}
@ -1581,27 +1576,17 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Tue Nov 25 2025 Nick Clifton <nickc@redhat.com> - 2.44-8
- Fix a potential illegal memory access when linking a corrupt input file. (RHEL-130615)
* Wed Nov 26 2025 Nick Clifton <nickc@redhat.com> - 2.44-5
- Fix a potential illegal memory access when linking a corrupt input file. (RHEL-130670)
* Mon Aug 11 2025 Nick Clifton <nickc@redhat.com> - 2.44-7
- Remove uneeded glibc/powerpc patch. (RHEL-100160)
* Wed Aug 06 2025 Nick Clifton <nickc@redhat.com> - 2.44-6
- Rebuild with glibc fixed for CVE-2025-5702. (RHEL-100160)
* Tue Jul 22 2025 Nick Clifton <nickc@redhat.com> - 2.44-5
- Disable bootstrapping. (RHEL-94763)
* Tue Jun 24 2025 Nick Clifton <nickc@redhat.com> - 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 Sep 08 2025 Nick Clifton <nickc@redhat.com> - 2.44-4
- Disable bootstrapping. (RHEL-112561)
* Mon May 12 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.44-3
- Avoid using SCL for c10s.
* Thu May 08 2025 Nick Clifton <nickc@redhat.com> - 2.44-2
- Switch back to using SCL macros.
* Wed May 07 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.44-2
- Use system alternatives even for bootstrap.
* Tue May 06 2025 Nick Clifton <nickc@redhat.com> - 2.44-1
- Initial commit: Import Fedora 42 binutils to GTS-15. (RHELPLAN-172023) (RHEL-81745)
* Wed Apr 09 2025 Nick Clifton <nickc@redhat.com> - 2.44-1
- Initial commit: Import Fedora 42 binutils to GTS-15.

View File

@ -7,7 +7,7 @@ rules:
- !PassingTestCaseRule {test_case_name: baseos-qe.koji-build.scratch-build.validation}
--- !Policy
product_versions:
- rhel-10
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-fast-lane.functional}

View File

@ -1 +1,2 @@
SHA512 (binutils-with-gold-2.44.tar.xz) = 1d8688f1b6f1bc64cfd1f82e3af05b8ace1d709d4fa819acb4d12d74e1b69b4314d98fb4281dacc9b5fa51ff7370d0249f540ec016fd137aa701502d72426301
SHA512 (binutils-2.19.50.0.1-output-format.sed) = 2f8686b0c8af13c98cda056824c2820416f6e2d003f70b78ccf5314525b9ee3684d421dfa83e638a2d42d06ea4d4bdaf5226b64d6ec26f7ff59c44ffb2a23dd2