https://sourceware.org/bugzilla/show_bug.cgi?id=16428
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Matthias Klose from comment #0) > $ cat conftest.c > int main() { return 0; } > > x86_64: > $ gcc -fPIE -pie -static conftest.c > /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o: relocation > R_X86_64_32 against `__TMC_END__' can not be used when making a shared > object; recompile with -fPIC > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o: error adding symbols: Bad > value > collect2: error: ld returned 1 exit status > > i586-linux-gnu and glibc-2.17: > $ gcc -fPIE -pie -static conftest.c > $ echo $? > 0 > [no a.out produced] a.out is there, just PT_INTERP points to /usr/lib/libc.so.1 which doesn't exist. > i586-linux-gnu and glibc-2.18: > $ gcc -fPIE -pie -static conftest.c > *** Error in `/usr/bin/ld': corrupted double-linked list: 0x09bfc260 *** > ^C > [doesn't terminate] > Before that, there were: /usr/local/bin/ld: BFD (Linux/GNU Binutils) 2.24.51.0.3.20140112 assertion fail /net/gnu-6/export/linux/src/binutils/binutils/bfd/elflink.c:13180 /usr/local/bin/ld: BFD (Linux/GNU Binutils) 2.24.51.0.3.20140112 assertion fail /net/gnu-6/export/linux/src/binutils/binutils/bfd/elflink.c:13180 /usr/local/bin/ld: BFD (Linux/GNU Binutils) 2.24.51.0.3.20140112 assertion fail /net/gnu-6/export/linux/src/binutils/binutils/bfd/elflink.c:13180 /usr/local/bin/ld: BFD (Linux/GNU Binutils) 2.24.51.0.3.20140112 assertion fail /net/gnu-6/export/linux/src/binutils/binutils/bfd/elflink.c:13180 I checked in a patch to avoid it. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils