Package: gcc-6
Version: 6.2.0-3

--

Hi,
I've got an issue close to this one
: https://sourceware.org/bugzilla/show_bug.cgi?id=16428
(unstable)debian@vm81:~$ cat conftest.c 
int main() { return 0; }
(unstable)debian@vm81:~$ gcc -fPIE -pie -static conftest1.c
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginT.o: relocation 
R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a 
shared object
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(libc-start.o): 
relocation R_X86_64_32 against undefined symbol `_dl_starting_up' can not be 
used when making a shared object; recompile with -fPIC
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(check_fds.o): 
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(libc-tls.o): 
relocation R_X86_64_32S against undefined symbol `_dl_static_dtv' can not be 
used when making a shared object; recompile with -fPIC
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(elf-init.o): 
relocation R_X86_64_32 against undefined symbol `__preinit_array_end' can not 
be used when making a shared object; recompile with -fPIC
...

Though, this does not happen on Ubuntu Yakkety which also uses gcc-6 
(6.2.0-3ubuntu11).
It happens on amd64 (not i386 nor ppc64el from my tests).


F.

Reply via email to