LoongArch: Replace deprecated $v0 with $a0 to eliminate 'as' Warnings.
authorcaiyinyu <caiyinyu@loongson.cn>
Thu, 14 Sep 2023 11:48:24 +0000 (19:48 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Fri, 15 Sep 2023 01:07:47 +0000 (09:07 +0800)
sysdeps/loongarch/dl-machine.h

index 8a2db9d..57913ce 100644 (file)
@@ -90,7 +90,7 @@ static inline ElfW (Addr) elf_machine_dynamic (void)
        or      $a0, $sp, $zero   \n\
        bl      _dl_start   \n\
        # Stash user entry point in s0.   \n\
-       or      $s0, $v0, $zero   \n\
+       or      $s0, $a0, $zero   \n\
        # Load the original argument count.   \n\
        ld.d    $a1, $sp, 0   \n\
        # Call _dl_init (struct link_map *main_map, int argc, \