diff options
author | Roland McGrath <roland@gnu.org> | 2007-07-13 10:44:26 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2007-07-13 10:44:26 +0000 |
commit | 24382dca6c0a77fd3b53972b3b3a3b483ae26c9e (patch) | |
tree | ce784d2a64246830cfbbb03184fa54f11673a209 /ld/ld.texinfo | |
parent | bfb53a4f5bae337fb1f78e4008b9c4d498a2853c (diff) | |
download | gdb-24382dca6c0a77fd3b53972b3b3a3b483ae26c9e.zip gdb-24382dca6c0a77fd3b53972b3b3a3b483ae26c9e.tar.gz gdb-24382dca6c0a77fd3b53972b3b3a3b483ae26c9e.tar.bz2 |
2007-07-13 Roland McGrath <roland@redhat.com>
* emultempl/elf32.em (struct build_id_info): New type.
(gld${EMULATION_NAME}_id_note_section_size): New function.
(gld${EMULATION_NAME}_write_build_id_section): New function.
(gld${EMULATION_NAME}_after_open): Use them.
(DEFAULT_BUILD_ID_STYLE): Change to "sha1".
* ld.texinfo (Options): Mention --build-id=sha1.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 9bc1afa..aca0162 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1973,18 +1973,20 @@ enable other tradeoffs in future versions of the linker. Request creation of @code{.note.gnu.build-id} ELF note section. The contents of the note are unique bits identifying this linked file. @var{style} can be @code{uuid} to use 128 random bits, -@code{md5} to use a 128-bit @sc{MD5} hash on the normative parts -of the output contents, or @code{0x@var{hexstring}} to use a -chosen bit string specified as an even number of hexadecimal -digits (@code{-} and @code{:} characters between digit pairs are -ignored). If @var{style} is omitted, @code{md5} is used. - -The @code{md5} style produces an identifier that is always the -same in an identical output file, but will be unique among all -nonidentical output files. It is not intended to be compared as -a checksum for the file's contents. A linked file may be -changed later by other tools, but the build ID bit string -identifying the original linked file does not change. +@code{sha1} to use a 160-bit @sc{SHA1} hash on the normative +parts of the output contents, @code{md5} to use a 128-bit +@sc{MD5} hash on the normative parts of the output contents, or +@code{0x@var{hexstring}} to use a chosen bit string specified as +an even number of hexadecimal digits (@code{-} and @code{:} +characters between digit pairs are ignored). If @var{style} is +omitted, @code{sha1} is used. + +The @code{md5} and @code{sha1} styles produces an identifier +that is always the same in an identical output file, but will be +unique among all nonidentical output files. It is not intended +to be compared as a checksum for the file's contents. A linked +file may be changed later by other tools, but the build ID bit +string identifying the original linked file does not change. Passing @code{none} for @var{style} disables the setting from any @code{--build-id} options earlier on the command line. |