[compiler-rt] 742bcbf - compiler-rt/lib: Add .Linterceptor_sigsetjmp
H.J. Lu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 14:31:23 PST 2023
Author: H.J. Lu
Date: 2023-01-31T14:30:55-08:00
New Revision: 742bcbf685bc51c5714e0be4b8a71d8b84c573c8
URL: https://github.com/llvm/llvm-project/commit/742bcbf685bc51c5714e0be4b8a71d8b84c573c8
DIFF: https://github.com/llvm/llvm-project/commit/742bcbf685bc51c5714e0be4b8a71d8b84c573c8.diff
LOG: compiler-rt/lib: Add .Linterceptor_sigsetjmp
Older GNU assemblers generate R_X86_64_PC32 relocation against
defined non-weak global branch targets with default visibility. A
linker may issue an error when building a shared library. Add a local
alias, .Linterceptor_sigsetjmp, to __interceptor_sigsetjmp to avoid
R_X86_64_PC32 relocation for "jmp __interceptor_sigsetjmp" with older
GNU assemblers.
Fixes: https://github.com/llvm/llvm-project/issues/60426
Differential Revision: https://reviews.llvm.org/D142995
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S b/compiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S
index 7566c1ea0a57..a5a3858d94dc 100644
--- a/compiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S
+++ b/compiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S
@@ -37,13 +37,14 @@ __interceptor_setjmp:
CFI_STARTPROC
_CET_ENDBR
xorl %esi, %esi
- jmp __interceptor_sigsetjmp
+ jmp .Linterceptor_sigsetjmp
CFI_ENDPROC
ASM_SIZE(__interceptor_setjmp)
.global __interceptor_sigsetjmp
ASM_TYPE_FUNCTION(__interceptor_sigsetjmp)
__interceptor_sigsetjmp:
+.Linterceptor_sigsetjmp:
CFI_STARTPROC
_CET_ENDBR
More information about the llvm-commits
mailing list