[PATCH] Add startswith function and use it instead of CONST_STRNEQ.
Luis Machado
luis.machado@linaro.org
Wed Mar 31 13:44:49 GMT 2021
On 3/31/21 10:12 AM, Martin Liška wrote:
>> Given this has been broken for a little while, and given Alan's patch
>> fixes the problem for arm/aarch64 sims (from what I tested), can we
>> push this for now and get it addressed in some other way later, if
>> someone wants it?
>>
>> I think someone's hit this on riscv as well.
>
> It's fixed now with Alan's patch:
>
> commit 57ae980e3290c0c1a9fb4a93144cc5b24457f05a
> Author: Alan Modra <amodra@gmail.com>
> Date: Wed Mar 31 10:02:08 2021 +1030
>
> Include string.h in bfd.h and delete LITMEMCPY, LITSTRCPY
> This fixes the issue that startswith depends on strncpy being
> declared, and not all projects using bfd.h include string.h before
> bfd.h. I've also deleted some macros that don't find much use
> anywhere.
> bfd/
> * bfd-in.h: Include string.h.
> (LITMEMCPY, LITSTRCPY): Delete.
> * bfd-in2.h: Regenerate.
> binutils/
> * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
>
> Cheers,
> Martin
Thanks Alan/Martin. I've confirmed the arm/aarch64 sim failures are
fixed now.
More information about the Binutils
mailing list