This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Sparc32 ELF TLS fixes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]