https://sourceware.org/bugzilla/show_bug.cgi?id=16428
Bug ID: 16428
Summary: autoconf tests don't terminate on ix86-linux-gnu with
-static -fPIE -pie on glibc-2.18 based systems
Product: binutils
Version: 2.24
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: doko at debian dot org
$ 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]
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]
gold complains about the combination of the options
$ gcc -fuse-ld=gold -fPIE -pie -static conftest.c
/usr/bin/ld.gold: fatal error: -pie and -static are incompatible
collect2: error: ld returned 1 exit status
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils