This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Feature request: improved build-id generation
- From: Alan Modra <amodra at gmail dot com>
- To: Andy Lutomirski <luto at kernel dot org>
- Cc: 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 09:57:01 +1030
- Subject: Re: Feature request: improved build-id generation
- References: <CALCETrUK35iiygNfA9mqDLx7SZDh-eXk885fvDTOXOR1jFFOAg@mail.gmail.com>
On Wed, Mar 14, 2018 at 10:36:26PM +0000, Andy Lutomirski wrote:
> --build-id=md5, sha1: MD5 and SHA1 are deprecated.
You're confusing security with identification. The use of these
hashes for identification is fine. If not, stop using git and rsync.
> --build-id=0xhexstring: avoiding accidental collisions is unpleasant,
> and how is anyone supposed to come up with an intelligent choice for
> 0xhexstring?
By inserting the output of your hashing algorithm of choice. For
example
--build-id=0x`sha256sum <file> | sed -e 's, .*,,'`
--
Alan Modra
Australia Development Lab, IBM