diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2021-03-11 21:10:04 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2021-03-11 21:10:04 +0000 |
commit | 43290967e98b432a08f1c8c01385e6cbb55208e1 (patch) | |
tree | f7050f13e4981c7d45d49d1e02cf1f2925af0a41 | |
parent | 7fe61e020d946c74c55895443deb3eaa15fb3954 (diff) | |
download | fpc-43290967e98b432a08f1c8c01385e6cbb55208e1.tar.gz |
* RiscV: corrected setup of gp
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@48938 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r-- | rtl/linux/riscv64/si_c.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtl/linux/riscv64/si_c.inc b/rtl/linux/riscv64/si_c.inc index 942372e934..2319967c40 100644 --- a/rtl/linux/riscv64/si_c.inc +++ b/rtl/linux/riscv64/si_c.inc @@ -53,7 +53,7 @@ procedure _FPC_proc_start; assembler; nostackframe; public name '_start'; .option push .option norelax .L1: - auipc gp, %pcrel_hi(BSS_START+0x7f8) + auipc gp, %pcrel_hi(BSS_START+0x800) addi gp, gp, %pcrel_lo(.L1) .option pop @@ -89,7 +89,7 @@ procedure _FPC_proc_haltproc(e:longint); cdecl; public name '_haltproc'; .option push .option norelax .L1: - auipc gp, %pcrel_hi(BSS_START+0x7f8) + auipc gp, %pcrel_hi(BSS_START+0x800) addi gp, gp, %pcrel_lo(.L1) .option pop jalr x0, x1 |