binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)

Rolf Eike Beer eb@emlix.com
Mon Dec 11 15:40:00 GMT 2017


Am Montag, 11. Dezember 2017, 16:19:07 CET schrieb Nick Clifton:
> Hi Rolf,
> 
>   Please could you open a bug report about this.  The URL is:
> 
> https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils

Will do tomorrow.

> > castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 # 
> > sparc-
> > unknown-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-
> > z,relro,-z,now -O2 -mcpu=niagara2 -pipe  -Wl,-O1 -Wl,--as-needed -o
> > cifs.upcall cifs.upcall.o data_blob.o asn1.o spnego.o -ltalloc -lkeyutils
> > -
> > lkrb5
> > collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
> 
> It will really help if you are able to provide a self-contained way to
> reproduce this bug.  Failing that, please could you capture the linker
> command line generated by sparc-unknown-linux-gnu-gcc and include it in
> the report, along with a compressed tarball of the cifs.upcall.o,
> data_blob.o, asn1.o and spnego.o  objecy files.

 /usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../sparc-unknown-linux-
gnu/bin/ld -plugin-opt=/usr/libexec/gcc/sparc-unknown-linux-gnu/6.4.0/lto-
wrapper -plugin-opt=-fresolution=/tmp/ccHxes2d.res -plugin-opt=-pass-through=-
lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-
opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m 
elf32_sparc -dynamic-linker /lib/ld-linux.so.2 -relax -pie -o cifs.upcall /
usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../lib/Scrt1.o /usr/lib/
gcc/sparc-unknown-linux-gnu/6.4.0/../../../../lib/crti.o /usr/lib/gcc/sparc-
unknown-linux-gnu/6.4.0/crtbeginS.o -L/usr/lib/gcc/sparc-unknown-linux-gnu/
6.4.0 -L/usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../sparc-unknown-
linux-gnu/lib/../lib -L/usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../
lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/sparc-unknown-linux-gnu/
6.4.0/../../../../sparc-unknown-linux-gnu/lib -L/usr/lib/gcc/sparc-unknown-
linux-gnu/6.4.0/../../.. -z relro -z now -O1 --as-needed cifs.upcall.o 
data_blob.o asn1.o spnego.o -ltalloc -lkeyutils -lkrb5 -lgcc --as-needed -
lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/
gcc/sparc-unknown-linux-gnu/6.4.0/crtendS.o /usr/lib/gcc/sparc-unknown-linux-
gnu/6.4.0/../../../../lib/crtn.o

The lto plugin part can be removed and has no effect. Again, removing the "-
pie" argument cures the crash.

The objects are attached.

Eike
-- 
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055

emlix – smart embedded open source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cifs-objects.tar
Type: application/x-tar
Size: 51200 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171211/1d2734bf/attachment.tar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 313 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20171211/1d2734bf/attachment.sig>


More information about the Binutils mailing list