binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
Rolf Eike Beer
eb@emlix.com
Mon Dec 11 14:28:00 GMT 2017
The compiler is gcc 6.4.0. Switching to binutils 2.28.1 makes things work.
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]
compilation terminated.
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 -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
castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 #
(gdb) bt
#0 0xf7d8d4e4 in free () from /lib/libc.so.6
#1 0xf7f89f3c in objalloc_free () from /usr/lib/binutils/sparc-unknown-linux-
gnu/2.29.1/libbfd-2.29.1.so
#2 0xf7f00ea4 in ?? () from /usr/lib/binutils/sparc-unknown-linux-gnu/2.29.1/
libbfd-2.29.1.so
--
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: 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/346009f5/attachment.sig>
More information about the Binutils
mailing list