[PATCHv2] powerpc64: Implement TLS using PC-relative addressing
Tulio Magno Quites Machado Filho
tuliom@linux.ibm.com
Mon Jan 25 15:20:01 GMT 2021
Tulio Magno Quites Machado Filho via Libc-alpha <libc-alpha@sourceware.org> writes:
> Changes since v1:
> - Dropped the workaround for early GCC 10 versions. We can't get this
> code to work without having the macro __PCREL__. The previous code
> was failing if -mcpu=power10 -mno-pcrel was used.
> - Fixed coding style issues (added space after #defined and removed
> unnecessary parenthesis).
>
> ---8<---
>
> As the TOC pointer becomes optional on POWER, TLS access has to be
> modified in order to use PC-relative addressing instead of depending on
> the TOC pointer availability.
>
> This patch also changes old TLS code to use the new syntax. It's a
> purely aesthetical change: the old code still works and the new syntax
> helps to move the argument setup instruction away from the call, which
> is not used in an inline assembly.
>
> Suggested-by: Alan Modra <amodra@gmail.com>
Adhemerval,
I've just realized I forgot to Cc you in this patch.
It's fixing test failures when building glibc using --with-cpu=power10.
May we merge it for 2.33?
--
Tulio Magno
More information about the Libc-alpha
mailing list