aarch64: correct CFI in rawmemchr (bug 31113)

The .cfi_return_column directive changes the return column for the whole
FDE range.  But the actual intent is to tell the unwinder that the value
in x30 (lr) now resides in x15 after the move, and that is expressed by
the .cfi_register directive.

(cherry picked from commit 3f79842788)
This commit is contained in:
Andreas Schwab 2023-11-23 18:23:46 +01:00 committed by Wilco Dijkstra
parent a08ff92294
commit 168ae58e6e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ ENTRY (__rawmemchr)
L(do_strlen):
mov x15, x30
cfi_return_column (x15)
cfi_register (x30, x15)
mov x14, x0
bl __strlen
add x0, x14, x0