This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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:

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.

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/ -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-

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

The objects are attached.

Rolf Eike Beer, emlix GmbH,
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

Attachment: cifs-objects.tar
Description: Unix tar archive

Attachment: signature.asc
Description: This is a digitally signed message part.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]