Hello Joel,
you may have a look at the FreeBSD:
https://svnweb.freebsd.org/base/head/libexec/rtld-elf/i386/reloc.c?view=markup
I would simply start to implement it in the most obvious way and then
run the sptls* tests.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-821
HI
I am working on RTEMS on an i386 paravirtualized environment which requires
PIC.
This means the TLS method is not %gs but instead a function call which
appears to
be this per https://www.akkadia.org/drepper/tls.pdf
typedef struct {
unsigned long ti_module;
unsigned long ti_offset;
} tls_in