powerpc64: Fix calls when r2 is not used [BZ #26173]
commit7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 10 Jul 2020 22:41:06 +0000 (10 19:41 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 10 Jul 2020 22:41:06 +0000 (10 19:41 -0300)
treeefc90e1b49ce51b1ec962f034ca6ba872ad3c6c7
parent936c9666aed6747f7a76221118f7cf59100075e6
powerpc64: Fix calls when r2 is not used [BZ #26173]

Teach the linker that __mcount_internal, __sigjmp_save_symbol,
__syscall_error and __GI_exit do not use r2, so that it does not need to
recover r2 after the call.

Test at configure time if the assembler supports @notoc and define
USE_PPC64_NOTOC.
config.h.in
sysdeps/powerpc/powerpc64/configure
sysdeps/powerpc/powerpc64/configure.ac
sysdeps/powerpc/powerpc64/ppc-mcount.S
sysdeps/powerpc/powerpc64/setjmp-common.S
sysdeps/powerpc/powerpc64/sysdep.h
sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S