* options.h (class General_options): Define build_id option.
authorIan Lance Taylor <ian@airs.com>
Tue, 25 Mar 2008 05:11:41 +0000 (05:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 25 Mar 2008 05:11:41 +0000 (05:11 +0000)
commit8ed814a99c1393f82d754fba230c6187eecc2e2e
treec13bb1cf83fb27336aae697f94e8a1fb69ec9380
parentbaf4901374130b96e5d3792794b29b8dfb46dd32
* options.h (class General_options): Define build_id option.
* layout.h (class Layout): Declare write_build_id, create_note,
create_build_id.  Add build_id_note_ member.
* layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
"libiberty.h", "md5.h", "sha1.h".
(Layout::Layout): Initialize eh_frame_data_,
eh_frame_hdr_section_, and build_id_note_.
(Layout::finalize): Call create_build_id.
(Layout::create_note): New function, broken out of
Layout::create_gold_note.
(Layout::create_gold_note): Call create_note.
(Layout::create_build_id): New function.
(Layout::write_build_id): New function.
(Close_task_runner::run): Call write_build_id.
gold/ChangeLog
gold/layout.cc
gold/layout.h
gold/options.h