This is the mail archive of the binutils@sourceware.org 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][M68K] Binutils support for TLS


FWIW, just interested, having done most of the TLS
implementation for CRIS recently.

On Sun, 25 Jan 2009, Joseph S. Myers wrote:
> On Sat, 24 Jan 2009, Hans-Peter Nilsson wrote:
>
> > On Sat, 24 Jan 2009, Maxim Kuvyrkov wrote:
> > > For background reading on TLS/NPTL ABI for m68k and ColdFire see
> > > http://lists.debian.org/debian-68k/2007/11/msg00071.html .
> >
> > I don't see a non-pic IE method?  Add the GOT address for
> > non-fPIC too?
>
> Yes, the GOT is used for non-PIC as well as for PIC.

There's room for confusion here.  For the TLS offset itself, yes
that's where you typically put it, but I was referring to the
relocation to get to that GOT entry.  Looks like there's no
absolute TLS-IE-specific relocation into the GOT, just a
GOT-relative one.  Ok, confirmed by the GCC patches, never mind.
(I almost did that for CRIS recently, see recent
R_CRIS_32_IE-patch.)

brgds, H-P
PS. typical TLS module size being in the order of 100 bytes,
I found there's no need to optimize for 16-bit accesses with
offsets and such. :)


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