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

Linker fails on i386 and amd64 with hardening options



Hello everybody,

I've got a bug report #478057 and I'm seeking for help. I've enabled
hardening support for slrn. The configure script tries to run

gcc -g -O2 -Wall -g -O2 -fPIC -fPIE -fstack-protector -Wformat=2 -Wextra \
  -D_FORTIFY_SOURCE=2   -Wl,-zrelro,-pie conftest.c

but this fails on i386 and amd64.

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/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-linux-gnu/4.2.3/../../../../lib64/crt1.o: could not read symbols: Bad value

Can someone of you help me? The build also fails on Sparc, but I don't
have the config.log to tell why. I expect it's the same reason.

Regards, Jörg.
-- 
“Computer games don't affect kids. If Pacman would have affected us as
children, we would now run around in darkened rooms, munching yellow
pills and listening to repetetive music.”

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP


Reply to: