bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/16428] New: autoconf tests don't terminate on ix86-linux-gnu wit


From: doko at debian dot org
Subject: [Bug ld/16428] New: autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems
Date: Fri, 10 Jan 2014 11:58:45 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]