------- Comment #3 from pluto at agmk dot net 2007-06-05 14:10 ------- (In reply to comment #2)
> Also you should be using -PIE when linking. hmm, it doesn't work with int main(); $ gcc -s main.c -fpie -Wl,-pie /usr/bin/ld: /usr/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/lib64/crt1.o: could not read symbols: Bad value collect2: ld returned 1 exit status huh, glibc bug, linker bug? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219