2013-04-26 Geoff Pike <gpike@chromium.org>
authorCary Coutant <ccoutant@google.com>
Fri, 26 Apr 2013 21:38:57 +0000 (21:38 +0000)
committerCary Coutant <ccoutant@google.com>
Fri, 26 Apr 2013 21:38:57 +0000 (21:38 +0000)
commite7c5ea405fd863a9fcf85d49694e0f69fd5511ec
treeb0f6073044c3fcf77b5cfba088ef59bc3ccf052c
parentee441d9a9a2df27e795cfdbf80048f42bb1504cc
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.
gold/ChangeLog
gold/Makefile.am
gold/Makefile.in
gold/gold.cc
gold/layout.cc
gold/layout.h
gold/options.h