Bug 1930988

Summary: Backport breaks building with LTO
Product: Red Hat Enterprise Linux 8 Reporter: Anita Zhang <the.anitazha>
Component: binutilsAssignee: Nick Clifton <nickc>
binutils sub component: system-version QA Contact: Miloš Prchlík <mprchlik>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: bstinson, carl, davide, fweimer, jwboyer, mprchlik, ohudlick, redhat-bugzilla
Version: CentOS StreamKeywords: Bugfix, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: binutils-2.30-97.el8 Doc Type: No Doc Update
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:31:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anita Zhang 2021-02-20 01:38:06 UTC
Building systemd with the binutils-2.30-90.el8.x86_64 (in mock's centos-stream-x86_64 chroot) results in the linker error shown in https://pagure.io/centos-sig-hyperscale/sig/issue/13.

This was traced to the inclusion of https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1e3b96fd6cf (backported since binutils-2.30-81.el8.x86_64 as Patch78: binutils-plugin-as-needed.patch). This was mostly reverted by binutils upstream in https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b1a92c635c1ec10fd703302ce1fc4ab3a8515a04. This should also be backported.

Comment 3 Nick Clifton 2021-03-18 15:56:48 UTC
Fixed in binutils-2.30-94.el8.

Note for QE: The fix includes some new tests in the linker testsuite.  Look for lto-19 and pr26806.

Comment 5 Nick Clifton 2021-03-23 18:54:12 UTC
Ok so the correct version is binutils-2.30-97.el8

Comment 8 Miloš Prchlík 2021-04-09 17:46:41 UTC
Verified with binutils-2.30-99.el8.

Comment 9 Robert Scheck 2021-06-13 20:35:22 UTC
Cross-filed case 02963633 at the Red Hat customer portal, because systemd-extras in EPEL 8 is affected by this bug (quite similar as reported in the initial description).

Comment 12 errata-xmlrpc 2021-11-09 19:31:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: binutils security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4364