[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 <jim@andestech.com>
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.
This commit is contained in:
Tsung Chun Lin 2024-10-04 08:02:07 -06:00 committed by Jeff Law
parent 20165d0107
commit 78d2af1fa5

View File

@ -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)