[PATCH] ld: add --package-metadata

Luca Boccassi luca.boccassi@gmail.com
Tue May 17 14:44:54 GMT 2022


On Tue, 17 May 2022 at 07:03, Florian Weimer <fweimer@redhat.com> wrote:
>
> * Fangrui Song:
>
> > Both the "FDO" and the json dependency make me concerned -
> > if a linker script approach works quite well, why bother with a new
> > linker option with a very specific application?
>
> The linker script does not work all that well because it requires that
> the script is materialized to disk somewhere, and that path needs to
> show up in the build flags.  If the build flags are stored beyond the
> build for future use, this makes them invalid because the path will
> typically be gone by the time the stored flags are used.
>
> Thanks,
> Florian

Indeed, it was working fine as an initial step to get the ball rolling and
the spec adopted, but having to generate and reference an
intermediate, temporary asset is not great and has drawbacks. Now
that the spec is live and proven in production in Fedora 36 it seemed
to me like a good time to introduce a first-class option, to make further
usage and adoption as trivial as it can be.

Kind regards,
Luca Boccassi


More information about the Binutils mailing list