* options.h (class General_options): Define build_id option.
commitd09d574bd1ba6b9085f2c9168cb76bea68c60cbd
authorIan Lance Taylor <ian@airs.com>
Tue, 25 Mar 2008 05:11:41 +0000 (25 05:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 25 Mar 2008 05:11:41 +0000 (25 05:11 +0000)
tree556fc2ce3aaa1d5a8d10192b7b8bbae75c060cf9
parent83cd77ff0623fdff0b2f46768c23b74da400fcf9
* 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