* symtab.cc (Symbol_table::add_from_relobj): Don't set the version
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2008-03-26 Ian Lance Taylor <iant@google.com>
2
3 * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
4 of an undefined symbol from a version script.
5 * testsuite/Makefile.am (ver_test_5.so): New target.
6 (ver_test_5.o): New target.
7 (check_SCRIPTS): Add ver_test_5.sh.
8 (check_DATA): Add ver_test_5.syms.
9 (ver_test_5.syms): New target.
10 * testsuite/ver_test_5.cc: New file.
11 * testsuite/ver_test_5.script: New file.
12 * testsuite/ver_test_5.sh: New file.
13 * Makefile.in, testsuite/Makefile.in: Rebuild.
14
15 PR gold/5986
16 Fix problems building gold with gcc 4.3.0.
17 * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
18 (gold_error_at_location, gold_warning_at_location): Use it.
19 * configure.ac: Check whether we can compile and use a template
20 function with a printf attribute.
21 * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
22 when jumping over bytes.
23 * object.cc: Instantiate Object::read_section_data.
24 * debug.h: Include <cstring>
25 * dwarf_reader.cc: Include <algorithm>
26 * main.cc: Include <cstring>.
27 * options.cc: Include <cstring>.
28 * output.cc: Include <cstring>.
29 * script.cc: Include <cstring>.
30 * script.h: Include <string>.
31 * symtab.cc: Include <cstring> and <algorithm>.
32 * target-select.cc: Include <cstring>.
33 * version.cc: Include <string>.
34 * testsuite/testmain.cc: Include <cstdlib>.
35 * configure, config.in: Rebuild.
36
37 2008-03-25 Ian Lance Taylor <iant@google.com>
38
39 * options.cc: Include "../bfd/bfdver.h".
40 (options::help): Print bug reporting address.
41
42 * version.cc (print_version): Adjust output for current value of
43 BFD_VERSION_STRING.
44
45 * NEWS: New file.
46
47 * options.cc (options::help): Print list of supported targets.
48 * target-select.h: Include <vector>.
49 (class Target_selector): Make machine_, size_, and is_big_endian_
50 fields const. Add bfd_name_ and instantiated_target_ fields.
51 (Target_selector::Target_selector): Add bfd_name parameter.
52 (Target_selector::recognize): Make non-virtual, call
53 do_recognize.
54 (Target_selector::recognize_by_name): Make non-virtual, call
55 do_recognize_by_name.
56 (Target_selector::supported_names): New function.
57 (Target_selector::bfd_name): New function.
58 (Target_selector::do_instantiate_target): New pure virtual
59 function.
60 (Target_selector::do_recognize): New virtual function.
61 (Target_selector::do_recognize_by_name): New virtual function.
62 (Target_selector::instantiate_target): New private function.
63 (supported_target_names): Declare.
64 * target-select.cc (Target_selector::Target_selector): Update for
65 new parameter and fields.
66 (select_target_by_name): Check that the name matches before
67 calling recognize_by_name.
68 (supported_target_names): New function.
69 * i386.cc (class Target_selector_i386): Update Target_selector
70 constructor call. Remove recognize and recognize_by_name. Add
71 do_instantiate_target.
72 * x86_64.cc (class Target_selector_x86_64): Likewise.
73 * testsuite/testfile.cc (class Target_selector_test): Update for
74 changes to Target_selector.
75
76 * README: Rewrite, with some notes on unsupported features.
77
78 2008-03-24 Cary Coutant <ccoutant@google.com>
79
80 * i386.cc (Target_i386::Got_type): New enum declaration.
81 (Target_i386::Scan::local): Updated callers of Output_data_got
82 member functions.
83 (Target_i386::Scan::global): Likewise.
84 (Target_i386::Relocate::relocate): Likewise.
85 (Target_i386::Relocate::relocate_tls): Likewise.
86 * object.h (Got_offset_list): New class.
87 (Sized_relobj::local_has_got_offset): Added got_type parameter.
88 (Sized_relobj::local_got_offset): Likewise.
89 (Sized_relobj::set_local_got_offset): Likewise.
90 (Sized_relobj::local_has_tls_got_offset): Removed.
91 (Sized_relobj::local_tls_got_offset): Removed.
92 (Sized_relobj::set_local_tls_got_offset): Removed.
93 (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
94 * output.cc (Output_data_got::add_global): Added got_type parameter.
95 (Output_data_got::add_global_with_rel): Likewise.
96 (Output_data_got::add_global_with_rela): Likewise.
97 (Output_data_got::add_global_pair_with_rel): New function.
98 (Output_data_got::add_global_pair_with_rela): New function.
99 (Output_data_got::add_local): Added got_type parameter.
100 (Output_data_got::add_local_with_rel): Likewise.
101 (Output_data_got::add_local_with_rela): Likewise.
102 (Output_data_got::add_local_pair_with_rel): New function.
103 (Output_data_got::add_local_pair_with_rela): New function.
104 (Output_data_got::add_global_tls): Removed.
105 (Output_data_got::add_global_tls_with_rel): Removed.
106 (Output_data_got::add_global_tls_with_rela): Removed.
107 (Output_data_got::add_local_tls): Removed.
108 (Output_data_got::add_local_tls_with_rel): Removed.
109 (Output_data_got::add_local_tls_with_rela): Removed.
110 * output.h (Output_data_got::add_global): Added got_type parameter.
111 (Output_data_got::add_global_with_rel): Likewise.
112 (Output_data_got::add_global_with_rela): Likewise.
113 (Output_data_got::add_global_pair_with_rel): New function.
114 (Output_data_got::add_global_pair_with_rela): New function.
115 (Output_data_got::add_local): Added got_type parameter.
116 (Output_data_got::add_local_with_rel): Likewise.
117 (Output_data_got::add_local_with_rela): Likewise.
118 (Output_data_got::add_local_pair_with_rel): New function.
119 (Output_data_got::add_local_pair_with_rela): New function.
120 (Output_data_got::add_global_tls): Removed.
121 (Output_data_got::add_global_tls_with_rel): Removed.
122 (Output_data_got::add_global_tls_with_rela): Removed.
123 (Output_data_got::add_local_tls): Removed.
124 (Output_data_got::add_local_tls_with_rel): Removed.
125 (Output_data_got::add_local_tls_with_rela): Removed.
126 * resolve.cc (Symbol::override_base_with_special): Removed
127 reference to has_got_offset_ field.
128 * symtab.cc (Symbol::init_fields): Replaced initialization
129 of got_offset_ with got_offsets_. Removed initialization
130 of has_got_offset_
131 * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
132 (Symbol::got_offset): Likewise.
133 (Symbol::set_got_offset): Likewise.
134 (Symbol::has_tls_got_offset): Removed.
135 (Symbol::tls_got_offset): Removed.
136 (Symbol::set_tls_got_offset): Removed.
137 (Symbol::got_offset_): Removed.
138 (Symbol::tls_mod_got_offset_): Removed.
139 (Symbol::tls_pair_got_offset_): Removed.
140 (Symbol::got_offsets_): New field.
141 (Symbol::has_got_offset): Removed.
142 (Symbol::has_tls_mod_got_offset): Removed.
143 (Symbol::has_tls_pair_got_offset): Removed.
144 * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
145 (Target_x86_64::Scan::local): Updated callers of Output_data_got
146 member functions.
147 (Target_x86_64::Scan::global): Likewise.
148 (Target_x86_64::Relocate::relocate): Likewise.
149 (Target_x86_64::Relocate::relocate_tls): Likewise.
150
151 2008-03-25 Ben Elliston <bje@au.ibm.com>
152
153 * yyscript.y: Fix spelling error in comment.
154
155 2008-03-24 Ian Lance Taylor <iant@google.com>
156
157 * options.h (class General_options): Define build_id option.
158 * layout.h (class Layout): Declare write_build_id, create_note,
159 create_build_id. Add build_id_note_ member.
160 * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
161 "libiberty.h", "md5.h", "sha1.h".
162 (Layout::Layout): Initialize eh_frame_data_,
163 eh_frame_hdr_section_, and build_id_note_.
164 (Layout::finalize): Call create_build_id.
165 (Layout::create_note): New function, broken out of
166 Layout::create_gold_note.
167 (Layout::create_gold_note): Call create_note.
168 (Layout::create_build_id): New function.
169 (Layout::write_build_id): New function.
170 (Close_task_runner::run): Call write_build_id.
171
172 * x86_64.cc: Correct license to GPLv3.
173
174 2008-03-23 Ian Lance Taylor <iant@google.com>
175
176 * options.cc: Include "demangle.h".
177 (parse_optional_string): New function.
178 (parse_long_option): Handle takes_optional_argument.
179 (parse_short_option): Update dash_z initializer. Handle
180 takes_optional_argument.
181 (General_options::General_options): Initialize do_demangle_.
182 (General_options::finalize): Set do_demangle_. Handle demangling
183 style.
184 * options.h (parse_optional_string): Declare.
185 (struct One_option): Add optional_arg field. Update constructor.
186 Update call constructor calls. Add takes_optional_argument
187 function.
188 (DEFINE_var): Add optional_arg__ parameter. Change all callers.
189 (DEFINE_optional_string): Define.
190 (General_options::demangle): Change from DEFINE_bool to
191 DEFINE_optional_string.
192 (General_options::no_demangle): New function.
193 (General_options::do_demangle): New function.
194 (General_options::set_do_demangle): New function.
195 (General_options::execstack_status_): Move definition to end of
196 class definition.
197 (General_options::static_): Likewise.
198 (General_options::do_demangle_): New field.
199 * object.cc (big_endian>::get_symbol_location_info): Call
200 Options::do_demangle, not Options::demangle.
201 * symtab.cc (demangle): Likewise.
202
203 2008-03-22 Ian Lance Taylor <iant@google.com>
204
205 * gold.h: Include <cstddef> and <sys/types.h>
206 * options.h: Include <cstring>.
207
208 2008-03-21 Ian Lance Taylor <iant@google.com>
209
210 * Added source code to GNU binutils.
211
This page took 0.047309 seconds and 4 git commands to generate.