This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: hppa-linux TLS work, extra DIR32 reloc for errno@@GLIBC_PRIVATE?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Carlos O'Donell <carlos at baldric dot uwo dot ca>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 1 Jun 2005 09:53:24 +0930
- Subject: Re: hppa-linux TLS work, extra DIR32 reloc for errno@@GLIBC_PRIVATE?
- References: <20050530175020.GJ749@baldric.uwo.ca> <20050530234831.GC2135@bubble.grove.modra.org> <20050531173932.GM749@baldric.uwo.ca>
On Tue, May 31, 2005 at 01:39:53PM -0400, Carlos O'Donell wrote:
> Is it valid to add a check for sym_type?
Sure. Use h->type.
> Since a TLS symbol shouldn't have a DIR32 reloc emitted.
> The symbol was already handled in relocate_section and emitted as a
> TPREL32.
That's a little messy. I suggest moving all the got reloc handling into
one place, probably relocate_section. Also, when optimizing tls, write
changed relocs back to the reloc array for --emit-relocs.
--
Alan Modra
IBM OzLabs - Linux Technology Centre