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 1935785 - Linker garbage collection removes weak alias references (possibly "regression" of bz1804325)
Summary: Linker garbage collection removes weak alias references (possibly "regression...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: binutils
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-05 14:29 UTC by Miloš Prchlík
Modified: 2021-11-10 07:06 UTC (History)
3 users (show)

Fixed In Version: binutils-2.30-97.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:31:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4364 0 None None None 2021-11-09 19:31:50 UTC

Description Miloš Prchlík 2021-03-05 14:29:56 UTC
Description of problem:

Reproducer provided by https://bugzilla.redhat.com/show_bug.cgi?id=1804325#c0 triggers for binutils-2.30-93.el8. The bug was concerned with Developer Toolset binutils build, I assume that was caused by DTS binutils being affected while system binutils were "too old" - now when system binutils caught up, NVR-wise, is the fix needed here as well?


[root@ci-vm-10-0-137-76 ~]# rpm -q binutils
binutils-2.30-93.el8.x86_64
[root@ci-vm-10-0-137-76 ~]# cat environ.c
#include <stdio.h>

extern char **environ;
int main(int argc, char **argv) {
  printf("%p\n", environ);
  return 0;
}
[root@ci-vm-10-0-137-76 ~]# gcc -o environ environ.c && readelf -s environ | grep " _environ"
     6: 0000000000601040     8 OBJECT  WEAK   DEFAULT   24 _environ.5 (2)
[root@ci-vm-10-0-137-76 ~]# gcc -Wl,--gc-sections -o environ environ.c && readelf -s environ | grep " _environ"
[root@ci-vm-10-0-137-76 ~]# 



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nick Clifton 2021-03-09 12:10:38 UTC
The fix is not in the baseOS version of the binutils for RHEL-8.  Hence a patch is needed.

Comment 4 Nick Clifton 2021-03-19 14:25:57 UTC
Fixed in binutils-2.30-96.el8

Comment 7 Nick Clifton 2021-03-24 12:03:18 UTC
Fixed in binutils-2.30-97.el8

Comment 11 Miloš Prchlík 2021-04-01 11:10:17 UTC
Verified with binutils-2.30-98.el8

Comment 14 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


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