Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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