This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2007 14:10:02 -0000
- Subject: [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
- References: <bug-32219-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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