OSDN Git Service

* options.h (class General_options): Define build_id option.
authorian <ian>
Tue, 25 Mar 2008 05:11:41 +0000 (05:11 +0000)
committerian <ian>
Tue, 25 Mar 2008 05:11:41 +0000 (05:11 +0000)
commit16b61c73688918a4ea858192c55d120465a21572
tree6c34a6a72d945ca62867a4d80997eb76d45d6958
parent1d70ae8c9a361e7fe8aa725dadec4e5b2e50fb31
* 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