------- Comment #13 from hjl dot tools at gmail dot com 2010-08-15 21:36 ------- (In reply to comment #12) > (In reply to comment #11) > > It works for me with -fPIC -fPIE using gcc 4.4.4 on > > Fedora 13. I got > > > > movq __restore...@gotpcrel(%rip), %rax > > movq %rax, 56(%rsp) > > > > in assembly output. It is correct. Please make sure that > > you use the current Linux binutils. > > > what do you get only with -fPIE?
The same. Please try the current Linux binutils from: http://www.kernel.org/pub/linux/devel/binutils/ It could be a linker bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286