[PATCH] Sparc32 ELF TLS fixes
Alan Modra
amodra@bigpond.net.au
Mon Apr 11 00:50:00 GMT 2005
On Sun, Apr 10, 2005 at 05:09:45PM -0700, David S. Miller wrote:
> code output after linking. So in the sparc case, for example,
> the c++ function _ZN3FooC1EPc starts in sr3.o with:
>
> 00000000 <_ZN3FooC1EPc>:
> 0: 05 00 00 00 sethi %hi(0), %g2
What's the reloc here?
> whereas in sr1 it starts with:
>
> 00001000 <_ZN3FooC1EPc>:
> 1000: 05 00 00 44 sethi %hi(0x11000), %g2
>
> since the symbol reference made in the sethi instruction is resolved.
Well, it should be resolved when linking to srec output too. The
problem is likely that the srec linker doesn't handle the reloc
properly. ie. The reloc special_function is buggy or missing.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list