Skip to content

Commit 85d3873

Browse files
committed
Fix "[compiler-rt] Allow 3 simultaneous interceptors on Linux"
Fix inline asm trampoline type. Some architectures will complain: <inline asm>:8:41: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>" 8 | .type __interceptor_trampoline_malloc, @function Just use %function instead, which is what is also used in sanitizer_asm.h
1 parent b28614c commit 85d3873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/interception/interception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const interpose_substitution substitution_##func_name[] \
196196
__ASM_WEAK_WRAPPER(func) \
197197
".set " #func ", " SANITIZER_STRINGIFY(TRAMPOLINE(func)) "\n" \
198198
".globl " SANITIZER_STRINGIFY(TRAMPOLINE(func)) "\n" \
199-
".type " SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", @function\n" \
199+
".type " SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", %function\n" \
200200
SANITIZER_STRINGIFY(TRAMPOLINE(func)) ":\n" \
201201
SANITIZER_STRINGIFY(CFI_STARTPROC) "\n" \
202202
SANITIZER_STRINGIFY(ASM_TAIL_CALL) " __interceptor_" \

0 commit comments

Comments
 (0)