[PATCH] elf: Remove the GET_ADDR_ARGS and related macros from the TLS code

Florian Weimer fweimer@redhat.com
Mon Jan 13 10:50:33 GMT 2025


* Frank Scheiner:

>> You could try to emulate what i386 and s390x do to implement alternative
>> __tls_get_addr ABIs.  Your wrapper would have to create the TLS
>> descriptor structure on the stack and pass its address to the shared
>> glibc implementation.
>
> Thanks for the suggestions. I had a look around (also in the IA-64 docs)
> but I don't really like to change these details in a way that would
> contradict the existing documentation for ia64. Also - more decisive - I
> don't really know how to do it - yet. :-)

To be clear, what I'm proposing is an internal implementation detail, so
that you can keep maintaining your fork using the existing extension
mechanisms.  The external calling convention would not change.

Floorian



More information about the Libc-alpha mailing list