gas/
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
126f3ece
ILT
12008-04-03 Craig Silverstein <csilvers@google.com>
2
3 * compressed_output.h (class Output_compressed_section): Use
4 unsigned buffer.
5 * compressed_output.cc (zlib_compress): Use unsigned buffers,
6 add zlib header.
7 (zlib_compressed_suffix): Removed.
8 (Output_compressed_section::set_final_data_size): Use unsigned
9 buffers.
10 * testsuite/Makefile.am (flagstest_compress_debug_sections):
11 Fix linker invocation.
12 (flagstest_o_specialfile_and_compress_debug_sections):
13 Likewise.
14 * testsuite/Makefile.in: Regenerated.
15
deae2a14
DM
162008-04-02 David S. Miller <davem@davemloft.net>
17
18 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog,
19 Sized_dwarf_line_info::process_one_opcode): Use Swap_unaligned.
20
70752818
ILT
212008-04-02 Craig Silverstein <csilvers@google.com>
22
23 * TODO: New file.
24
39d0cb0e
ILT
252008-04-02 Ian Lance Taylor <iant@google.com>
26
27 * fileread.cc (File_read::find_view): Add byteshift and vshifted
28 parameters. Update for new key type to views_. Change all
29 callers.
30 (File_read::read): Adjust for byteshift in returned view.
31 (File_read::add_view): New function, broken out of
32 find_and_make_view.
33 (File_read::make_view): New function, broken out of
34 find_and_make_view.
35 (File_read::find_or_make_view): Add offset and aligned
36 parameters. Rewrite accordingly. Change all callers.
37 (File_read::get_view): Add offset and aligned parameters. Adjust
38 for byteshift in return value.
39 (File_read::get_lasting_view): Likewise.
40 * fileread.h (class File_read): Update declarations.
41 (class File_read::View): Add byteshift_ field. Add byteshift to
42 constructor. Add byteshift method.
43 * archive.h (Archive::clear_uncached_views): New function.
44 (Archive::get_view): Add aligned parameter. Change all callers.
45 * object.h (Object::get_view): Add aligned parameter. Change all
46 callers.
47 (Object::get_lasting_view): Likewise.
48
49 * fileread.cc (File_read::release): Don't call clear_views if
50 there are multiple objects.
51 * fileread.h (File_read::clear_uncached_views): New function.
52 * archive.cc (Add_archive_symbols::run): Call clear_uncached_views
53 on the archive.
54
a1207466
CC
552008-03-31 Cary Coutant <ccoutant@google.com>
56
57 Add thin archive support.
58 * archive.cc (Archive::armagt): New const.
59 (Archive::setup): Remove task parameter and calls to unlock.
60 (Archive::unlock_nested_archives): New function.
61 (Archive::read_header): Add nested_off parameter. Change
62 all callers.
63 (Archive::interpret_header): Likewise.
64 (Archive::include_all_members): Change to handle thin
65 archives.
66 (Archive::include_member): Likewise.
67 * archive.h (Archive::Archive): Add new parameters and
68 initializers.
69 (Archive::armagt): New const.
70 (Archive::setup): Remove task parameter.
71 (Archive::unlock_nested_archives): New function.
72 (Archive::read_header): Add nested_off parameter.
73 (Archive::interpret_header): Likewise.
74 (Archive::Nested_archive_table): New typedef.
75 (Archive::is_thin_archive_): New field.
76 (Archive::nested_archives_): New field.
77 (Archive::options_): New field.
78 (Archive::dirpath_): New field.
79 (Archive::task_): New field.
80 * readsyms.cc (Read_symbols::do_read_symbols): Add check
81 for thin archives. Pass additional parameters to
82 Archive::Archive. Unlock the archive file after calling
83 Archive::setup.
84
479f6503
ILT
852008-03-29 Ian Lance Taylor <iant@google.com>
86
686c8caf
ILT
87 * symtab.cc (Symbol_table::do_define_as_constant): Don't force a
88 version symbol to be local.
89 * testsuite/ver_test_4.sh: New file.
90 * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_4.sh.
91 (check_DATA): Add ver_test_4.syms.
92 (ver_test_4.syms): New target.
93 * testsuite/Makefile.in: Rebuild.
94
ab794b6b
ILT
95 * output.cc
96 (Output_section::Input_section_sort_entry::has_priority): New
97 function.
98 (Output_section::Input_section_sort_entry::match_file_name): New
99 function.
100 (Output_section::Input_section_sort_entry::match_section_name):
101 Remove.
102 (Output_section::Input_section_sort_entry::match_section_name_prefix):
103 Remove.
104 (Output_section::Input_section_sort_entry::match_section_file):
105 Remove.
106 (Output_section::Input_section_sort_compare::operator()): Rewrite
107 using new Input_section_sort_entry functions. Sort crtbegin and
108 crtend first. Sort sections with no priority before sections with
109 a priority.
110 * testsuite/initpri1.c (d3): Check j != 4.
111 (cd5): New constructor/destructor function.
112 (main): Check j != 2.
113
479f6503
ILT
114 * symtab.cc (Symbol_table::add_from_object): If we don't use the
115 new symbol when resolving, don't call set_is_default.
116 * testsuite/ver_test_7.cc: New file.
117 * testsuite/ver_test_7.sh: New file.
118 * testsuite/Makefile.am (ver_test_7.so): New target.
119 (ver_test_7.o): New target.
120 (check_SCRIPTS): Add ver_test_7.sh.
121 (check_DATA): Add ver_test_7.syms.
122 (ver_test_7.syms): New target.
123
2fd32231
ILT
1242008-03-28 Ian Lance Taylor <iant@google.com>
125
126 * layout.cc (Layout::layout): If we see an input section with a
127 name that needs sorting, set the must_sort flag for the output
128 section.
129 (Layout::make_output_section): If the name of the output section
130 indicates that it might require sorting, set the may_sort flag.
131 * output.h (Output_section::may_sort_attached_input_sections): New
132 function.
133 (Output_section::set_may_sort_attached_input_sections): New
134 function.
135 (Output_section::must_sort_attached_input_sections): New
136 function.
137 (Output_section::set_must_sort_attached_input_sections): New
138 function.
139 (class Output_section): Declare Input_section_sort_entry. Define
140 Input_section_sort_compare. Declare
141 sort_attached_input_sections. Add new fields:
142 may_sort_attached_input_sections_,
143 must_sort_attached_input_sections_,
144 attached_input_sections_are_sorted_.
145 * output.cc (Output_section::Output_section): Initialize new
146 fields.
147 (Output_section::add_input_section): Add an entry to
148 input_sections_ if may_sort or must_sort are true.
149 (Output_section::set_final_data_size): Call
150 sort_attached_input_sections if necessary.
151 (Output_section::Input_section_sort_entry): Define new class.
152 (Output_section::Input_section_sort_compare::operator()): New
153 function.
154 (Output_section::sort_attached_input_sections): New function.
155 * configure.ac: Check whether the compiler supports constructor
156 priorities. Define a CONSTRUCTOR_PRIORITY automake conditional.
157 * testsuite/initpri1.c: New file.
158 * testsuite/Makefile.am (check_PROGRAMS): Add initpri1 if
159 CONSTRUCTOR_PRIORITY.
160 (initpri1_SOURCES, initpri1_DEPENDENCIES): New variables.
161 (initpri1_LDFLAGS): New variable.
162 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
163
18e6b24e
ILT
1642008-03-27 Ian Lance Taylor <iant@google.com>
165
49bdd526
ILT
166 * common.cc (Sort_commons::operator): Correct sorting algorithm.
167 * testsuite/common_test_1.c: New file.
168 * testsuite/Makefile.am (check_PROGRAMS): Add common_test_1.
169 (common_test_1_SOURCES): New variable.
170 (common_test_1_DEPENDENCIES): New variable.
171 (common_test_1_LDFLAGS): New variable.
172
18e6b24e
ILT
173 * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
174 and commons_ correctly when NAME/VERSION does not override
175 NAME/NULL.
176 * testsuite/ver_test_6.c: New file.
177 * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
178 (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
179 (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
180
04bf7072
ILT
1812008-03-26 Ian Lance Taylor <iant@google.com>
182
5871526f
ILT
183 * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
184 of an undefined symbol from a version script.
185 * testsuite/Makefile.am (ver_test_5.so): New target.
186 (ver_test_5.o): New target.
187 (check_SCRIPTS): Add ver_test_5.sh.
188 (check_DATA): Add ver_test_5.syms.
189 (ver_test_5.syms): New target.
190 * testsuite/ver_test_5.cc: New file.
191 * testsuite/ver_test_5.script: New file.
192 * testsuite/ver_test_5.sh: New file.
193 * Makefile.in, testsuite/Makefile.in: Rebuild.
194
04bf7072
ILT
195 PR gold/5986
196 Fix problems building gold with gcc 4.3.0.
197 * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
198 (gold_error_at_location, gold_warning_at_location): Use it.
199 * configure.ac: Check whether we can compile and use a template
200 function with a printf attribute.
201 * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
202 when jumping over bytes.
203 * object.cc: Instantiate Object::read_section_data.
204 * debug.h: Include <cstring>
205 * dwarf_reader.cc: Include <algorithm>
206 * main.cc: Include <cstring>.
207 * options.cc: Include <cstring>.
208 * output.cc: Include <cstring>.
209 * script.cc: Include <cstring>.
210 * script.h: Include <string>.
211 * symtab.cc: Include <cstring> and <algorithm>.
212 * target-select.cc: Include <cstring>.
213 * version.cc: Include <string>.
214 * testsuite/testmain.cc: Include <cstdlib>.
215 * configure, config.in: Rebuild.
216
874c5b28
ILT
2172008-03-25 Ian Lance Taylor <iant@google.com>
218
819d6c3a
ILT
219 * options.cc: Include "../bfd/bfdver.h".
220 (options::help): Print bug reporting address.
221
f4b2c6f5
ILT
222 * version.cc (print_version): Adjust output for current value of
223 BFD_VERSION_STRING.
224
225 * NEWS: New file.
226
e96caa79
ILT
227 * options.cc (options::help): Print list of supported targets.
228 * target-select.h: Include <vector>.
229 (class Target_selector): Make machine_, size_, and is_big_endian_
230 fields const. Add bfd_name_ and instantiated_target_ fields.
231 (Target_selector::Target_selector): Add bfd_name parameter.
232 (Target_selector::recognize): Make non-virtual, call
233 do_recognize.
234 (Target_selector::recognize_by_name): Make non-virtual, call
235 do_recognize_by_name.
236 (Target_selector::supported_names): New function.
237 (Target_selector::bfd_name): New function.
238 (Target_selector::do_instantiate_target): New pure virtual
239 function.
240 (Target_selector::do_recognize): New virtual function.
241 (Target_selector::do_recognize_by_name): New virtual function.
242 (Target_selector::instantiate_target): New private function.
243 (supported_target_names): Declare.
244 * target-select.cc (Target_selector::Target_selector): Update for
245 new parameter and fields.
246 (select_target_by_name): Check that the name matches before
247 calling recognize_by_name.
248 (supported_target_names): New function.
249 * i386.cc (class Target_selector_i386): Update Target_selector
250 constructor call. Remove recognize and recognize_by_name. Add
251 do_instantiate_target.
252 * x86_64.cc (class Target_selector_x86_64): Likewise.
253 * testsuite/testfile.cc (class Target_selector_test): Update for
254 changes to Target_selector.
255
874c5b28
ILT
256 * README: Rewrite, with some notes on unsupported features.
257
0a65a3a7
CC
2582008-03-24 Cary Coutant <ccoutant@google.com>
259
260 * i386.cc (Target_i386::Got_type): New enum declaration.
261 (Target_i386::Scan::local): Updated callers of Output_data_got
262 member functions.
263 (Target_i386::Scan::global): Likewise.
264 (Target_i386::Relocate::relocate): Likewise.
265 (Target_i386::Relocate::relocate_tls): Likewise.
266 * object.h (Got_offset_list): New class.
267 (Sized_relobj::local_has_got_offset): Added got_type parameter.
268 (Sized_relobj::local_got_offset): Likewise.
269 (Sized_relobj::set_local_got_offset): Likewise.
270 (Sized_relobj::local_has_tls_got_offset): Removed.
271 (Sized_relobj::local_tls_got_offset): Removed.
272 (Sized_relobj::set_local_tls_got_offset): Removed.
273 (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
274 * output.cc (Output_data_got::add_global): Added got_type parameter.
275 (Output_data_got::add_global_with_rel): Likewise.
276 (Output_data_got::add_global_with_rela): Likewise.
277 (Output_data_got::add_global_pair_with_rel): New function.
278 (Output_data_got::add_global_pair_with_rela): New function.
279 (Output_data_got::add_local): Added got_type parameter.
280 (Output_data_got::add_local_with_rel): Likewise.
281 (Output_data_got::add_local_with_rela): Likewise.
282 (Output_data_got::add_local_pair_with_rel): New function.
283 (Output_data_got::add_local_pair_with_rela): New function.
284 (Output_data_got::add_global_tls): Removed.
285 (Output_data_got::add_global_tls_with_rel): Removed.
286 (Output_data_got::add_global_tls_with_rela): Removed.
287 (Output_data_got::add_local_tls): Removed.
288 (Output_data_got::add_local_tls_with_rel): Removed.
289 (Output_data_got::add_local_tls_with_rela): Removed.
290 * output.h (Output_data_got::add_global): Added got_type parameter.
291 (Output_data_got::add_global_with_rel): Likewise.
292 (Output_data_got::add_global_with_rela): Likewise.
293 (Output_data_got::add_global_pair_with_rel): New function.
294 (Output_data_got::add_global_pair_with_rela): New function.
295 (Output_data_got::add_local): Added got_type parameter.
296 (Output_data_got::add_local_with_rel): Likewise.
297 (Output_data_got::add_local_with_rela): Likewise.
298 (Output_data_got::add_local_pair_with_rel): New function.
299 (Output_data_got::add_local_pair_with_rela): New function.
300 (Output_data_got::add_global_tls): Removed.
301 (Output_data_got::add_global_tls_with_rel): Removed.
302 (Output_data_got::add_global_tls_with_rela): Removed.
303 (Output_data_got::add_local_tls): Removed.
304 (Output_data_got::add_local_tls_with_rel): Removed.
305 (Output_data_got::add_local_tls_with_rela): Removed.
306 * resolve.cc (Symbol::override_base_with_special): Removed
307 reference to has_got_offset_ field.
308 * symtab.cc (Symbol::init_fields): Replaced initialization
309 of got_offset_ with got_offsets_. Removed initialization
310 of has_got_offset_
53fcba31 311 * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
0a65a3a7
CC
312 (Symbol::got_offset): Likewise.
313 (Symbol::set_got_offset): Likewise.
314 (Symbol::has_tls_got_offset): Removed.
315 (Symbol::tls_got_offset): Removed.
316 (Symbol::set_tls_got_offset): Removed.
317 (Symbol::got_offset_): Removed.
318 (Symbol::tls_mod_got_offset_): Removed.
319 (Symbol::tls_pair_got_offset_): Removed.
320 (Symbol::got_offsets_): New field.
321 (Symbol::has_got_offset): Removed.
322 (Symbol::has_tls_mod_got_offset): Removed.
323 (Symbol::has_tls_pair_got_offset): Removed.
324 * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
325 (Target_x86_64::Scan::local): Updated callers of Output_data_got
326 member functions.
327 (Target_x86_64::Scan::global): Likewise.
328 (Target_x86_64::Relocate::relocate): Likewise.
329 (Target_x86_64::Relocate::relocate_tls): Likewise.
330
bd52eafb
BE
3312008-03-25 Ben Elliston <bje@au.ibm.com>
332
333 * yyscript.y: Fix spelling error in comment.
334
8b105e34
ILT
3352008-03-24 Ian Lance Taylor <iant@google.com>
336
8ed814a9
ILT
337 * options.h (class General_options): Define build_id option.
338 * layout.h (class Layout): Declare write_build_id, create_note,
339 create_build_id. Add build_id_note_ member.
340 * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
341 "libiberty.h", "md5.h", "sha1.h".
342 (Layout::Layout): Initialize eh_frame_data_,
343 eh_frame_hdr_section_, and build_id_note_.
344 (Layout::finalize): Call create_build_id.
345 (Layout::create_note): New function, broken out of
346 Layout::create_gold_note.
347 (Layout::create_gold_note): Call create_note.
348 (Layout::create_build_id): New function.
349 (Layout::write_build_id): New function.
350 (Close_task_runner::run): Call write_build_id.
351
8b105e34
ILT
352 * x86_64.cc: Correct license to GPLv3.
353
086a1841
ILT
3542008-03-23 Ian Lance Taylor <iant@google.com>
355
356 * options.cc: Include "demangle.h".
357 (parse_optional_string): New function.
358 (parse_long_option): Handle takes_optional_argument.
359 (parse_short_option): Update dash_z initializer. Handle
360 takes_optional_argument.
361 (General_options::General_options): Initialize do_demangle_.
362 (General_options::finalize): Set do_demangle_. Handle demangling
363 style.
364 * options.h (parse_optional_string): Declare.
365 (struct One_option): Add optional_arg field. Update constructor.
366 Update call constructor calls. Add takes_optional_argument
367 function.
368 (DEFINE_var): Add optional_arg__ parameter. Change all callers.
369 (DEFINE_optional_string): Define.
370 (General_options::demangle): Change from DEFINE_bool to
371 DEFINE_optional_string.
372 (General_options::no_demangle): New function.
373 (General_options::do_demangle): New function.
374 (General_options::set_do_demangle): New function.
375 (General_options::execstack_status_): Move definition to end of
376 class definition.
377 (General_options::static_): Likewise.
378 (General_options::do_demangle_): New field.
379 * object.cc (big_endian>::get_symbol_location_info): Call
380 Options::do_demangle, not Options::demangle.
381 * symtab.cc (demangle): Likewise.
382
cbb93e63
ILT
3832008-03-22 Ian Lance Taylor <iant@google.com>
384
385 * gold.h: Include <cstddef> and <sys/types.h>
386 * options.h: Include <cstring>.
387
ec531623
ILT
3882008-03-21 Ian Lance Taylor <iant@google.com>
389
390 * Added source code to GNU binutils.
391
This page took 0.042157 seconds and 4 git commands to generate.