aboutsummaryrefslogtreecommitdiff
path: root/ld/NEWS
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2024-09-19 17:06:48 -0400
committerFrank Ch. Eigler <fche@redhat.com>2024-09-24 09:59:42 -0400
commit2299dfd4ba96c6852db862f6ec1b96880ecd6c0c (patch)
tree2cec04c6b5e9a2416697851a0072857f0b0dd5bd /ld/NEWS
parent07d74e51ba8691826b3bc758c2f7d2c1283e4d9b (diff)
downloadfsf-binutils-gdb-2299dfd4ba96c6852db862f6ec1b96880ecd6c0c.zip
fsf-binutils-gdb-2299dfd4ba96c6852db862f6ec1b96880ecd6c0c.tar.gz
fsf-binutils-gdb-2299dfd4ba96c6852db862f6ec1b96880ecd6c0c.tar.bz2
ld: support --build-id=xx mode
The is patch adds a new ld build-id computation mode, "xx", using xxhash in its 128-bit mode. The patch prereqs the xxhash-devel headers being installed, and uses the "all-inlined" model, so no run-time or link-time library dependence exists. The xxhash mode performs well, saving roughly 20% of total userspace run time from an ld job over a 800MB shared library relative to sha1. 128 bits of good hash should be collision-resistant to a number of distinct binaries that numbers in the 2**32 - 2**64 range, even if not "crypto" level hash. Confirmations of this are in progress. ld/configury: add --with-xxhash mode, different from gdb case because only using it in inline mode ld/ldbuildid.c: add "xx" mode, #if WITH_XXHASH ld/NEWS, ld.texi: mention new option ld/lexsup.c: add enumeration of --build-id STYLES to --help ld/testsuite/ld-elf/build-id.exp: add test case for 0xHEX case and conditional for xx case; also, simply tcl list syntax https://inbox.sourceware.org/binutils/20240917201509.GB26396@redhat.com/ Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Diffstat (limited to 'ld/NEWS')
-rw-r--r--ld/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/NEWS b/ld/NEWS
index bad8c3e..1f14dd6 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -1,5 +1,10 @@
-*- text -*-
+Changes in 2.44:
+
+* Add a "--build-id=xx" option, if built with the xxhash library. This
+ produces a 128-bit hash, 2-4x faster than md5 or sha1.
+
Changes in 2.43:
* Add support for LoongArch DT_RELR (compressed R_LARCH_RELATIVE).