summaryrefslogtreecommitdiff
path: root/riscv_new/rtl/linux/riscv64/cprt0.as
diff options
context:
space:
mode:
Diffstat (limited to 'riscv_new/rtl/linux/riscv64/cprt0.as')
-rw-r--r--riscv_new/rtl/linux/riscv64/cprt0.as4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv_new/rtl/linux/riscv64/cprt0.as b/riscv_new/rtl/linux/riscv64/cprt0.as
index 522e484b85..fad4c51c50 100644
--- a/riscv_new/rtl/linux/riscv64/cprt0.as
+++ b/riscv_new/rtl/linux/riscv64/cprt0.as
@@ -74,7 +74,7 @@ _start:
sd sp,%pcrel_lo(1b)(x8)
/* Fetch address of fini */
-1:auipc x8,%pcrel_hi(_fini)
+1:auipc x8,%pcrel_hi(__libc_csu_fini)
addi a2,x8,%pcrel_lo(1b)
/* argc already loaded to a2*/
@@ -93,7 +93,7 @@ _start:
/* Set up the other arguments in registers */
1:auipc x8,%pcrel_hi(PASCALMAIN)
addi a1, x8, %pcrel_lo(1b)
-1:auipc x8,%pcrel_hi(_init)
+1:auipc x8,%pcrel_hi(__libc_csu_init)
addi a4, x8, %pcrel_lo(1b)
/* Push fini */