1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

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.
This commit is contained in:
Tulio Magno Quites Machado Filho
2020-07-10 19:41:06 -03:00
parent 936c9666ae
commit 7c7bcf3634
7 changed files with 52 additions and 4 deletions

View File

@ -160,7 +160,7 @@ L(exitcode):
li r3,-1
L(do_exit):
#ifdef SHARED
b JUMPTARGET(__GI_exit);
b JUMPTARGET (NOTOC (__GI_exit));
#else
b JUMPTARGET(exit);
nop