summaryrefslogtreecommitdiff
path: root/riscv_new/rtl/linux/riscv64/prt0.as
diff options
context:
space:
mode:
Diffstat (limited to 'riscv_new/rtl/linux/riscv64/prt0.as')
-rw-r--r--riscv_new/rtl/linux/riscv64/prt0.as6
1 files changed, 4 insertions, 2 deletions
diff --git a/riscv_new/rtl/linux/riscv64/prt0.as b/riscv_new/rtl/linux/riscv64/prt0.as
index af52cf5a7c..deaca13a29 100644
--- a/riscv_new/rtl/linux/riscv64/prt0.as
+++ b/riscv_new/rtl/linux/riscv64/prt0.as
@@ -19,9 +19,11 @@ _dynamic_start:
.globl _start
.type _start, function
_start:
-1:
- auipc gp, %pcrel_hi(__bss_start+0x800)
+ .option push
+ .option norelax
+1: auipc gp, %pcrel_hi(__bss_start+0x800)
addi gp, gp, %pcrel_lo(1b)
+ .option pop
/* Get argc, argv, envp */
ld x5,(x2)