[PATCH] csu: Disable zero-init on stack in libc-start.c [BZ #33112]
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Fri Jun 27 17:24:46 GMT 2025
On 27/06/25 11:24, Wilco Dijkstra wrote:
> Hi Adhemerval,
>
>> We have dl-symbol-redir-ifunc.h to avoid similar issues, where the autogenerated
>> calls to string routines should be routed to generic implementations. Does
>> it work on libc-start.c?
>
> Yes that works and is even simpler - it's odd that isn't included by default in all startup
> files... I've sent v2.
>
> Also why doesn't it have memcpy and other ifuncs added in it?
I think it is because we haven't hit the same issue with memcpy/memmove/etc.
But the idea is to extend if/when compiler/code starts to trigger this.
More information about the Libc-alpha
mailing list