<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 14, 2023 at 4:33 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 14.09.23 10:51, Chris Johns wrote:<br>
> On 14/9/2023 5:58 pm, Sebastian Huber wrote:<br>
>> On 14.09.23 09:38, Chris Johns wrote:<br>
>>>>> The issue I faced was no score interface to get the TLS base for a thread to<br>
>>>>> determine a symbol's offset. If we had that and something to say if TLS is<br>
>>>>> supported libdl would be easy to fix.<br>
>>>> Why don't we add this interface if it simplifies things?<br>
>>> Yes please, that would be good. I do not know the TSL support well enough to do<br>
>>> a decent job of it.<br>
>> Which interface do you need?<br>
> A define that says TLS is support for an arch?<br>
> <br>
> A call that returns the base address for an arch? I have added some in libdl:<br>
> <br>
> <a href="https://git.rtems.org/rtems/tree/cpukit/libdl/rtl-tls.c" rel="noreferrer" target="_blank">https://git.rtems.org/rtems/tree/cpukit/libdl/rtl-tls.c</a><br>
> <br>
> however having this in score would mean a new arch does not break libdl.<br>
<br>
Yes, this should be definitely added to the CPU port. What is the <br>
purpose of rtems_rtl_tls_get_base()? It seems to be unused.<br></blockquote><div><br></div><div>MIPS does not have TLS support. GCC generates a specific illegal </div><div>instruction and the exception handler does the right thing.</div><div><br></div><div>Is there a way to tell GCC to use a function call? That would be </div><div>much easier across all the secondary architectures.</div><div><br></div><div>--joel</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>