[PATCH/RFA] SH TLS support (Revised)
kaz Kojima
kkojima@rr.iij4u.or.jp
Wed Oct 9 15:11:00 GMT 2002
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
More information about the Binutils
mailing list