Bug 1960730 - 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 EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 35
Hardware: ppc64le
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1960667
TreeView+ depends on / blocked
 
Reported: 2021-05-14 17:01 UTC by Florian Weimer
Modified: 2022-12-13 15:23 UTC (History)
10 users (show)

Fixed In Version: binutils-2.36.1-12.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1960667
Environment:
Last Closed: 2022-12-13 15:23:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2021-05-14 17:01:12 UTC
We need this change in rawhide (Fedora 35) before we can import glibc 2.34, too.

+++ This bug was initially created as a clone of Bug #1960667 +++

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 13:33:42 UTC
Fixed in binutils-2.36.1-12.fc35

Comment 2 Ben Cotton 2021-08-10 13:43:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 3 Ben Cotton 2022-11-29 16:57:13 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Ben Cotton 2022-12-13 15:23:11 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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