This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH/RFA] SH TLS support (Revised)
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: rth at redhat dot com
- Cc: hp at bitrange dot com, binutils at sources dot redhat dot com
- Date: Thu, 10 Oct 2002 06:48:46 +0900
- Subject: Re: [PATCH/RFA] SH TLS support (Revised)
- References: <20021009174318.GA3435@redhat.com>
Richard Henderson <rth@redhat.com> wrote:
>> The TLS relocs should be handled as non-adjustable in
>> sh_fix_adjustable. I'm not sure about sh_force_relocation.
>> It seems that there is no handling in i386_force_relocation,
>> right?
>
> They should be marked in force_relocation (to make sure they
> get emitted to the object file), but there's no reason to
> mark them for fix_adjustable. That reduces a private symbol
> to a section-relative offset, which should work fine.
I looked that i386 implementation handles them as non-adjustable
and I thought blindly it's needed. I'll fix the patch for tc-sh.c
according to your suggestion. Thanks a lot.
Regards,
kaz