Skip to content

Commit c08b793

Browse files
committed
[libunwind] Fix build error because of wrong register size
This patch should fix an libunwind build failure that happens on Chromium's Android bots: #165066 (comment) The issue is that we're using the `wzr` register to move the value 0 in x1, but this is the 32-bit register. To prevent this issue, we use an immediate instead of the zero registers. Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 201a461 commit c08b793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/UnwindLevel1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
void *shstkRegContext = __libunwind_shstk_get_registers((cursor)); \
8383
void *shstkJumpAddress = __libunwind_shstk_get_jump_target(); \
8484
__asm__ volatile("mov x0, %0\n\t" \
85-
"mov x1, wzr\n\t" \
85+
"mov x1, xzr\n\t" \
8686
"br %1\n\t" \
8787
: \
8888
: "r"(shstkRegContext), "r"(shstkJumpAddress) \

0 commit comments

Comments
 (0)