aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-03-25 05:11:41 +0000
committerIan Lance Taylor <ian@airs.com>2008-03-25 05:11:41 +0000
commit8ed814a99c1393f82d754fba230c6187eecc2e2e (patch)
treec13bb1cf83fb27336aae697f94e8a1fb69ec9380 /gold/options.h
parentbaf4901374130b96e5d3792794b29b8dfb46dd32 (diff)
downloadgdb-8ed814a99c1393f82d754fba230c6187eecc2e2e.zip
gdb-8ed814a99c1393f82d754fba230c6187eecc2e2e.tar.gz
gdb-8ed814a99c1393f82d754fba230c6187eecc2e2e.tar.bz2
* 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.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index a9b546b..b95a705 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -460,6 +460,10 @@ class General_options
DEFINE_bool(Bsymbolic, options::ONE_DASH, '\0', false,
N_("Bind defined symbols locally"), NULL);
+ DEFINE_optional_string(build_id, options::TWO_DASHES, '\0', "sha1",
+ N_("Generate build ID note"),
+ N_("[=STYLE]"));
+
#ifdef HAVE_ZLIB_H
DEFINE_enum(compress_debug_sections, options::TWO_DASHES, '\0', "none",
N_("Compress .debug_* sections in the output file"),