[PATCH v5 13/18] riscv: Add RVV strlen for multiarch and non-multiarch
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon May 11 14:24:18 GMT 2026
On 11/05/26 03:25, Peter Bergner wrote:
> 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)?
We already have tests that checks for this, after this patch I noticed:
FAIL: elf/tst-env-setuid-static
FAIL: elf/tst-tunables
FAIL: elf/tst-tunables-enable_secure
More information about the Libc-alpha
mailing list