<div dir="ltr">HI<div><br></div><div>I am working on RTEMS on an i386 paravirtualized environment which requires PIC.</div><div>This means the TLS method is not %gs but instead a function call which appears to</div><div>be this per <a href="https://www.akkadia.org/drepper/tls.pdf">https://www.akkadia.org/drepper/tls.pdf</a></div><div><br></div><div>typedef struct {</div><div>  unsigned long ti_module;</div><div>  unsigned long ti_offset;</div><div>} tls_index;</div><div><br></div><div><br></div><div><div>void *__tls_get_addr(const tls_Index *ti)</div><div>{</div><div>  // XXX FIX ME</div><div>  return NULL;</div><div>}</div></div><div><br></div><div>Suggestions on how to fill this method in appreciated.</div><div><br></div><div>It looks like the ARM has the same method. Will the same code work?</div><div><br></div><div>Thanks.</div><div><br></div><div>--joel</div></div>