[PATCH v5 13/18] riscv: Add RVV strlen for multiarch and non-multiarch

Peter Bergner bergner@tenstorrent.com
Mon May 11 06:25:28 GMT 2026


On 5/10/26 7:09 AM, H.J. Lu wrote:
> On Sun, May 10, 2026 at 5:49 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>>
>> This breaks statically linked programs when any tunable env var is set,
>> because __tunables_init calls strlen, which jumps to the uninitialized
>> PLT.
> 
> Please add
> 
> asm ("strlen = __strlen_generic");
> 
> to sysdeps/riscv/multiarch/dl-symbol-redir-ifunc.h.

I'll need to add static builds to my testing matrix.  Thanks to you
and Andreas for pointing this out!  Are there any other known symbols
that need handling like this as well (memcpy and memset already were
handled)?

Peter




More information about the Libc-alpha mailing list