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:
@ -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
|
||||
|
Reference in New Issue
Block a user