[mips-tls] DTPREL relocations in input files

Daniel Jacobowitz dan at codesourcery.com
Thu Jun 7 18:03:49 UTC 2007


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



More information about the mips-tls mailing list