diff options
author | Cary Coutant <ccoutant@google.com> | 2013-04-26 21:38:57 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2013-04-26 21:38:57 +0000 |
commit | e7c5ea405fd863a9fcf85d49694e0f69fd5511ec (patch) | |
tree | b0f6073044c3fcf77b5cfba088ef59bc3ccf052c /gold/options.h | |
parent | ee441d9a9a2df27e795cfdbf80048f42bb1504cc (diff) | |
download | fsf-binutils-gdb-e7c5ea405fd863a9fcf85d49694e0f69fd5511ec.zip fsf-binutils-gdb-e7c5ea405fd863a9fcf85d49694e0f69fd5511ec.tar.gz fsf-binutils-gdb-e7c5ea405fd863a9fcf85d49694e0f69fd5511ec.tar.bz2 |
2013-04-26 Geoff Pike <gpike@chromium.org>
gold/
* gold.cc (queue_final_tasks): invoke layout->queue_build_id_tasks().
* layout.cc (Hash_task): New class.
(Layout::queue_build_id_tasks): New function.
(Layout::write_build_id): Handle single-thread portion of build ID
computation. (In some cases, all of it is single-threaded.) Replace
{sha1,md5}_process_bytes with {sha1,md5}_buffer to get the same
functionality in fewer lines of code.
* layout.h (Layout::queue_build_id_tasks): New function declaration.
* options.h (General_options): make "--build-id" default to tree
rather than sha1. Add two new options related to --build-id=tree:
--build-id-chunk-size-for-treehash and
--build-id-min-file-size-for-treehash.
* Makefile.am: add testing of --build-id=tree and related new options
(these tests will be invoked by "make check").
* Makefile.in: Regenerate.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h index 66fcf3e..75dbee5 100644 --- a/gold/options.h +++ b/gold/options.h @@ -678,10 +678,19 @@ class General_options DEFINE_bool(Bsymbolic_functions, options::ONE_DASH, '\0', false, N_("Bind defined function symbols locally"), NULL); - DEFINE_optional_string(build_id, options::TWO_DASHES, '\0', "sha1", + DEFINE_optional_string(build_id, options::TWO_DASHES, '\0', "tree", N_("Generate build ID note"), N_("[=STYLE]")); + DEFINE_uint64(build_id_chunk_size_for_treehash, + options::TWO_DASHES, '\0', 2 << 20, + N_("Chunk size for '--build-id=tree'"), N_("SIZE")); + + DEFINE_uint64(build_id_min_file_size_for_treehash, options::TWO_DASHES, + '\0', 40 << 20, + N_("Minimum output file size for '--build-id=tree' to work" + " differently than '--build-id=sha1'"), N_("SIZE")); + DEFINE_bool(check_sections, options::TWO_DASHES, '\0', true, N_("Check segment addresses for overlaps (default)"), N_("Do not check segment addresses for overlaps")); |