[PATCH v2] ld: add --package-metadata

Alan Modra amodra@gmail.com
Wed May 25 04:30:08 GMT 2022


On Tue, May 24, 2022 at 10:15:07PM +0100, luca.boccassi--- via Binutils wrote:
> v2: fix style issues
>     fix ASAN issue: note storage is rounded up, but that size
>     was used to read the json input, which is fixed
>     add entry to NEWS
>     add note about json validation to docs

Looks OK to me

> +  if (json_length > SIZE_MAX)
> +    {
> +      einfo (_("%P: warning: --package-metadata is too long, ignoring\n"));
> +      return false;
> +    }

except for the above dead code.  OK with that removed.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list