close 823682
notfound 823682 glibc/2.22-6
thanks

Steven Chamberlain wrote:
> $ cc -fPIE -Wl,-pie -o foo foo.c
> /usr/bin/ld: 
> /usr/lib/gcc/x86_64-kfreebsd-gnu/5/../../../x86_64-kfreebsd-gnu/crt1.o: 
> relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making 
> a shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-kfreebsd-gnu/5/../../../x86_64-kfreebsd-gnu/crt1.o: error 
> adding symbols: Bad value
> collect2: error: ld returned 1 exit status

> Is that the right file to link with, or should it rather use Scrt1.o or
> something else?

Sorry, my fault, I'd passed -pie as a linker option, but not to the
compiler.  This works - and it uses Scrt1.o instead:

$ cc -fPIE -pie -o foo foo.c

I'll file a new bug about the change needed in dpkg-dev.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org

Attachment: signature.asc
Description: Digital signature

Reply via email to