[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -st
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems |
Date: |
Tue, 14 Jan 2014 19:03:25 +0000 |
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 ld/16428] New: autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems, doko at debian dot org, 2014/01/10
- [Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems, hjl.tools at gmail dot com, 2014/01/10
- [Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems, hjl.tools at gmail dot com, 2014/01/10
- [Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems, amodra at gmail dot com, 2014/01/14
- [Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems, cvs-commit at gcc dot gnu.org, 2014/01/14
- [Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems,
hjl.tools at gmail dot com <=
- [Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems, cvs-commit at gcc dot gnu.org, 2014/01/14