* options.h (class General_options): Define build_id option.
[external/binutils.git] / gold / ChangeLog
1 2008-03-24  Ian Lance Taylor  <iant@google.com>
2
3         * options.h (class General_options): Define build_id option.
4         * layout.h (class Layout): Declare write_build_id, create_note,
5         create_build_id.  Add build_id_note_ member.
6         * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
7         "libiberty.h", "md5.h", "sha1.h".
8         (Layout::Layout): Initialize eh_frame_data_,
9         eh_frame_hdr_section_, and build_id_note_.
10         (Layout::finalize): Call create_build_id.
11         (Layout::create_note): New function, broken out of
12         Layout::create_gold_note.
13         (Layout::create_gold_note): Call create_note.
14         (Layout::create_build_id): New function.
15         (Layout::write_build_id): New function.
16         (Close_task_runner::run): Call write_build_id.
17
18         * x86_64.cc: Correct license to GPLv3.
19
20 2008-03-23  Ian Lance Taylor  <iant@google.com>
21
22         * options.cc: Include "demangle.h".
23         (parse_optional_string): New function.
24         (parse_long_option): Handle takes_optional_argument.
25         (parse_short_option): Update dash_z initializer.  Handle
26         takes_optional_argument.
27         (General_options::General_options): Initialize do_demangle_.
28         (General_options::finalize): Set do_demangle_.  Handle demangling
29         style.
30         * options.h (parse_optional_string): Declare.
31         (struct One_option): Add optional_arg field.  Update constructor.
32         Update call constructor calls.  Add takes_optional_argument
33         function.
34         (DEFINE_var): Add optional_arg__ parameter.  Change all callers.
35         (DEFINE_optional_string): Define.
36         (General_options::demangle): Change from DEFINE_bool to
37         DEFINE_optional_string.
38         (General_options::no_demangle): New function.
39         (General_options::do_demangle): New function.
40         (General_options::set_do_demangle): New function.
41         (General_options::execstack_status_): Move definition to end of
42         class definition.
43         (General_options::static_): Likewise.
44         (General_options::do_demangle_): New field.
45         * object.cc (big_endian>::get_symbol_location_info): Call
46         Options::do_demangle, not Options::demangle.
47         * symtab.cc (demangle): Likewise.
48
49 2008-03-22  Ian Lance Taylor  <iant@google.com>
50
51         * gold.h: Include <cstddef> and <sys/types.h>
52         * options.h: Include <cstring>.
53
54 2008-03-21  Ian Lance Taylor  <iant@google.com>
55
56         * Added source code to GNU binutils.
57