about summary refs log tree commit diff
path: root/sysdeps/loongarch/dl-machine.h
diff options
context:
space:
mode:
authorcaiyinyu <caiyinyu@loongson.cn>2023-07-11 11:57:12 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-07-11 11:57:12 +0800
commit0e1324e655f3ba9fd3f8ad24678b93b35eee2618 (patch)
tree144bc5aeb56aca632d8d3fa4d88e8f3953426862 /sysdeps/loongarch/dl-machine.h
parent7f079fdc16e88ebb8020e17b2fd900e8924da29a (diff)
downloadglibc-0e1324e655f3ba9fd3f8ad24678b93b35eee2618.tar.gz
glibc-0e1324e655f3ba9fd3f8ad24678b93b35eee2618.tar.xz
glibc-0e1324e655f3ba9fd3f8ad24678b93b35eee2618.zip
LoongArch: Fix soft-float bug about _dl_runtime_resolve{,lsx,lasx}
Diffstat (limited to 'sysdeps/loongarch/dl-machine.h')
-rw-r--r--sysdeps/loongarch/dl-machine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/loongarch/dl-machine.h b/sysdeps/loongarch/dl-machine.h
index 02ce17852c..51ce9af84b 100644
--- a/sysdeps/loongarch/dl-machine.h
+++ b/sysdeps/loongarch/dl-machine.h
@@ -270,7 +270,7 @@ elf_machine_runtime_setup (struct link_map *l, struct r_scope_elem *scope[],
   /* If using PLTs, fill in the first two entries of .got.plt.  */
   if (l->l_info[DT_JMPREL])
     {
-#if HAVE_LOONGARCH_VEC_ASM
+#if HAVE_LOONGARCH_VEC_ASM && !defined __loongarch_soft_float
       extern void _dl_runtime_resolve_lasx (void) attribute_hidden;
       extern void _dl_runtime_resolve_lsx (void) attribute_hidden;
 #endif
@@ -300,7 +300,7 @@ elf_machine_runtime_setup (struct link_map *l, struct r_scope_elem *scope[],
 	  /* This function will get called to fix up the GOT entry
 	     indicated by the offset on the stack, and then jump to
 	     the resolved address.  */
-#if HAVE_LOONGARCH_VEC_ASM
+#if HAVE_LOONGARCH_VEC_ASM && !defined __loongarch_soft_float
 	  if (SUPPORT_LASX)
 	    gotplt[0] = (ElfW(Addr)) &_dl_runtime_resolve_lasx;
 	  else if (SUPPORT_LSX)