On Mon, 24 Feb 2025 at 07:56, Sam Edwards <cfswo...@gmail.com> wrote: > > LLVM's code generator will sometimes emit calls to __aeabi_memclr. Add an > implementation of this for LLVM compatibility. > > Signed-off-by: Sam Edwards <cfswo...@gmail.com> > --- > arch/arm/lib/eabi_compat.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c > index 602efe04c04..e4190c049a3 100644 > --- a/arch/arm/lib/eabi_compat.c > +++ b/arch/arm/lib/eabi_compat.c > @@ -37,3 +37,8 @@ void __aeabi_memset(void *dest, size_t n, int c) > { > (void) memset(dest, c, n); > } > + > +void __aeabi_memclr(void *dest, size_t n) > +{ > + (void) memset(dest, 0, n); > +} > -- > 2.45.2 >
Reviewed-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>