From 78d2af1fa53fe232ae00673f53c8b168d099c70f Mon Sep 17 00:00:00 2001 From: Tsung Chun Lin Date: Fri, 4 Oct 2024 08:02:07 -0600 Subject: [PATCH] [PATCH] RISC-V/libgcc: Fix incorrect .cfi_offset for saving ra in __riscv_save_[0-3] on ilp32e. From 8b3c5ebe8aacbcc4ddf1be8dea9a555e7e1bcc39 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Fri, 4 Oct 2024 14:48:12 +0800 Subject: [PATCH] RISC-V/libgcc: Fix incorrect .cfi_offset for saving ra in __riscv_save_[0-3] on ilp32e. libgcc/ChangeLog: * config/riscv/save-restore.S: Fix .cfi_offset for saving ra in __riscv_save_[0-3] on ilp32e. --- libgcc/config/riscv/save-restore.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/config/riscv/save-restore.S b/libgcc/config/riscv/save-restore.S index 30d06cc6e5b..2c5d6bcea1a 100644 --- a/libgcc/config/riscv/save-restore.S +++ b/libgcc/config/riscv/save-restore.S @@ -309,7 +309,7 @@ FUNC_BEGIN(__riscv_save_0) sw s0, 4(sp) .cfi_offset 8, -8 sw ra, 8(sp) - .cfi_offset 1, 0 + .cfi_offset 1, -4 jr t0 .cfi_endproc FUNC_END(__riscv_save_2)