diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-04-01 04:30:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-04-01 04:35:46 +0200 |
commit | 70eea5e0f753483dccaabf2ac7ce5b6ef7e8e851 (patch) | |
tree | 1012c75ab88c3039563bfc3eb5b7cc6c0c6187d5 /libc/sysdeps/linux | |
parent | 8f200b7fef0b9320b84e09b4c16df6c72daadd36 (diff) |
riscv64: partially revert cb9d1f53717dd67892ba943626f3d1b46f3e760b, fixes no MMU ELF
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/riscv64/crt1.S | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/riscv64/crt1.S b/libc/sysdeps/linux/riscv64/crt1.S index 15aa0763c..5e33046d4 100644 --- a/libc/sysdeps/linux/riscv64/crt1.S +++ b/libc/sysdeps/linux/riscv64/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 |