* version.cc (print_version): Adjust output for current value of
[platform/upstream/binutils.git] / gold / ChangeLog
1 2008-03-25  Ian Lance Taylor  <iant@google.com>
2
3         * version.cc (print_version): Adjust output for current value of
4         BFD_VERSION_STRING.
5
6         * NEWS: New file.
7
8         * options.cc (options::help): Print list of supported targets.
9         * target-select.h: Include <vector>.
10         (class Target_selector): Make machine_, size_, and is_big_endian_
11         fields const.  Add bfd_name_ and instantiated_target_ fields.
12         (Target_selector::Target_selector): Add bfd_name parameter.
13         (Target_selector::recognize): Make non-virtual, call
14         do_recognize.
15         (Target_selector::recognize_by_name): Make non-virtual, call
16         do_recognize_by_name.
17         (Target_selector::supported_names): New function.
18         (Target_selector::bfd_name): New function.
19         (Target_selector::do_instantiate_target): New pure virtual
20         function.
21         (Target_selector::do_recognize): New virtual function.
22         (Target_selector::do_recognize_by_name): New virtual function.
23         (Target_selector::instantiate_target): New private function.
24         (supported_target_names): Declare.
25         * target-select.cc (Target_selector::Target_selector): Update for
26         new parameter and fields.
27         (select_target_by_name): Check that the name matches before
28         calling recognize_by_name.
29         (supported_target_names): New function.
30         * i386.cc (class Target_selector_i386): Update Target_selector
31         constructor call.  Remove recognize and recognize_by_name.  Add
32         do_instantiate_target.
33         * x86_64.cc (class Target_selector_x86_64): Likewise.
34         * testsuite/testfile.cc (class Target_selector_test): Update for
35         changes to Target_selector.
36
37         * README: Rewrite, with some notes on unsupported features.
38
39 2008-03-24  Cary Coutant  <ccoutant@google.com>
40
41         * i386.cc (Target_i386::Got_type): New enum declaration.
42         (Target_i386::Scan::local): Updated callers of Output_data_got
43         member functions.
44         (Target_i386::Scan::global): Likewise.
45         (Target_i386::Relocate::relocate): Likewise.
46         (Target_i386::Relocate::relocate_tls): Likewise.
47         * object.h (Got_offset_list): New class.
48         (Sized_relobj::local_has_got_offset): Added got_type parameter.
49         (Sized_relobj::local_got_offset): Likewise.
50         (Sized_relobj::set_local_got_offset): Likewise.
51         (Sized_relobj::local_has_tls_got_offset): Removed.
52         (Sized_relobj::local_tls_got_offset): Removed.
53         (Sized_relobj::set_local_tls_got_offset): Removed.
54         (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
55         * output.cc (Output_data_got::add_global): Added got_type parameter.
56         (Output_data_got::add_global_with_rel): Likewise.
57         (Output_data_got::add_global_with_rela): Likewise.
58         (Output_data_got::add_global_pair_with_rel): New function.
59         (Output_data_got::add_global_pair_with_rela): New function.
60         (Output_data_got::add_local): Added got_type parameter.
61         (Output_data_got::add_local_with_rel): Likewise.
62         (Output_data_got::add_local_with_rela): Likewise.
63         (Output_data_got::add_local_pair_with_rel): New function.
64         (Output_data_got::add_local_pair_with_rela): New function.
65         (Output_data_got::add_global_tls): Removed.
66         (Output_data_got::add_global_tls_with_rel): Removed.
67         (Output_data_got::add_global_tls_with_rela): Removed.
68         (Output_data_got::add_local_tls): Removed.
69         (Output_data_got::add_local_tls_with_rel): Removed.
70         (Output_data_got::add_local_tls_with_rela): Removed.
71         * output.h (Output_data_got::add_global): Added got_type parameter.
72         (Output_data_got::add_global_with_rel): Likewise.
73         (Output_data_got::add_global_with_rela): Likewise.
74         (Output_data_got::add_global_pair_with_rel): New function.
75         (Output_data_got::add_global_pair_with_rela): New function.
76         (Output_data_got::add_local): Added got_type parameter.
77         (Output_data_got::add_local_with_rel): Likewise.
78         (Output_data_got::add_local_with_rela): Likewise.
79         (Output_data_got::add_local_pair_with_rel): New function.
80         (Output_data_got::add_local_pair_with_rela): New function.
81         (Output_data_got::add_global_tls): Removed.
82         (Output_data_got::add_global_tls_with_rel): Removed.
83         (Output_data_got::add_global_tls_with_rela): Removed.
84         (Output_data_got::add_local_tls): Removed.
85         (Output_data_got::add_local_tls_with_rel): Removed.
86         (Output_data_got::add_local_tls_with_rela): Removed.
87         * resolve.cc (Symbol::override_base_with_special): Removed
88         reference to has_got_offset_ field.
89         * symtab.cc (Symbol::init_fields): Replaced initialization
90         of got_offset_ with got_offsets_.  Removed initialization
91         of has_got_offset_
92         *symtab.h (Symbol::has_got_offset): Aded got_type parameter.
93         (Symbol::got_offset): Likewise.
94         (Symbol::set_got_offset): Likewise.
95         (Symbol::has_tls_got_offset): Removed.
96         (Symbol::tls_got_offset): Removed.
97         (Symbol::set_tls_got_offset): Removed.
98         (Symbol::got_offset_): Removed.
99         (Symbol::tls_mod_got_offset_): Removed.
100         (Symbol::tls_pair_got_offset_): Removed.
101         (Symbol::got_offsets_): New field.
102         (Symbol::has_got_offset): Removed.
103         (Symbol::has_tls_mod_got_offset): Removed.
104         (Symbol::has_tls_pair_got_offset): Removed.
105         * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
106         (Target_x86_64::Scan::local): Updated callers of Output_data_got
107         member functions.
108         (Target_x86_64::Scan::global): Likewise.
109         (Target_x86_64::Relocate::relocate): Likewise.
110         (Target_x86_64::Relocate::relocate_tls): Likewise.
111
112 2008-03-25  Ben Elliston  <bje@au.ibm.com>
113
114         * yyscript.y: Fix spelling error in comment.
115
116 2008-03-24  Ian Lance Taylor  <iant@google.com>
117
118         * options.h (class General_options): Define build_id option.
119         * layout.h (class Layout): Declare write_build_id, create_note,
120         create_build_id.  Add build_id_note_ member.
121         * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
122         "libiberty.h", "md5.h", "sha1.h".
123         (Layout::Layout): Initialize eh_frame_data_,
124         eh_frame_hdr_section_, and build_id_note_.
125         (Layout::finalize): Call create_build_id.
126         (Layout::create_note): New function, broken out of
127         Layout::create_gold_note.
128         (Layout::create_gold_note): Call create_note.
129         (Layout::create_build_id): New function.
130         (Layout::write_build_id): New function.
131         (Close_task_runner::run): Call write_build_id.
132
133         * x86_64.cc: Correct license to GPLv3.
134
135 2008-03-23  Ian Lance Taylor  <iant@google.com>
136
137         * options.cc: Include "demangle.h".
138         (parse_optional_string): New function.
139         (parse_long_option): Handle takes_optional_argument.
140         (parse_short_option): Update dash_z initializer.  Handle
141         takes_optional_argument.
142         (General_options::General_options): Initialize do_demangle_.
143         (General_options::finalize): Set do_demangle_.  Handle demangling
144         style.
145         * options.h (parse_optional_string): Declare.
146         (struct One_option): Add optional_arg field.  Update constructor.
147         Update call constructor calls.  Add takes_optional_argument
148         function.
149         (DEFINE_var): Add optional_arg__ parameter.  Change all callers.
150         (DEFINE_optional_string): Define.
151         (General_options::demangle): Change from DEFINE_bool to
152         DEFINE_optional_string.
153         (General_options::no_demangle): New function.
154         (General_options::do_demangle): New function.
155         (General_options::set_do_demangle): New function.
156         (General_options::execstack_status_): Move definition to end of
157         class definition.
158         (General_options::static_): Likewise.
159         (General_options::do_demangle_): New field.
160         * object.cc (big_endian>::get_symbol_location_info): Call
161         Options::do_demangle, not Options::demangle.
162         * symtab.cc (demangle): Likewise.
163
164 2008-03-22  Ian Lance Taylor  <iant@google.com>
165
166         * gold.h: Include <cstddef> and <sys/types.h>
167         * options.h: Include <cstring>.
168
169 2008-03-21  Ian Lance Taylor  <iant@google.com>
170
171         * Added source code to GNU binutils.
172