[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/19083] New: [s390] ld internal error in elf_s390_relocate_sectio
From: |
koriakin at 0x04 dot net |
Subject: |
[Bug ld/19083] New: [s390] ld internal error in elf_s390_relocate_section when compiling systemd |
Date: |
Wed, 07 Oct 2015 10:23:10 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19083
Bug ID: 19083
Summary: [s390] ld internal error in elf_s390_relocate_section
when compiling systemd
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: koriakin at 0x04 dot net
Target Milestone: ---
Created attachment 8684
--> https://sourceware.org/bugzilla/attachment.cgi?id=8684&action=edit
Archive exhibiting the failure when linked
When attempting to compile 31-bit systemd on s390x gentoo, build fails with:
/bin/sh ./libtool --tag=CC --mode=link s390x-ibm-linux-gnu-gcc -m31
-std=gnu99 -pipe -Wall -Wextra -Wundef -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wlogical-op -Wmissing-include-dirs -Wold-style-definition
-Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal
-Wsuggest-attribute=noreturn -Werror=missing-prototypes
-Werror=implicit-function-declaration -Werror=missing-declarations
-Werror=return-type -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn
-Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings
-Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result
-Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common
-fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden
-fstack-protector -fstack-protector-strong -fPIE --param=ssp-buffer-size=4
-ffunction-sections -fdata-sections -O2 -pipe -Wl,--gc-sections
-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -pie -module
-export-dynamic -avoid-version -shared -shrext .so.2
-Wl,--version-script=/var/tmp/portage/sys-apps/systemd-226/work/systemd-226/src/nss-myhostname/nss-myhostname.sym
-Wl,-O1 -Wl,--as-needed -o libnss_myhostname.la -rpath /usr/lib
src/nss-myhostname/nss-myhostname.lo libshared.la -lcap
/usr/lib/gcc/s390x-ibm-linux-gnu/4.9.3/../../../../s390x-ibm-linux-gnu/bin/ld:
BFD (Gentoo 2.25.1 p1.1) 2.25.1 internal error, aborting at
/var/tmp/portage/sys-devel/binutils-2.25.1-r1/work/binutils-2.25.1/bfd/elf32-s390.c
line 2621 in elf_s390_relocate_section
/usr/lib/gcc/s390x-ibm-linux-gnu/4.9.3/../../../../s390x-ibm-linux-gnu/bin/ld:
Please report this bug.
collect2: error: ld returned 1 exit status
libtool: link: s390x-ibm-linux-gnu-gcc -m31 -std=gnu99 -shared -fPIC -DPIC
src/nss-myhostname/.libs/nss-myhostname.o -Wl,--whole-archive
./.libs/libshared.a -Wl,--no-whole-archive -Wl,--as-needed -ldl -lrt -lm
-lresolv -llz4 -lcap -m31 -fstack-protector -fstack-protector-strong -O2
-Wl,--gc-sections -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-z -Wl,now
-Wl,--version-script=/var/tmp/portage/sys-apps/systemd-226/work/systemd-226/src/nss-myhostname/nss-myhostname.sym
-Wl,-O1 -pthread -Wl,-soname -Wl,libnss_myhostname.so.2 -o
.libs/libnss_myhostname.so.2
I have reduced the failing command down to the following:
ld -m elf_s390 -shared --whole-archive libshared.a --gc-sections
I have attached libshared.a. The above command with this archive exhibits the
error on the gentoo system itself as well as with a cross-linker compiled from
current git on an x86 machine.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/19083] New: [s390] ld internal error in elf_s390_relocate_section when compiling systemd,
koriakin at 0x04 dot net <=
- [Bug ld/19083] [s390] ld internal error in elf_s390_relocate_section when compiling systemd, krebbel at linux dot vnet.ibm.com, 2015/10/09
- [Bug ld/19083] [s390] ld internal error in elf_s390_relocate_section when compiling systemd, krebbel at linux dot vnet.ibm.com, 2015/10/10
- [Bug ld/19083] [s390] ld internal error in elf_s390_relocate_section when compiling systemd, krebbel at linux dot vnet.ibm.com, 2015/10/12
- [Bug ld/19083] [s390] ld internal error in elf_s390_relocate_section when compiling systemd, cvs-commit at gcc dot gnu.org, 2015/10/15
- [Bug ld/19083] [s390] ld internal error in elf_s390_relocate_section when compiling systemd, koriakin at 0x04 dot net, 2015/10/21
- [Bug ld/19083] [s390] ld internal error in elf_s390_relocate_section when compiling systemd, krebbel at linux dot vnet.ibm.com, 2015/10/22