[PATCH 2/2] Loongarch: Add ifunc support and add different versions of strlen

Xi Ruoyao xry111@xry111.site
Tue Aug 1 14:44:07 GMT 2023


On Tue, 2023-08-01 at 15:09 +0800, dengjianbo wrote:

/* snip */

> diff --git a/sysdeps/loongarch/lp64/multiarch/Makefile
> b/sysdeps/loongarch/lp64/multiarch/Makefile
> new file mode 100644
> index 0000000000..529a8b6bab
> --- /dev/null
> +++ b/sysdeps/loongarch/lp64/multiarch/Makefile
> @@ -0,0 +1,3 @@
> +ifeq ($(subdir),string)
> +sysdep_routines += strlen-aligned strlen-lsx strlen-lasx
> +endif

Please check if the assembler supports LSX/LASX, if not you should not
add strlen-lsx and strlen-lasx here.  We don't want to disallow building
Glibc for LoongArch with old assembler.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Libc-alpha mailing list