From 7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Fri, 10 Jul 2020 19:41:06 -0300 Subject: 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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index d5e1f6819e..8dea97f625 100644 --- a/config.h.in +++ b/config.h.in @@ -20,6 +20,9 @@ /* On powerpc64, use overlapping .opd entries. */ #undef USE_PPC64_OVERLAPPING_OPD +/* On powerpc64, use @notoc. */ +#undef USE_PPC64_NOTOC + /* Define if _Unwind_Find_FDE should be exported from glibc. */ #undef EXPORT_UNWIND_FIND_FDE -- cgit 1.4.1