[RS6000] Adjust gcc asm for power10
commit2dd7b93778d551b6981c8086ecb38e26f677bd2b
authorAlan Modra <amodra@gmail.com>
Mon, 28 Sep 2020 07:12:33 +0000 (28 16:42 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 1 Oct 2020 01:04:48 +0000 (1 10:34 +0930)
tree513fb58bfdd39b9e1778ce3e2f1ae7f5d92d7897
parentc6be439b37702f6ac4c2fc447c6f3ed1042b80a3
[RS6000] Adjust gcc asm for power10

Generate assembly with .localentry,1 functions using @notoc calls.
This patch makes libgcc.a asm look the same as power10 pcrel as far as
toc/notoc is concerned.

Otherwise calling between functions that advertise as using the TOC
and those that don't, will require linker call stubs in statically
linked code.

gcc/
* config/rs6000/ppc-asm.h: Support __PCREL__ code.
libgcc/
* config/rs6000/morestack.S,
* config/rs6000/tramp.S: Support __PCREL__ code.
libitm/
* config/powerpc/sjlj.S: Support __PCREL__ code.
gcc/config/rs6000/ppc-asm.h
libgcc/config/rs6000/morestack.S
libgcc/config/rs6000/tramp.S
libitm/config/powerpc/sjlj.S