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