This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Feature request: improved build-id generation
- From: Andy Lutomirski <luto at kernel dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Cary Coutant <ccoutant at gmail dot com>, Andy Lutomirski <luto at kernel dot org>, Alan Modra <amodra at gmail dot com>, Binutils <binutils at sourceware dot org>, Laura Abbott <labbott at redhat dot com>, X86 ML <x86 at kernel dot org>, Linus Torvalds <torvalds at linux-foundation dot org>, "H. J. Lu" <hjl dot tools at gmail dot com>, mjw at fedoraproject dot org, Kernel Fedora <kernel at lists dot fedoraproject dot org>
- Date: Thu, 15 Mar 2018 17:01:25 +0000
- Subject: Re: Feature request: improved build-id generation
- Dmarc-filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB330217D6
- References: <CALCETrUK35iiygNfA9mqDLx7SZDh-eXk885fvDTOXOR1jFFOAg@mail.gmail.com> <20180314232701.GD3812@bubble.grove.modra.org> <15D8DF02-CF44-41C9-980D-BEB97F42ACF0@amacapital.net> <20180315010105.GE3812@bubble.grove.modra.org> <CAJimCsESQoDZTij1cqQtpzrUvCGqLc_bt9it0OvkpoEyGc+t7A@mail.gmail.com> <CALCETrXnyxjhiVKtF4jGBtFsD1gdQkxT+5QnksdXhGn8DW2cRw@mail.gmail.com> <CAJimCsEu7OEVY0Cgu0uNwAOk5W6y0MTgknKaDAKTsXqBMFwFCw@mail.gmail.com> <6a027137-b407-bdaf-c03e-42fa7f62a94c@redhat.com>
On Thu, Mar 15, 2018 at 11:36 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Guys,
>
>>> 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.
>
>
>>> Asking Fedora to use --defsym for this purpose is IMO a non-starter,
>
> I have to agree with Cary here - why is this idea a non-starter ?
>
I can imagine having every ELF file on Fedora define a symbol like
encodes the name and version of the package it came from would be
rather annoying. If nothing else, it's entirely possible that two
different .so files in the same package would then define the same
symbol. This would, if nothing else, be rather confusing IMO. But
I'm not in charge of Fedora packaging.