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.
Description of problem:
Compiling one testcase from gdb testsuite fails with ld internal error. This happens just on s390x.
# gcc ./gdb.base/gnu-ifunc.c /root/rpmbuild/BUILD/gdb-7.2/gdb/testsuite/gdb.base/gnu-ifunc-lib.o -g -lm
/usr/bin/ld: BFD version 2.20.51.0.2-5.11.el6 20091009 internal error, aborting at elf64-s390.c line 3193 in elf_s390_finish_dynamic_symbol
/usr/bin/ld: Please report this bug.
collect2: ld returned 1 exit status
Version-Release number of selected component (if applicable):
both RHEL6.0 (binutils-2.20.51.0.2-5.11.el6.s390x) and RHEL6.1 candidate (binutils-2.20.51.0.2-5.19.el6.s390x)
How reproducible:
always on RHEL6
Steps to Reproduce:
1. install gdb src rpm, eg. gdb-7.2-46.el6.src.rpm
2. cd /root/rpmbuild/BUILD/gdb-7.2/gdb/testsuite
3. runtest --tool=gdb gdb.base/gnu-ifunc.exp
Actual results:
gdb compile failed, /usr/bin/ld: BFD version 2.20.51.0.2-5.19.el6 20091009 internal error, aborting at elf64-s390.c line 3193 in elf_s390_finish_dynamic_symbol
Expected results:
no internal error
Additional info:
I can extract the testcase from the testsuite if you wish.
I am proposing this to 6.1 for the case there is a respin, but feel free to postpone it to 6.2 - it's not a regression and it architecture dependent.
STT_GNU_IFUNC works if it is in a shared library. Not if it is in the executable itself:
binutils-2.20.51.0.2-5.19.el6.s390x
git://sourceware.org/git/archer.git
archer-jankratochvil-ifunc
auto-s390-001.ss.eng.bos.redhat.com
/root/jkratoch/redhat/archer/gdb/testsuite
Running ./gdb.base/gnu-ifunc.exp ...
PASS: gdb.base/gnu-ifunc.exp: continue to breakpoint: break-at-call
PASS: gdb.base/gnu-ifunc.exp: p gnu_ifunc (3)
PASS: gdb.base/gnu-ifunc.exp: step
PASS: gdb.base/gnu-ifunc.exp: continue to break-at-nextcall
PASS: gdb.base/gnu-ifunc.exp: continue to breakpoint: nextcall gnu_ifunc
PASS: gdb.base/gnu-ifunc.exp: nextcall gnu_ifunc skipped
PASS: gdb.base/gnu-ifunc.exp: p gnu_ifunc executing
PASS: gdb.base/gnu-ifunc.exp: info sym gnu_ifunc executing
PASS: gdb.base/gnu-ifunc.exp: info addr gnu_ifunc
PASS: gdb.base/gnu-ifunc.exp: info sym <gnu_ifunc-address>
gdb compile failed, /usr/bin/ld: BFD version 2.20.51.0.2-5.19.el6 20091009 internal error, aborting at elf64-s390.c line 3193 in elf_s390_finish_dynamic_symbol
Comment 3RHEL Program Management
2011-04-04 01:49:57 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.