summaryrefslogtreecommitdiff
path: root/LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-09 03:36:26 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-09 03:36:26 +0000
commitdb43dfdfa8bc2b938582aef3d87e43594c13ee50 (patch)
tree47b95b2f6ac8d8b7e6fa373a5bd7d661bf7234df /LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch
parentb933872de72b006230559f77acc3ccfb38a1f343 (diff)
automatic import of glibcopeneuler20.03
Diffstat (limited to 'LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch')
-rw-r--r--LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch b/LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch
new file mode 100644
index 0000000..82ae1be
--- /dev/null
+++ b/LoongArch-Replace-deprecated-v0-with-a0-to-eliminate.patch
@@ -0,0 +1,28 @@
+From b4b4bb7c9220a0bbdf5aec0ac8c1de1d22329280 Mon Sep 17 00:00:00 2001
+From: caiyinyu <caiyinyu@loongson.cn>
+Date: Thu, 14 Sep 2023 19:48:24 +0800
+Subject: [PATCH 21/29] LoongArch: Replace deprecated $v0 with $a0 to eliminate
+ 'as' Warnings.
+
+Signed-off-by: Peng Fan <fanpeng@loongson.cn>
+Signed-off-by: ticat_fp <fanpeng@loongson.cn>
+---
+ sysdeps/loongarch/dl-machine.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sysdeps/loongarch/dl-machine.h b/sysdeps/loongarch/dl-machine.h
+index 8a2db9de..57913cef 100644
+--- a/sysdeps/loongarch/dl-machine.h
++++ b/sysdeps/loongarch/dl-machine.h
+@@ -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, \
+--
+2.33.0
+