* Makefile.in, aclocal.m4, testsuite/Makefile.in: Rebuild.
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
85c7bf8b
ILT
12008-04-16 Ian Lance Taylor <iant@google.com>
2
4f4995b6
ILT
3 * Makefile.in, aclocal.m4, testsuite/Makefile.in: Rebuild.
4
85c7bf8b
ILT
5 * testsuite/script_test_4.sh: Permit leading zeroes.
6
4f2a9edd
ILT
72008-04-15 Ian Lance Taylor <iant@google.com>
8
e6188289
ILT
9 * script-sections.cc (Script_sections::create_segments): Use
10 header_size_adjustment even when there is enough room for the
11 headers.
12 * testsuite/script_test_4.sh: New file.
13 * testsuite/script_test_4.t: New file.
14 * testsuite/Makefile.am (check_SCRIPTS): Add script_test_4.sh.
15 (check_DATA): Add script_test_4.stdout.
16 (MOSTLYCLEANFILES): Likewise.
17 (script_test_4): New target.
18 (script_test_4.stdout): New target.
19 * testsuite/Makefile.in: Rebuild.
20
4f2a9edd
ILT
21 * sparc.cc: Add definitions for Output_data_plt_sparc class
22 constants.
23
f5314dd5
DM
242008-04-14 David S. Miller <davem@davemloft.net>
25
26 * sparc.cc: New file.
27 * Makefile.am (TARGETSOURCES): Add sparc.cc
28 (ALL_TARGETOBJS): Add sparc.$(OBJEXT)
29 * configure.tgt: Document targ_extra_size and
30 targ_extra_big_endian. Add entries for sparc-* and
31 sparc64-*.
32 * configure.ac: Handle targ_extra_size and
33 targ_extra_big_endian.
34 * Makefile.in: Rebuild.
35 * configure: Likewise.
36 * po/POTFILES.in: Likewise.
37 * po/gold.pot: Likewise.
38
154e0e9a
ILT
392008-04-14 Ian Lance Taylor <iant@google.com>
40
41 * layout.cc (Layout::Layout): Initialize sections_are_attached_.
42 (Layout::get_output_section): Ignore SHF_WRITE and SHF_EXECINSTR
43 in the name/type/flags to section mapping. Don't call
44 allocate_output_section.
45 (Layout::choose_output_section): Change parameter from adjust_name
46 to is_input_section. Don't permit input sections after sections
47 are attached to segments. Don't call allocate_output_section.
48 (Layout::layout_eh_frame): Call update_flags_for_input_section,
49 not write_enable_output_section.
50 (Layout::make_output_section): Don't push to
51 unattached_section_list_ nor call attach_to_segment. Call
52 attach_section_to_segment if sections are attached.
53 (Layout::attach_sections_to_segments): New function.
54 (Layout::attach_section_to_segment): New function.
55 (Layout::attach_allocated_section_to_segment): Rename from
56 attach_to_segment. Remove flags parameter.
57 (Layout::allocate_output_section): Remove function.
58 (Layout::write_enable_output_section): Remove function.
59 * layout.h (class Layout): Update for above changes. Add new
60 field sections_are_attached_.
61 * output.h (Output_section::update_flags_for_input_section): New
62 function.
63 * output.cc (Output_section::add_input_section): Call
64 update_flags_for_input_section.
65 * gold.cc (queue_middle_tasks): Call attach_sections_to_segments.
66
009a67a2
CC
672008-04-11 Cary Coutant <ccoutant@google.com>
68
69 * i386.cc (Target_i386::got_mod_index_entry): Restore code previously
70 thought unnecessary.
71 * x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.
72
759b1a24
ILT
732008-04-11 Ian Lance Taylor <iant@google.com>
74
75 * output.h (class Output_section_data): Remove inline definition
76 of set_addralign.
77 * output.cc (Output_section_data::set_addralign): New function.
78
c2b45e22
CC
792008-04-11 Cary Coutant <ccoutant@google.com>
80
81 Add support for TLS descriptors for i386 and x86_64.
82 * i386.cc (Target_i386::Relocate::tls_desc_gd_to_ie): New function.
83 (Target_i386::Relocate::tls_desc_gd_to_le): New function.
84 (Target_i386::Got_type): Add GOT_TYPE_TLS_NOFFSET and
85 GOT_TYPE_TLS_DESC.
86 (Target_i386::got_mod_index_entry): Remove unnecessary code.
87 (Target_i386::Scan::local): Implement R_386_TLS_GOTDESC and
88 R_386_TLS_DESC_CALL relocations. Fix problem with initial-exec
89 relocations.
90 (Target_i386::Scan::global): Fix problem with GD-to-IE relaxation.
91 Implement R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL relocations;
92 Fix problem with initial-exec relocations.
93 (Target_i386::Relocate::relocate_tls): Likewise.
94 (Target_i386::Relocate::tls_gd_to_ie): Fix problem with GD-to-IE
95 relaxation.
96 * output.cc (Output_data_dynamic::Dynamic_entry::write): Add
97 support for section-plus-offset dynamic table entries.
98 * output.h (Output_data_dynamic::add_section_plus_offset): New function.
99 (Output_data_dynamic::Dynamic_entry): Add support for
100 section-plus-offset dynamic table entries.
101 (Output_data_dynamic::Classification): Likewise.
102 (Output_data_dynamic::classification_): Renamed offset_.
103 * x86_64.cc (Target_x86_64::Relocate::tls_desc_gd_to_ie): New function.
104 (Target_x86_64::Relocate::tls_desc_gd_to_le): New function.
105 (Target_x86_64::make_plt_section): New function.
106 (Target_x86_64::reserve_tlsdesc_entries): New function.
107 (Output_data_plt_x86_64::Output_data_plt_x86_64): Add new parameter.
108 (Output_data_plt_x86_64::reserve_tlsdesc_entry): New function.
109 (Output_data_plt_x86_64::has_tlsdesc_entry): New function.
110 (Output_data_plt_x86_64::get_tlsdesc_got_offset): New function.
111 (Output_data_plt_x86_64::get_tlsdesc_plt_offset): New function.
112 (Output_data_plt_x86_64::tlsdesc_plt_entry): New field.
113 (Output_data_plt_x86_64::set_final_data_size): Move out of line;
114 add extra PLT entry for TLS descriptors.
115 (Output_data_plt_x86_64::got_): New field.
116 (Output_data_plt_x86_64::tlsdesc_got_offset_): New field.
117 (Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize new
118 fields.
119 (Output_data_plt_x86_64::do_write): Write extra PLT entry for TLS
120 descriptors.
121 (Target_x86_64::make_plt_entry): Factor out make_plt_section.
122 (Target_x86_64::got_mod_index_entry): Remove unnecessary code.
123 (Target_x86_64::Scan::local): Implement R_386_TLS_GOTDESC and
124 R_386_TLS_DESC_CALL relocations.
125 (Target_x86_64::Scan::global): Likewise.
126 (Target_x86_64::do_finalize_sections): Add dynamic table entries
127 for TLS descriptors.
128 (Relocate::relocate_tls): Fix problem with GD-to-IE relaxation.
129 Implement R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL relocations.
130 (Target_x86_64::Relocate::tls_gd_to_ie): Fix problem with
131 GD-to-IE relaxation.
132 * configure.ac: Export new conditional variables TLS_GNU2_DIALECT
133 and TLS_DESCRIPTORS.
134 * Makefile.in: Rebuild.
135 * configure: Rebuild.
136 * testsuite/Makefile.am (tls_shared_gd_to_ie_test): New target.
137 (tls_test_shared2.so): New target.
138 (tls_shared_gd_to_ie_test_SOURCES): New variable.
139 (tls_shared_gd_to_ie_test_DEPENDENCIES): New variable.
140 (tls_shared_gd_to_ie_test_LDFLAGS): New variable.
141 (tls_shared_gd_to_ie_test_LDADD): New variable.
142 (tls_shared_gnu2_gd_to_ie_test): New target.
143 (tls_test_gnu2.o, tls_test_file2_gnu2.o, tls_test_gnu2_shared2.so):
144 New targets.
145 (tls_shared_gnu2_gd_to_ie_test_SOURCES): New variable.
146 (ls_shared_gnu2_gd_to_ie_test_DEPENDENCIES): New variable.
147 (tls_shared_gnu2_gd_to_ie_test_LDFLAGS): New variable.
148 (tls_shared_gnu2_gd_to_ie_test_LDADD): New variable.
149 (tls_shared_gnu2_test): New target.
150 (tls_test_gnu2_shared.so): New target.
151 (tls_shared_gnu2_test_SOURCES): New variable.
152 (tls_shared_gnu2_test_DEPENDENCIES): New variable.
153 (tls_shared_gnu2_test_LDFLAGS): New variable.
154 (tls_shared_gnu2_test_LDADD): New variable.
155 * testsuite/Makefile.in: Rebuild.
156 * testsuite/Makefile.
157
83bfb6b7
ILT
1582008-04-11 Ian Lance Taylor <iant@google.com>
159
160 * testsuite/Makefile.am (justsyms_2r.o): Add dependency on
161 justsyms.t.
162 * testsuite/Makefile.in: Rebuild.
163
164 * testsuite/script_test_2a.cc (script_test_string_a): Make 8 bytes
165 long.
166 * testsuite/script_test_2.cc (main): Adjust test.
167
706e1f5e
ILT
1682008-04-11 David S. Miller <davem@davemloft.net>
169 Ian Lance Taylor <iant@google.com>
170
171 * options.h (General_options): Add entries for '-Y' and
172 '-relax'.
173 * options.cc (General_options:finalize): If -Y was used, add those
174 entries to the library path instead of the default "/lib" and
175 "/usr/lib".
176
7c98e6bb
DM
1772008-04-11 David S. Miller <davem@davemloft.net>
178
179 * testsuite/justsyms.t: Start at 0x100.
180 * testsuite/justsyms_1.cc: Adjust justsyms_string assertion.
83bfb6b7
ILT
181 * testsuite/script_test_2b.cc (script_test_string_b): Make 8 bytes
182 long.
183 * testsuite/script_test_2.cc: Adjust string and section length
184 checks.
7c98e6bb 185
99a37bfd
ILT
1862008-04-09 Ian Lance Taylor <iant@google.com>
187
2cefc357
ILT
188 PR gold/5996
189 * script-sections.cc (Sections_element::allocate_to_segment): Add
190 orphan parameter.
191 (Output_section_definition::allocate_to_segment): Likewise.
192 (Orphan_output_section::allocate_to_segment): Likewise.
193 (Script_sections::attach_sections_using_phdrs_clause): Don't
194 propagate non-PT_LOAD segments to orphan sections.
195 * testsuite/Makefile.am (script_test_3.stdout): Generate using
196 readelf rather than objdump.
197 * testsuite/script_test_3.sh: Adjust accordingly. Test that
198 .interp section and PT_INTERP segment are the same size.
199 * testsuite/Makefile.in: Rebuild.
200
99a37bfd
ILT
201 * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak
202 aliases for symbols defined in the same object.
203 * testsuite/Makefile.am (check_PROGRAMS): Add weak_alias_test.
204 (weak_alias_test_SOURCES): New variable.
205 (weak_alias_test_DEPENDENCIES): New variable.
206 (weak_alias_test_LDFLAGS): New variable.
207 (weak_alias_test_LDADD): New variable.
208 (weak_alias_test_1_pic.o, weak_alias_test_1.so): New targets.
209 (weak_alias_test_2_pic.o, weak_alias_test_2.so): New targets.
210 (weak_alias_test_3.o): New target.
211 (weak_alias_test_4_pic.o, weak_alias_test_4.so): New targets.
212 * testsuite/weak_alias_test_main.cc: New file.
213 * testsuite/weak_alias_test_1.cc: New file.
214 * testsuite/weak_alias_test_2.cc: New file.
215 * testsuite/weak_alias_test_3.cc: New file.
216
780e49c5
ILT
2172008-04-08 Ian Lance Taylor <iant@google.com>
218
cdb0b8f5
ILT
219 * options.h (class General_options): Add --noinhibit-exec option.
220 * main.cc (main): Check --noinhibit-exec.
221
0864d551
ILT
222 * options.h (class General_options): Define --wrap as a special
223 option. Add wrap_symbols_ field.
224 (General_options::any_wrap_symbols): New function.
225 (General_options::is_wrap_symbol): New function.
226 * options.cc (General_options::parse_wrap): New function.
227 (General_options::General_options): Initialize wrap_symbols_.
228 * symtab.cc (Symbol_table::wrap_symbol): New function.
229 (Symbol_table::add_from_object): Handle --wrap.
230 * symtab.h (class Symbol_table): Declare wrap_symbol.
231 * target.h (Target::wrap_char): New function.
232 (Target::Target_info): Add wrap_char field.
233 * i386.cc (Target_i386::i386_info): Initialize wrap_char.
234 * x86_64.cc (Target_x86_64::x86_64_info): Likewise.
235 * testsuite/testfile.cc (Target_test::test_target_info):
236 Likewise.
237
789aa6de
ILT
238 * errors.cc (Errors::undefined_symbol): Mention symbol version if
239 there is one.
240
2c38906f
ILT
241 * layout.h (class Layout): Add added_eh_frame_data_ field.
242 * layout.cc (Layout::Layout): Initialize new field.
243 (Layout::layout_eh_frame): Don't add eh_frame_data_ to .eh_frame
244 output section until we find a section we merged successfully.
245 * object.cc (Sized_relobj::check_eh_frame_flags): Don't require
246 that the size be non-zero.
247
780e49c5
ILT
248 * merge.cc (Object_merge_map::get_output_offset): Remove inline
249 qualifier.
250
7fcd0256
ILT
2512008-04-08 Craig Silverstein <csilvers@google.com>
252
253 * configure.ac: Export new conditional variable HAVE_ZLIB.
254 * testsuite/Makefile.am (flagstest_o_specialfile): Condition
255 on HAVE_ZLIB.
256 (flagstest_o_specialfile_and_compress_debug_sections): Likewise.
257 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
258
6835af53
ILT
2592008-04-07 Ian Lance Taylor <iant@google.com>
260
e24f324c
ILT
261 * version.cc (version_string): Set to "1.5".
262
a036edd8
ILT
263 * x86_64.cc (Target_x86_64::Scan): Change from struct to class.
264 Add issued_non_pic_error_ field. Declare check_non_pic.
265 (Target_x86_64::Scan::check_non_pic): New function.
266 (Target_x86_64::Scan::local): Call check_non_pic as appropriate.
267 (Target_x86_64::Scan::global): Likewise.
268
624f8810
ILT
269 * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add
270 addend parameter. Change caller. Handle merge sections.
271 (Output_reloc<SHT_REL>::symbol_value): Change parameter type from
272 Address to Addend. Don't add in the result of
273 local_section_offset, pass down the addend and use the returned
274 value.
275 * output.h (class Output_reloc<SHT_REL>): Add Addend typedef.
276 Update declarations of local_section_offset and symbol_value.
277 * testsuite/two_file_test_1.cc (t18): New function.
278 * testsuite/two_file_test_2.cc (f18): New function.
279 * testsuite/two_file_test_main.cc (main): Call t18.
280 * testsuite/two_file_test.h (t18, f18): Declare.
281
6835af53
ILT
282 * configure.ac: Don't test for objdump, c++filt, or readelf.
283 * testsuite/Makefile.am: Remove READELF and OBJDUMP_AND_CPPFILT
284 conditionals.
285 (TEST_READELF): New variable.
286 (TEST_OBJDUMP, TEST_CXXFILT, TEST_STRIP): New variables.
287 (check_PROGRAMS): Add two_file_strip_test.
288 (two_file_strip_test): New target.
289 (check_PROGRAMS): Add two_file_same_shared_strip_test.
290 (two_file_same_shared_strip_test_SOURCES): New variable.
291 (two_file_same_shared_strip_test_DEPENDENCIES): New variable.
292 (two_file_same_shared_strip_test_LDFLAGS): New variable.
293 (two_file_same_shared_strip_test_LDADD): New variable.
294 (two_file_shared_strip.so): New target.
295 (ver_test_2.syms, ver_test_4.syms): Use TEST_READELF.
296 (ver_test_5.syms, ver_test_7.syms): Likewise.
297 (ver_matching_test.stdout): Use TEST_OBJDUMP and TEST_CXXFILT.
298 (strip_test_3.stdout): Use TEST_OBJDUMP.
299 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
300
86925eef
CC
3012008-04-04 Cary Coutant <ccoutant@google.com>
302
303 * symtab.h (Symbol::is_weak_undefined): New function.
304 (Symbol::is_strong_undefined): New function.
305 (Symbol::is_absolute): New function.
306 (Symbol::needs_plt_entry): Exclude weak undefined symbols.
307 (Symbol::needs_dynamic_reloc): Exclude weak undefined and
308 absolute symbols.
309 * testsuite/Makefile.am (check_PROGRAMS): Add weak_undef_test.
310 (weak_undef_test): New target.
311 * testsuite/Makefile.in: Rebuild.
312 * testsuite/weak_undef_file1.cc: New file.
313 * testsuite/weak_undef_file2.cc: New file.
314 * testsuite/weak_undef_test.cc: New file.
315
126f3ece
ILT
3162008-04-03 Craig Silverstein <csilvers@google.com>
317
318 * compressed_output.h (class Output_compressed_section): Use
319 unsigned buffer.
320 * compressed_output.cc (zlib_compress): Use unsigned buffers,
321 add zlib header.
322 (zlib_compressed_suffix): Removed.
323 (Output_compressed_section::set_final_data_size): Use unsigned
324 buffers.
325 * testsuite/Makefile.am (flagstest_compress_debug_sections):
326 Fix linker invocation.
327 (flagstest_o_specialfile_and_compress_debug_sections):
328 Likewise.
329 * testsuite/Makefile.in: Regenerated.
330
deae2a14
DM
3312008-04-02 David S. Miller <davem@davemloft.net>
332
333 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog,
334 Sized_dwarf_line_info::process_one_opcode): Use Swap_unaligned.
335
70752818
ILT
3362008-04-02 Craig Silverstein <csilvers@google.com>
337
338 * TODO: New file.
339
39d0cb0e
ILT
3402008-04-02 Ian Lance Taylor <iant@google.com>
341
342 * fileread.cc (File_read::find_view): Add byteshift and vshifted
343 parameters. Update for new key type to views_. Change all
344 callers.
345 (File_read::read): Adjust for byteshift in returned view.
346 (File_read::add_view): New function, broken out of
347 find_and_make_view.
348 (File_read::make_view): New function, broken out of
349 find_and_make_view.
350 (File_read::find_or_make_view): Add offset and aligned
351 parameters. Rewrite accordingly. Change all callers.
352 (File_read::get_view): Add offset and aligned parameters. Adjust
353 for byteshift in return value.
354 (File_read::get_lasting_view): Likewise.
355 * fileread.h (class File_read): Update declarations.
356 (class File_read::View): Add byteshift_ field. Add byteshift to
357 constructor. Add byteshift method.
358 * archive.h (Archive::clear_uncached_views): New function.
359 (Archive::get_view): Add aligned parameter. Change all callers.
360 * object.h (Object::get_view): Add aligned parameter. Change all
361 callers.
362 (Object::get_lasting_view): Likewise.
363
364 * fileread.cc (File_read::release): Don't call clear_views if
365 there are multiple objects.
366 * fileread.h (File_read::clear_uncached_views): New function.
367 * archive.cc (Add_archive_symbols::run): Call clear_uncached_views
368 on the archive.
369
a1207466
CC
3702008-03-31 Cary Coutant <ccoutant@google.com>
371
372 Add thin archive support.
373 * archive.cc (Archive::armagt): New const.
374 (Archive::setup): Remove task parameter and calls to unlock.
375 (Archive::unlock_nested_archives): New function.
376 (Archive::read_header): Add nested_off parameter. Change
377 all callers.
378 (Archive::interpret_header): Likewise.
379 (Archive::include_all_members): Change to handle thin
380 archives.
381 (Archive::include_member): Likewise.
382 * archive.h (Archive::Archive): Add new parameters and
383 initializers.
384 (Archive::armagt): New const.
385 (Archive::setup): Remove task parameter.
386 (Archive::unlock_nested_archives): New function.
387 (Archive::read_header): Add nested_off parameter.
388 (Archive::interpret_header): Likewise.
389 (Archive::Nested_archive_table): New typedef.
390 (Archive::is_thin_archive_): New field.
391 (Archive::nested_archives_): New field.
392 (Archive::options_): New field.
393 (Archive::dirpath_): New field.
394 (Archive::task_): New field.
395 * readsyms.cc (Read_symbols::do_read_symbols): Add check
396 for thin archives. Pass additional parameters to
397 Archive::Archive. Unlock the archive file after calling
398 Archive::setup.
399
479f6503
ILT
4002008-03-29 Ian Lance Taylor <iant@google.com>
401
686c8caf
ILT
402 * symtab.cc (Symbol_table::do_define_as_constant): Don't force a
403 version symbol to be local.
404 * testsuite/ver_test_4.sh: New file.
405 * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_4.sh.
406 (check_DATA): Add ver_test_4.syms.
407 (ver_test_4.syms): New target.
408 * testsuite/Makefile.in: Rebuild.
409
ab794b6b
ILT
410 * output.cc
411 (Output_section::Input_section_sort_entry::has_priority): New
412 function.
413 (Output_section::Input_section_sort_entry::match_file_name): New
414 function.
415 (Output_section::Input_section_sort_entry::match_section_name):
416 Remove.
417 (Output_section::Input_section_sort_entry::match_section_name_prefix):
418 Remove.
419 (Output_section::Input_section_sort_entry::match_section_file):
420 Remove.
421 (Output_section::Input_section_sort_compare::operator()): Rewrite
422 using new Input_section_sort_entry functions. Sort crtbegin and
423 crtend first. Sort sections with no priority before sections with
424 a priority.
425 * testsuite/initpri1.c (d3): Check j != 4.
426 (cd5): New constructor/destructor function.
427 (main): Check j != 2.
428
479f6503
ILT
429 * symtab.cc (Symbol_table::add_from_object): If we don't use the
430 new symbol when resolving, don't call set_is_default.
431 * testsuite/ver_test_7.cc: New file.
432 * testsuite/ver_test_7.sh: New file.
433 * testsuite/Makefile.am (ver_test_7.so): New target.
434 (ver_test_7.o): New target.
435 (check_SCRIPTS): Add ver_test_7.sh.
436 (check_DATA): Add ver_test_7.syms.
437 (ver_test_7.syms): New target.
438
2fd32231
ILT
4392008-03-28 Ian Lance Taylor <iant@google.com>
440
441 * layout.cc (Layout::layout): If we see an input section with a
442 name that needs sorting, set the must_sort flag for the output
443 section.
444 (Layout::make_output_section): If the name of the output section
445 indicates that it might require sorting, set the may_sort flag.
446 * output.h (Output_section::may_sort_attached_input_sections): New
447 function.
448 (Output_section::set_may_sort_attached_input_sections): New
449 function.
450 (Output_section::must_sort_attached_input_sections): New
451 function.
452 (Output_section::set_must_sort_attached_input_sections): New
453 function.
454 (class Output_section): Declare Input_section_sort_entry. Define
455 Input_section_sort_compare. Declare
456 sort_attached_input_sections. Add new fields:
457 may_sort_attached_input_sections_,
458 must_sort_attached_input_sections_,
459 attached_input_sections_are_sorted_.
460 * output.cc (Output_section::Output_section): Initialize new
461 fields.
462 (Output_section::add_input_section): Add an entry to
463 input_sections_ if may_sort or must_sort are true.
464 (Output_section::set_final_data_size): Call
465 sort_attached_input_sections if necessary.
466 (Output_section::Input_section_sort_entry): Define new class.
467 (Output_section::Input_section_sort_compare::operator()): New
468 function.
469 (Output_section::sort_attached_input_sections): New function.
470 * configure.ac: Check whether the compiler supports constructor
471 priorities. Define a CONSTRUCTOR_PRIORITY automake conditional.
472 * testsuite/initpri1.c: New file.
473 * testsuite/Makefile.am (check_PROGRAMS): Add initpri1 if
474 CONSTRUCTOR_PRIORITY.
475 (initpri1_SOURCES, initpri1_DEPENDENCIES): New variables.
476 (initpri1_LDFLAGS): New variable.
477 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
478
18e6b24e
ILT
4792008-03-27 Ian Lance Taylor <iant@google.com>
480
49bdd526
ILT
481 * common.cc (Sort_commons::operator): Correct sorting algorithm.
482 * testsuite/common_test_1.c: New file.
483 * testsuite/Makefile.am (check_PROGRAMS): Add common_test_1.
484 (common_test_1_SOURCES): New variable.
485 (common_test_1_DEPENDENCIES): New variable.
486 (common_test_1_LDFLAGS): New variable.
487
18e6b24e
ILT
488 * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
489 and commons_ correctly when NAME/VERSION does not override
490 NAME/NULL.
491 * testsuite/ver_test_6.c: New file.
492 * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
493 (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
494 (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
495
04bf7072
ILT
4962008-03-26 Ian Lance Taylor <iant@google.com>
497
5871526f
ILT
498 * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
499 of an undefined symbol from a version script.
500 * testsuite/Makefile.am (ver_test_5.so): New target.
501 (ver_test_5.o): New target.
502 (check_SCRIPTS): Add ver_test_5.sh.
503 (check_DATA): Add ver_test_5.syms.
504 (ver_test_5.syms): New target.
505 * testsuite/ver_test_5.cc: New file.
506 * testsuite/ver_test_5.script: New file.
507 * testsuite/ver_test_5.sh: New file.
508 * Makefile.in, testsuite/Makefile.in: Rebuild.
509
04bf7072
ILT
510 PR gold/5986
511 Fix problems building gold with gcc 4.3.0.
512 * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
513 (gold_error_at_location, gold_warning_at_location): Use it.
514 * configure.ac: Check whether we can compile and use a template
515 function with a printf attribute.
516 * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
517 when jumping over bytes.
518 * object.cc: Instantiate Object::read_section_data.
519 * debug.h: Include <cstring>
520 * dwarf_reader.cc: Include <algorithm>
521 * main.cc: Include <cstring>.
522 * options.cc: Include <cstring>.
523 * output.cc: Include <cstring>.
524 * script.cc: Include <cstring>.
525 * script.h: Include <string>.
526 * symtab.cc: Include <cstring> and <algorithm>.
527 * target-select.cc: Include <cstring>.
528 * version.cc: Include <string>.
529 * testsuite/testmain.cc: Include <cstdlib>.
530 * configure, config.in: Rebuild.
531
874c5b28
ILT
5322008-03-25 Ian Lance Taylor <iant@google.com>
533
819d6c3a
ILT
534 * options.cc: Include "../bfd/bfdver.h".
535 (options::help): Print bug reporting address.
536
f4b2c6f5
ILT
537 * version.cc (print_version): Adjust output for current value of
538 BFD_VERSION_STRING.
539
540 * NEWS: New file.
541
e96caa79
ILT
542 * options.cc (options::help): Print list of supported targets.
543 * target-select.h: Include <vector>.
544 (class Target_selector): Make machine_, size_, and is_big_endian_
545 fields const. Add bfd_name_ and instantiated_target_ fields.
546 (Target_selector::Target_selector): Add bfd_name parameter.
547 (Target_selector::recognize): Make non-virtual, call
548 do_recognize.
549 (Target_selector::recognize_by_name): Make non-virtual, call
550 do_recognize_by_name.
551 (Target_selector::supported_names): New function.
552 (Target_selector::bfd_name): New function.
553 (Target_selector::do_instantiate_target): New pure virtual
554 function.
555 (Target_selector::do_recognize): New virtual function.
556 (Target_selector::do_recognize_by_name): New virtual function.
557 (Target_selector::instantiate_target): New private function.
558 (supported_target_names): Declare.
559 * target-select.cc (Target_selector::Target_selector): Update for
560 new parameter and fields.
561 (select_target_by_name): Check that the name matches before
562 calling recognize_by_name.
563 (supported_target_names): New function.
564 * i386.cc (class Target_selector_i386): Update Target_selector
565 constructor call. Remove recognize and recognize_by_name. Add
566 do_instantiate_target.
567 * x86_64.cc (class Target_selector_x86_64): Likewise.
568 * testsuite/testfile.cc (class Target_selector_test): Update for
569 changes to Target_selector.
570
874c5b28
ILT
571 * README: Rewrite, with some notes on unsupported features.
572
0a65a3a7
CC
5732008-03-24 Cary Coutant <ccoutant@google.com>
574
575 * i386.cc (Target_i386::Got_type): New enum declaration.
576 (Target_i386::Scan::local): Updated callers of Output_data_got
577 member functions.
578 (Target_i386::Scan::global): Likewise.
579 (Target_i386::Relocate::relocate): Likewise.
580 (Target_i386::Relocate::relocate_tls): Likewise.
581 * object.h (Got_offset_list): New class.
582 (Sized_relobj::local_has_got_offset): Added got_type parameter.
583 (Sized_relobj::local_got_offset): Likewise.
584 (Sized_relobj::set_local_got_offset): Likewise.
585 (Sized_relobj::local_has_tls_got_offset): Removed.
586 (Sized_relobj::local_tls_got_offset): Removed.
587 (Sized_relobj::set_local_tls_got_offset): Removed.
588 (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
589 * output.cc (Output_data_got::add_global): Added got_type parameter.
590 (Output_data_got::add_global_with_rel): Likewise.
591 (Output_data_got::add_global_with_rela): Likewise.
592 (Output_data_got::add_global_pair_with_rel): New function.
593 (Output_data_got::add_global_pair_with_rela): New function.
594 (Output_data_got::add_local): Added got_type parameter.
595 (Output_data_got::add_local_with_rel): Likewise.
596 (Output_data_got::add_local_with_rela): Likewise.
597 (Output_data_got::add_local_pair_with_rel): New function.
598 (Output_data_got::add_local_pair_with_rela): New function.
599 (Output_data_got::add_global_tls): Removed.
600 (Output_data_got::add_global_tls_with_rel): Removed.
601 (Output_data_got::add_global_tls_with_rela): Removed.
602 (Output_data_got::add_local_tls): Removed.
603 (Output_data_got::add_local_tls_with_rel): Removed.
604 (Output_data_got::add_local_tls_with_rela): Removed.
605 * output.h (Output_data_got::add_global): Added got_type parameter.
606 (Output_data_got::add_global_with_rel): Likewise.
607 (Output_data_got::add_global_with_rela): Likewise.
608 (Output_data_got::add_global_pair_with_rel): New function.
609 (Output_data_got::add_global_pair_with_rela): New function.
610 (Output_data_got::add_local): Added got_type parameter.
611 (Output_data_got::add_local_with_rel): Likewise.
612 (Output_data_got::add_local_with_rela): Likewise.
613 (Output_data_got::add_local_pair_with_rel): New function.
614 (Output_data_got::add_local_pair_with_rela): New function.
615 (Output_data_got::add_global_tls): Removed.
616 (Output_data_got::add_global_tls_with_rel): Removed.
617 (Output_data_got::add_global_tls_with_rela): Removed.
618 (Output_data_got::add_local_tls): Removed.
619 (Output_data_got::add_local_tls_with_rel): Removed.
620 (Output_data_got::add_local_tls_with_rela): Removed.
621 * resolve.cc (Symbol::override_base_with_special): Removed
622 reference to has_got_offset_ field.
623 * symtab.cc (Symbol::init_fields): Replaced initialization
624 of got_offset_ with got_offsets_. Removed initialization
625 of has_got_offset_
53fcba31 626 * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
0a65a3a7
CC
627 (Symbol::got_offset): Likewise.
628 (Symbol::set_got_offset): Likewise.
629 (Symbol::has_tls_got_offset): Removed.
630 (Symbol::tls_got_offset): Removed.
631 (Symbol::set_tls_got_offset): Removed.
632 (Symbol::got_offset_): Removed.
633 (Symbol::tls_mod_got_offset_): Removed.
634 (Symbol::tls_pair_got_offset_): Removed.
635 (Symbol::got_offsets_): New field.
636 (Symbol::has_got_offset): Removed.
637 (Symbol::has_tls_mod_got_offset): Removed.
638 (Symbol::has_tls_pair_got_offset): Removed.
639 * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
640 (Target_x86_64::Scan::local): Updated callers of Output_data_got
641 member functions.
642 (Target_x86_64::Scan::global): Likewise.
643 (Target_x86_64::Relocate::relocate): Likewise.
644 (Target_x86_64::Relocate::relocate_tls): Likewise.
645
bd52eafb
BE
6462008-03-25 Ben Elliston <bje@au.ibm.com>
647
648 * yyscript.y: Fix spelling error in comment.
649
8b105e34
ILT
6502008-03-24 Ian Lance Taylor <iant@google.com>
651
8ed814a9
ILT
652 * options.h (class General_options): Define build_id option.
653 * layout.h (class Layout): Declare write_build_id, create_note,
654 create_build_id. Add build_id_note_ member.
655 * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
656 "libiberty.h", "md5.h", "sha1.h".
657 (Layout::Layout): Initialize eh_frame_data_,
658 eh_frame_hdr_section_, and build_id_note_.
659 (Layout::finalize): Call create_build_id.
660 (Layout::create_note): New function, broken out of
661 Layout::create_gold_note.
662 (Layout::create_gold_note): Call create_note.
663 (Layout::create_build_id): New function.
664 (Layout::write_build_id): New function.
665 (Close_task_runner::run): Call write_build_id.
666
8b105e34
ILT
667 * x86_64.cc: Correct license to GPLv3.
668
086a1841
ILT
6692008-03-23 Ian Lance Taylor <iant@google.com>
670
671 * options.cc: Include "demangle.h".
672 (parse_optional_string): New function.
673 (parse_long_option): Handle takes_optional_argument.
674 (parse_short_option): Update dash_z initializer. Handle
675 takes_optional_argument.
676 (General_options::General_options): Initialize do_demangle_.
677 (General_options::finalize): Set do_demangle_. Handle demangling
678 style.
679 * options.h (parse_optional_string): Declare.
680 (struct One_option): Add optional_arg field. Update constructor.
681 Update call constructor calls. Add takes_optional_argument
682 function.
683 (DEFINE_var): Add optional_arg__ parameter. Change all callers.
684 (DEFINE_optional_string): Define.
685 (General_options::demangle): Change from DEFINE_bool to
686 DEFINE_optional_string.
687 (General_options::no_demangle): New function.
688 (General_options::do_demangle): New function.
689 (General_options::set_do_demangle): New function.
690 (General_options::execstack_status_): Move definition to end of
691 class definition.
692 (General_options::static_): Likewise.
693 (General_options::do_demangle_): New field.
694 * object.cc (big_endian>::get_symbol_location_info): Call
695 Options::do_demangle, not Options::demangle.
696 * symtab.cc (demangle): Likewise.
697
cbb93e63
ILT
6982008-03-22 Ian Lance Taylor <iant@google.com>
699
700 * gold.h: Include <cstddef> and <sys/types.h>
701 * options.h: Include <cstring>.
702
ec531623
ILT
7032008-03-21 Ian Lance Taylor <iant@google.com>
704
705 * Added source code to GNU binutils.
706
This page took 0.058101 seconds and 4 git commands to generate.