[PATCH] gold: add --package-metadata

Luca Boccassi bluca@debian.org
Wed Jun 8 13:29:17 GMT 2022
On Thu, 26 May 2022 at 19:53, <luca.boccassi@gmail.com> wrote:
>
> From: Luca Boccassi <bluca@debian.org>
>
> Following the same format as the implementation in ld:
> 9e2bb0cb5e74aed4158f08495534922d7108f928
>
> Generate a .note.package FDO package metadata ELF note, following
> the spec: https://systemd.io/ELF_PACKAGE_METADATA/
>
> If the jansson library is available at build time (and it is explicitly
> enabled), link ld to it, and use it to validate that the input is
> correct JSON, to avoid writing garbage to the file. The
> configure option --enable-jansson has to be used to explicitly enable
> it (error out when not found). This allows bootstrappers (or others who
> are not interested) to seamlessly skip it without issues.

Hello Nick,

Did you have any chance to look at this?

Thanks!

Kind regards,
Luca Boccassi


More information about the Binutils mailing list