Created attachment 293429 [details] build.log Relevant output: libtool: link: s390x-ibm-linux-gnu-gcc -shared .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o .libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o .libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o .libs/simple.o .libs/compress.o .libs/verilog.o .libs/elf64-s390.o .libs/elf64.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o .libs/dwarf1.o .libs/elf32-s390.o .libs/elf32.o .libs/elf64-gen.o .libs/elf32-gen.o .libs/plugin.o .libs/cpu-s390.o .libs/cpu-plugin.o .libs/trad-core.o .libs/archive64.o -Wl,--as-needed -L/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd/../libiberty/pic -liberty -ldl -lz -Wl,-O1 -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed -Wl,-soname -Wl,libbfd-2.21.1.so -o .libs/libbfd-2.21.1.so /var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd/../libiberty/pic/libiberty.a(cplus-dem.o): In function `cplus_demangle_set_style': cplus-dem.c:(.text+0x13ea): relocation truncated to fit: R_390_GOT12 against symbol `current_demangling_style' defined in .data section in /var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd/../libiberty/pic/libiberty.a(cplus-dem.o) /var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd/../libiberty/pic/libiberty.a(cplus-dem.o): In function `cplus_demangle': cplus-dem.c:(.text+0x1c60): relocation truncated to fit: R_390_GOT12 against symbol `current_demangling_style' defined in .data section in /var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd/../libiberty/pic/libiberty.a(cplus-dem.o) collect2: ld returned 1 exit status make[4]: *** [libbfd.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build' make: *** [all] Error 2
This patch fixes it: http://permalink.gmane.org/gmane.comp.gnu.binutils/54435
i've queued that change in our 2.22 patchset: http://sources.gentoo.org/gentoo/src/patchsets/binutils/2.22/40_all_binutils-2.22-s390x-PIC.patch?rev=1.1 and i've followed up on the upstream ml: http://sourceware.org/ml/binutils/2011-07/msg00197.html http://sourceware.org/ml/binutils/2011-12/msg00036.html thanks !