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 1960667 - binutils: Less corruption with weak symbols in dynamic links on ppc64le
Summary: binutils: Less corruption with weak symbols in dynamic links on ppc64le
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: binutils
Version: 9.0
Hardware: ppc64le
OS: Unspecified
high
medium
Target Milestone: beta
: ---
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On: 1960730
Blocks: 1958224
TreeView+ depends on / blocked
 
Reported: 2021-05-14 14:27 UTC by Florian Weimer
Modified: 2021-12-07 21:38 UTC (History)
3 users (show)

Fixed In Version: binutils-2.35.2-4.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1960730 (view as bug list)
Environment:
Last Closed: 2021-12-07 21:35:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2021-05-14 14:27:34 UTC
Would it be possible to backport this upstream commit?

Without it, recent bison built on ppc64le will not run on glibc 2.34 because undefined weak symbols get corrupted during dynamic linking (and gnulib contains such symbols for libpthread references).

commit b293661219c36e72acb80502a86b51160bb88cfd
Author: Alan Modra <amodra>
Date:   Mon May 3 10:03:06 2021 +0930

    PPC: ensure_undef_dynamic on weak undef only in plt
    
    It's slightly weird to have a call to a weak function not protected by
    a test of that function being non-NULL, but the non-NULL test might be
    covered by a test of another function.  For example:
      if (func1)
        {
          func1 ();
          func2 ();
        }
    where func2 is known to exist if func1 exists.
    
            * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
            weak undefined symols that only appear on PLT relocs.
            * elf64-ppc.c (allocate_dynrelocs): Likewise.


It would be nice to backport this soon, so that we can rebuild affected packages with the new binutils.

Comment 1 Nick Clifton 2021-05-18 14:57:17 UTC
Fixed in binutils-2.35.2-4.el9_0_0


Note You need to log in before you can comment on or make changes to this bug.