diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2020-07-10 19:41:06 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2020-07-10 19:41:06 -0300 |
commit | 7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c (patch) | |
tree | efc90e1b49ce51b1ec962f034ca6ba872ad3c6c7 /sysdeps/powerpc/powerpc64/ppc-mcount.S | |
parent | 936c9666aed6747f7a76221118f7cf59100075e6 (diff) | |
download | glibc-7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c.tar.gz glibc-7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c.tar.xz glibc-7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c.zip |
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.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/ppc-mcount.S')
-rw-r--r-- | sysdeps/powerpc/powerpc64/ppc-mcount.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/ppc-mcount.S b/sysdeps/powerpc/powerpc64/ppc-mcount.S index f7e9836cae..1adc0a18f3 100644 --- a/sysdeps/powerpc/powerpc64/ppc-mcount.S +++ b/sysdeps/powerpc/powerpc64/ppc-mcount.S @@ -29,7 +29,7 @@ ENTRY(_mcount) cfi_adjust_cfa_offset (FRAME_MIN_SIZE) cfi_offset (lr, FRAME_LR_SAVE) ld r3, FRAME_LR_SAVE(r11) - bl JUMPTARGET(__mcount_internal) + bl JUMPTARGET (NOTOC (__mcount_internal)) #ifndef SHARED nop #endif |