Feature request: improved build-id generation
Alan Modra
amodra@gmail.com
Wed Mar 14 23:27:00 GMT 2018
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
More information about the Binutils
mailing list