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.
The failing test checks to see if it is safe to mix PIC and non-PIC code together in the same executable. This does generally work for the S390 architecture, but PR 19719 exposes a flaw in the S390 dynamic loader for one particular special case. (Involving weak function pointers, and both shared and static code trying to resolve that pointer).
This is not really a linker bug though, so I have added a patch to mark this
particular test as an expected failure for the S390.
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, 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/RHBA-2017:1864
Description of problem: PASS: Build libpr19719b.o cp tmpdir/libpr19719b.so tmpdir/libpr19719.so s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf/pr19719a.c -o tmpdir/pr19719a.o Executing on host: sh -c {s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf/pr19719a.c -o tmpdir/pr19719a.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf/pr19719c.c -o tmpdir/pr19719c.o Executing on host: sh -c {s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf/pr19719c.c -o tmpdir/pr19719c.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] /root/rpmbuild/BUILD/binutils-2.27/ld/ld-new -m elf64_s390 -o tmpdir/pr19719 -dynamic-linker /lib/ld64.so.1 /usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/s390x-redhat-linux/4.8.5/crtbegin.o -L/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf tmpdir/libpr19719b.o tmpdir/libpr19719.so -rpath tmpdir tmpdir/pr19719a.o tmpdir/pr19719c.o -ldl -ldl -L/usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64 --start-group /usr/lib/gcc/s390x-redhat-linux/4.8.5/libgcc.a /usr/lib/gcc/s390x-redhat-linux/4.8.5/libgcc_eh.a -lc --end-group /usr/lib/gcc/s390x-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64/crtn.o Executing on host: sh -c {/root/rpmbuild/BUILD/binutils-2.27/ld/ld-new -m elf64_s390 -o tmpdir/pr19719 -dynamic-linker /lib/ld64.so.1 /usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/s390x-redhat-linux/4.8.5/crtbegin.o -L/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf tmpdir/libpr19719b.o tmpdir/libpr19719.so -rpath tmpdir tmpdir/pr19719a.o tmpdir/pr19719c.o -ldl -ldl -L/usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64 --start-group /usr/lib/gcc/s390x-redhat-linux/4.8.5/libgcc.a /usr/lib/gcc/s390x-redhat-linux/4.8.5/libgcc_eh.a -lc --end-group /usr/lib/gcc/s390x-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/s390x-redhat-linux/4.8.5/../../../../lib64/crtn.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] Running: tmpdir/pr19719 > tmpdir/pr19719.out diff tmpdir/pr19719.out /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-elf/pass.out PASS: Run pr19719 fun defined cp tmpdir/libpr19719a.so tmpdir/libpr19719.so tmpdir/pr19719 Executing on host: sh -c {tmpdir/pr19719 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] FAIL: Run pr19719 fun undefined Version-Release number of selected component (if applicable): binutils-2.27-2.base.el7.s390x (scratch build provided by Nick) gcc-4.8.5-11.el7.s390x How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: