[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [mips-tls] DTPREL relocations in input files
- To: Nigel Stephens <nigel@xxxxxxxx>
- Subject: Re: [mips-tls] DTPREL relocations in input files
- From: Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
- Date: Thu, 7 Jun 2007 14:03:49 -0400
On Thu, Jun 07, 2007 at 04:40:32PM +0100, Nigel Stephens wrote:
> Seems reasonable to reuse R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64,
> since AFAICS those relocs are currently generated only by the linker and
> otherwise shouldn't be seen in a linker input file. What do other
> architectures do here?
For ARM, we're going to use R_ARM_TLS_LDO32 in the object file. This
is only ever present in objects and used for the local dynamic model;
it's equivalent to the combined R_MIPS_DTPREL_LO16 and
R_MIPS_DTPREL_HI16. The dynamic relocation used for local dynamic is
R_ARM_TLS_DTPOFF32, equivalent to R_MIPS_TLS_DTPREL32.
Most architectures seem to have separate relocations, but I
don't know why.
--
Daniel Jacobowitz
CodeSourcery
|