This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Feature request: improved build-id generation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]