diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2019-11-06 04:33:22 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2019-11-06 04:33:56 +0100 |
commit | cb9d1f53717dd67892ba943626f3d1b46f3e760b (patch) | |
tree | 354ae263423ca4c024dd17e5d068f73d4366cd3b /libc/sysdeps | |
parent | 858ffad217076227089cc17eb832db0bd1497792 (diff) |
riscv64: lazy relocations do not work like sparc/m68k
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/riscv64/crt1.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/riscv64/crt1.S b/libc/sysdeps/linux/riscv64/crt1.S index 1e8403d26..15aa0763c 100644 --- a/libc/sysdeps/linux/riscv64/crt1.S +++ b/libc/sysdeps/linux/riscv64/crt1.S @@ -45,6 +45,9 @@ .globl _start .type _start,%function + .weak _init + .weak _fini + _start: call .Lload_gp mv a5, a0 /* rtld_fini. */ @@ -52,12 +55,9 @@ _start: la a0, main REG_L a1, 0(sp) /* argc. */ addi a2, sp, SZREG /* argv. */ - /* - * No support fo app_init/app_fini as we don't support shared libraries. - */ - 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 |