summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/riscv32/crt1.S
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-04-14 14:10:10 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-04-14 14:10:10 +0200
commit4d6636f6b22718a4181833db4579a003c0893683 (patch)
tree3bc6bb9da8e97ac483da56e1f517833be9664bc2 /libc/sysdeps/linux/riscv32/crt1.S
parent48591e2a259d84247ae38f050bd58e6f7450bb77 (diff)
riscv32: allow ELF PIE noMMU build
Diffstat (limited to 'libc/sysdeps/linux/riscv32/crt1.S')
-rw-r--r--libc/sysdeps/linux/riscv32/crt1.S7
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/riscv32/crt1.S b/libc/sysdeps/linux/riscv32/crt1.S
index 15aa0763c..5e33046d4 100644
--- a/libc/sysdeps/linux/riscv32/crt1.S
+++ b/libc/sysdeps/linux/riscv32/crt1.S
@@ -45,9 +45,6 @@
.globl _start
.type _start,%function
- .weak _init
- .weak _fini
-
_start:
call .Lload_gp
mv a5, a0 /* rtld_fini. */
@@ -55,9 +52,9 @@ _start:
la a0, main
REG_L a1, 0(sp) /* argc. */
addi a2, sp, SZREG /* argv. */
+ mv a3, zero
+ mv a4, zero
andi sp, sp, ALMASK /* Align stack. */
- lla a3, _init
- lla a4, _fini
mv a6, sp /* stack_end. */
tail __uClibc_main@plt