This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Feature request: improved build-id generation
On Thu, 2018-03-15 at 11:36 +0000, Nick Clifton wrote:
> > > I think Fedora should be able to ask its tool chain to insert the
> > > extra data rather than hacking it in after the fact.
>
> I'll just note that another way to insert data into a linked binary
> is to use a linker script fragment referenced from the command line.
> I doubt that this would be any better than creating a "magic .o" file,
> but it is worth knowing.
That might be an interesting alternative. Could you use this for e.g.
inserting a .comment section fragment with an unique (version) string?
That would be stripped away, but should still count for the build-id
hash calculation.
Cheers,
Mark