2008-08-06 Cary Coutant <ccoutant@google.com>
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
de4c45bd
ILT
12008-08-04 Ian Lance Taylor <iant@google.com>
2
3 * symtab.h (Symbol::use_plt_offset): New function.
4 * i386.cc (Relocate::relocate): Call Symbol::use_plt_offset.
5 * powerpc.cc (Relocate::relocate): Likewise.
6 * sparc.cc (Relocate::relocate): Likewise.
7 * x86_64.cc (Relocate::relocate): Likewise.
8 * testsuite/weak_plt.sh: New test.
9 * testsuite/weak_plt_main.cc: New test.
10 * testsuite/weak_plt_shared.cc: New test.
11 * testsuite/Makefile.am (check_SCRIPTS): Add weak_plt.sh.
12 (check_PROGRAMS): Add weak_plt.
13 (check_DATA): Add weak_plt_shared.so.
14 (weak_plt_main_pic.o, weak_plt): New targets.
15 (weak_plt_shared_pic.o, weak_plt_shared.so): New targets.
16 * testsuite/Makefile.in: Rebuild.
17
18 * testsuite/Makefile.am (weak_alias_test_1.so): Depend upon
19 gcctestdir/ld.
20 (weak_alias_test_2.so, weak_alias_test_4.so): Likewise.
21 * testsuite/Makefile.in: Rebuild.
22
323ee3f4
AM
232008-08-04 Alan Modra <amodra@bigpond.net.au>
24
25 * Makefile.am (POTFILES.in): Set LC_ALL=C.
26 * Makefile.in: Regenerate.
27 * po/POTFILES.in: Regenerate.
28
7c07ecec
ILT
292008-07-29 Ian Lance Taylor <iant@google.com>
30
31 * script.cc (Script_options::finalize_symbols): Finalize SECTIONS
32 symbols before other symbols.
33 * testsuite/script_test_2.cc (test_addr): Declare.
34 (test_addr_alias): Declare.
35 (main): Check that test_addr and test_addr_alias have the right
36 values.
37 * testsuite/script_test_2.t: Define test_addr_alias and
38 test_addr.
39
5778530e
ILT
402008-07-24 Ian Lance Taylor <iant@google.com>
41
2a00e4fb
ILT
42 PR 5990
43 * descriptors.cc: New file.
44 * descriptors.h: New file.
45 * gold-threads.h (class Hold_optional_lock): New class.
46 * fileread.cc: Include "descriptors.h".
47 (File_read::~File_read): Release descriptor rather than closing
48 it.
49 (File_read::open) [file]: Call open_descriptor rather than open.
50 Set is_descriptor_opened_.
51 (File_read::open) [memory]: Assert that descriptor is not open.
52 (File_read::reopen_descriptor): New function.
53 (File_read::release): Release descriptor.
54 (File_read::do_read): Make non-const. Reopen descriptor.
55 (File_read::read): Make non-const.
56 (File_read::make_view): Reopen descriptor.
57 (File_read::do_readv): Likewise.
58 * fileread.h (class File_read): Add is_descriptor_opened_ field.
59 Update declarations.
60 * layout.cc: Include "descriptors.h".
61 (Layout::create_build_id): Use open_descriptor rather than open.
62 * output.cc: Include "descriptors.h".
63 (Output_file::open): Use open_descriptor rather than open.
64 * archive.cc (Archive::const_iterator): Change Archive to be
65 non-const.
66 (Archive::begin, Archive::end): Make non-const.
67 (Archive::count_members): Likewise.
68 * archive.h (class Archive): Update declarations.
69 * object.h (Object::read): Make non-const.
70 * Makefile.am (CCFILES): Add descriptors.cc.
71 (HFILES): Add descriptors.h.
72 * Makefile.in: Rebuild.
73
801647d1
ILT
74 PR 6716
75 * gold.h: Always include <clocale>. Add Solaris workarounds
76 following code in binutils/sysdep.h.
77
5edd166e
ILT
78 PR 6048
79 * ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
80 this->eh_frame_hdr_ is NULL before using it.
81
c89ad728
ILT
82 * dynobj.cc (Versions::Versions): Update comment.
83
aa86f06b
ILT
84 * dynobj.cc (Versions::Versions): If there is an soname, use it as
85 the base version name.
86
5778530e
ILT
87 * stringpool.cc (Stringpool_template::add_with_length): Set key to
88 array size plus one.
89 (Stringpool_template::set_string_offsets): Subtract one from key
90 before using it as an array index.
91 (Stringpool_template::get_offset_with_length): Likewise.
92 (Stringpool_template::write_to_buffer): Likewise.
93 * stringpool.h (Stringpool_template::get_offset_from_key):
94 Likewise.
95
057ead22
ILT
962008-07-23 Ian Lance Taylor <iant@google.com>
97
7f649c59
ILT
98 PR 6658
99 * object.h (Merged_symbol_value::value): Do our best to handle a
100 negative addend.
101
057ead22
ILT
102 PR 6647
103 * script.cc (Version_script_info::get_versions): Don't add empty
104 version tag to return value.
105 (Version_script_info::get_symbol_version_helper): Change return
106 type to bool. Add pversion parameter. Change all callers.
107 (script_register_vers_node): Don't require a non-NULL tag.
108 * script.h (class Version_script_info): Update declarations.
109 (Version_script_info::get_symbol_version): Change return type to
110 bool. Add version parameter. Change all callers.
111 * symtab.cc (Sized_symbol::add_from_relobj): Rework version
112 handling. Handle an empty version from a version script.
113 (Symbol_table::define_special_symbol): Likewise.
114 * testsuite/ver_test_10.script: New file.
115 * testsuite/ver_test_10.sh: New file.
116 * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_10.sh.
117 (check_DATA): Add ver_test_10.syms.
118 (ver_test_10.syms, ver_test_10.so): New target.
119 * testsuite/Makefile.in: Rebuild.
120
58e54ac2
CD
1212008-07-23 Simon Baldwin <simonb@google.com>
122
123 * symtab.cc (Symbol_table::sized_write_symbol): Only set st_size
124 to zero for undefined symbols from dynamic libraries.
125
95d14cd3
ILT
1262008-07-23 Ian Lance Taylor <iant@google.com>
127
128 * symtab.cc (Symbol_table::resolve): Remove version parameter.
129 Change all callers.
130 * symtab.h (class Symbol_table): Update declaration.
131 * testsuite/ver_test_9.cc: New file.
132 * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_9.
133 (ver_test_9_SOURCES, ver_test_9_DEPENDENCIES): Define.
134 (ver_test_9_LDFLAGS, ver_test_9_LDADD): Define.
135 (ver_test_9.so, ver_test_9.o): New targets.
136 * testsuite/Makefile.in: Rebuild.
137
92de84a6
ILT
1382008-07-22 Ian Lance Taylor <iant@google.com>
139
34810851
ILT
140 * options.h (class General_options): Define --check-sections.
141 * layout.cc (Layout::set_segment_offsets): Handle
142 --check-sections.
143
af6156ef
ILT
144 * options.h (class General_options): Define -n/--nmagic and
145 -N/--omagic.
146 * options.cc (General_options::finalize): For -n/--nmagic or
147 -N/--omagic, set -static.
148 * layout.cc (Layout::attach_allocated_section_to_segment): If
149 -N/--omagic, don't put read-only and read-write sections in
150 different segments.
151 (Layout::find_first_load_seg): If -N/--omagic, don't insist on
152 finding a read-only segment.
153 (Layout::set_segment_offsets): If -N/--omagic or -n/--nmagic,
154 don't set the minimum segment alignment to the common page size,
155 and don't set the file offset to the address modulo the page size.
156 * script-sections.cc (Script_sections::create_segments): If
157 -n/--omagic, don't put read-only and read-write sections in
158 different segments.
159
92de84a6
ILT
160 * cref.cc: New file.
161 * cref.h: New file.
162 * options.h (class General_options): Add --print-symbol-counts.
163 * main.cc (main): Issue defined symbol report if requested.
164 * archive.cc (Archive::interpret_header): Make into a const member
165 function.
166 (Archive::add_symbols): Call Input_objects::archive_start and
167 archive_stop.
168 (Archive::const_iterator): Define new class.
169 (Archive::begin, Archive::end): New functions.
170 (Archive::include_all_members): Rewrite to use iterator.
171 (Archive::count_members): New function.
172 * archive.h (class Archive): Update declarations.
173 (Archive::filename): New function.
174 * object.cc: Include "cref.h".
175 (Sized_relobj::Sized_relobj): Initialize defined_count_.
176 (Sized_relobj::do_get_global_symbol_counts): New function.
177 (Input_objects::add_object): Add object to cross-referencer.
178 (Input_objects::archive_start): New function.
179 (Input_objects::archive_stop): New function.
180 (Input_objects::print_symbol_counts): New function.
181 * object.h: Declare Cref and Archive.
182 (Object::get_global_symbol_counts): New function.
183 (Object::do_get_global_symbol_counts): New pure virtual function.
184 (class Sized_relobj): Add defined_count_ field. Update
185 declarations.
186 (class Input_objects): Add cref_ field. Update constructor.
187 Update declarations.
188 * dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize symbols_ and
189 defined_count_.
190 (Sized_dynobj::do_add_symbols): Allocate symbols_ if printing
191 symbol counts.
192 (Sized_dynobj::do_get_global_symbol_counts): New function.
193 * dynobj.h (class Sized_dynobj): Add fields symbols_ and
194 defined_count_. Update declarations. Define Symbols typedef.
195 * symtab.cc (Symbol_table::add_from_relobj): Add defined
196 parameter. Change all callers.
197 (Symbol_table::add_from_dynobj): Add sympointers and defined
198 parameters. Change all callers.
199 * symtab.h (class Symbol_table): Update declarations.
200 * Makefile.am (CCFILES): Add cref.cc.
201 (HFILES): Add cref.h.
202 * Makefile.in: Rebuild.
203
3f7c5e1d
CD
2042008-07-22 Simon Baldwin <simonb@google.com>
205
206 * symtab.cc (Symbol_table::sized_write_symbol): Set symbol size
207 to zero when writing undefined symbols.
208
e0b64032
ILT
2092008-07-22 Ian Lance Taylor <iant@google.com>
210
211 * output.cc (Output_section::add_input_section): Don't try to
212 merge empty merge sections.
213
096b02cf
CS
2142008-07-21 Craig Silverstein <csilvers@google.com>
215
216 * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
217 Include symbol version in error message.
218
1d1f116d
CD
2192008-07-20 Chris Demetriou <cgd@google.com>
220
221 * configure.ac (gold_cv_c_random_seed): New configured variable.
222 (RANDOM_SEED_CFLAGS): New substituted variable.
223 * Makefile.am (AM_CFLAGS, AM_CXXFLAGS): Add $(RANDOM_SEED_CFLAGS).
224 * configure: Rebuild.
225 * Makefile.in: Likewise.
226 * testsuite/Makefile.in: Likewise.
227
a18f591e
ILT
2282008-07-18 Ian Lance Taylor <iant@google.com>
229
230 * symtab.cc (Symbol_table::add_from_object): Rewrite the case
231 where we see NAME/NULL and NAME/VERSION as separate symbols.
232 * testsuite/ver_test_main.cc (main): Call t4.
233 (t4, t4_2a): Define.
234 * testsuite/ver_test_2.cc (t4_2): Define.
235 * testsuite/ver_test_2.script: Put t4_2a in VER2.
236 * testsuite/ver_test_4.cc (t4_2a): Define.
237 * testsuite/ver_test_4.script: Put t4_2a in VER2.
238 * testsuite/ver_test.h (t4, t4_2, t4_2a): Declare.
239
c6e3f6ed
ILT
2402008-07-17 Ian Lance Taylor <iant@google.com>
241
242 * dynobj.cc (Versions::add_def): If we give an error about a
243 missing version, go ahead and create the version anyhow.
244
ef9beddf
ILT
2452008-07-10 Ian Lance Taylor <iant@google.com>
246
247 Handle output sections with more than 0x7fffffff bytes.
248 * object.h (class Relobj): Change map_to_output_ to
249 output_sections_, and just keep a section pointer. Change all
250 uses. Move comdat group support to Sized_relobj.
251 (Relobj::is_section_specially_mapped): Remove.
252 (Relobj::output_section): Remove poff parameter. Change all
253 callers.
254 (Relobj::output_section_offset): New function.
255 (Relobj::set_section_offset): Rewrite.
256 (Relobj::map_to_output): Remove.
257 (Relobj::output_sections): New function.
258 (Relobj::do_output_section_offset): New pure virtual function.
259 (Relobj::do_set_section_offset): Likewise.
260 (class Sized_relobj): Add section_offsets_ field. Add comdat
261 group support from Relobj. Update declarations.
262 (Sized_relobj::get_output_section_offset): New function.
263 (Sized_relobj::do_output_section_offset): New function.
264 (Sized_relobj::do_set_section_offset): New function.
265 * object.cc (Relobj::output_section_address): Remove.
266 (Sized_relobj::Sized_relobj): Initialize new fields.
267 (Sized_relobj::include_section_group): Cast find_kept_object to
268 Sized_relobj.
269 (Sized_relobj::include_linkonce_section): Likewise.
270 (Sized_relobj::do_layout): Use separate arrays for output section
271 and output offset.
272 (Sized_relobj::do_count_local_symbols): Change map_to_output to
273 output_sections.
274 (Sized_relobj::do_finalize_local_symbols): Change map_to_output to
275 output_sections and section_offsets.
276 (Sized_relobj::write_local_symbols): Likewise.
277 (map_to_kept_section): Compute output address directly.
278 * reloc.cc (Sized_relobj::do_read_relocs): Change map_to_output to
279 output_sections and section_offsets.
280 (Sized_relobj::write_sections): Likewise.
281 (Sized_relobj::relocate_sections): Likewise.
282 * symtab.cc (sized_finalize_symbol): Use output_section_offset.
283 * output.h (class Output_reloc): Update declarations. Change
284 u2_.relobj to Sized_relobj*.
285 (class Output_data_reloc): Change add functions to use
286 Sized_relobj*.
287 * output.cc (Output_reloc::Output_reloc): Change relobj to
288 Sized_relobj*.
289 (Output_reloc::local_section_offset): Change return type to
290 Elf_Addr. Use get_output_section_offset.
291 (Output_reloc::get_address): Likewise.
292 (Output_section::is_input_address_mapped): Don't call
293 is_section_specially_mapped.
294 (Output_section::output_offset): Likewise.
295 (Output_section::output_address): Likewise.
296 (Output_section::starting_output_address): Likewise.
297 * copy-relocs.cc (Copy_relocs::copy_reloc): Change object
298 parameter to Sized_relobj*.
299 (Copy_relocs::need_copy_reloc): Likewise.
300 (Copy_relocs::save): Likewise.
301 * copy-relocs.h (class Copy_relocs): Update declarations.
302 (class Copy_relocs::Copy_reloc_entry): Change constructor to use
303 Sized_relobj*. Change relobj_ field to Sized_relobj*.
304 * target-reloc.h (relocate_for_relocatable): Change
305 offset_in_output_section type to Elf_Addr. Change code that uses
306 it as well.
307 * layout.cc (Layout::layout): Always set *off.
308 * mapfile.cc (Mapfile::print_input_section): Use
309 output_section_offset.
310 * i386.cc (Target_i386::copy_reloc): Change object parameter to
311 Sized_relobj*.
312 * powerpc.cc (Target_powerpc::copy_reloc): Likewise.
313 * sparc.cc (Target_sparc::copy_reloc): Likewise.
314 * x86_64.cc (Target_x86_64::copy_reloc): Likewise.
315
5cb66f97
ILT
3162008-07-03 Ian Lance Taylor <iant@google.com>
317
318 * layout.cc (Layout::include_section): Do not discard unrecognized
319 SHT_STRTAB sections.
320
afe47622
CS
3212008-06-30 Craig Silverstein <csilvers@cs.stanford.edu>
322
323 * script.cc (Lex::can_continue_name): Make '?' allowable in
324 version-script names.
325 * testsuite/version_script.map: Change glob pattern to use '?'
326
5adf9721
ILT
3272008-06-30 Manish Singh <yosh@gimp.org>
328
329 PR 6585
330 * symtab.cc (Symbol_table::add_undefined_symbols_from_command_line):
331 Correct typo.
332
e6fde208
ILT
3332008-06-30 Ian Lance Taylor <iant@google.com>
334
335 PR 6660
336 PR 6682
337 * powerpc.cc (Powerpc_relocate_functions::addr16_ha) [both
338 versions]: Don't try to read the value in the contents, since we
339 don't use it. Use the template endianness when writing.
340
3f2e6a2d
CC
3412008-06-25 Cary Coutant <ccoutant@google.com>
342
343 * fileread.cc (File_read::make_view): Assert on zero-length view.
344 * object.cc (Sized_relobj::do_read_symbols): Don't try to read
345 symbol table when there are no symbols to read.
346
c43d3a48
CS
3472008-06-23 Craig Silverstein <csilvers@google.com>
348
349 * version.cc (version_string): Bump to 1.7
350
5f494ea0
CS
3512008-06-18 Craig Silverstein <csilvers@google.com>
352
353 * powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast
354 constant 0xFFFF to type Valtype.
355 (Powerpc_relocate_functions::rel16_ha): Likewise.
356
c42e122e
ILT
3572008-06-17 Ian Lance Taylor <iant@google.com>
358
f34787f8
ILT
359 * output.h (Output_section::Input_section): Initialize p2align_ to
360 zero for Output_section_data constructors.
361 (Output_section::Input_section::addralign): If not an input
362 section, return the alignment of the Output_section_data.
363 * testsuite/copy_test.cc: New file.
364 * testsuite/copy_test_1.cc: New file.
365 * testsuite/copy_test_2.cc: New file.
366 * testsuite/Makefile.am (check_PROGRAMS): Add copy_test.
367 (copy_test_SOURCES, copy_test_DEPENDENCIES): New variables.
368 (copy_test_LDFLAGS, copy_test_LDADD): New variables.
369 (copy_test_1_pic.o, copy_test_1.so): New targets.
370 (copy_test_2_pic.o, copy_test_2.so): New targets.
371 * testsuite/Makefile.in: Rebuild.
372
c42e122e
ILT
373 * script-sections.cc (Script_sections::place_orphan): Initialize
374 local variable exact.
375
ce3ac18a
DE
3762008-06-13 David Edelsohn <edelsohn@gnu.org>
377
378 * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.
379
42cacb20
DE
3802008-06-12 David Edelsohn <edelsohn@gnu.org>
381 David S. Miller <davem@davemloft.net>
382
383 * powerpc.cc: New file.
384 * Makefile.am (TARGETSOURCES): Add powerpc.cc
385 (ALL_TARGETOBJS): Add powerpc.$(OBJEXT)
386 * configure.tgt: Add entries for powerpc-* and powerpc64-*.
387 * Makefile.in: Rebuild.
388
7b308235
ILT
3892008-06-09 Ian Lance Taylor <iant@google.com>
390
391 * testsuite/relro_test.cc: Include <cstdio>, <cstdlib>, and
392 <exception>.
393 (throwing, orig_terminate): New static variables.
394 (terminate_handler): New static function.
395 (t2): Set terminate handler.
396
f0b886e3
ILT
3972008-06-05 Kris Van Hees <kris.van.hees@oracle.com>
398
399 PR 6584
400 * binary.cc (Binary_to_elf::sized_convert): Fix .data
401 alignment.
402
3e90f135
CC
4032008-05-30 Cary Coutant <ccoutant@google.com>
404
405 * archive.cc (Archive::include_all_members) Correct to step
406 over symbol table and extended name table in thin archives.
407
e09ad04a
ILT
4082008-05-29 Kris Van Hees <kris.van.hees@oracle.com>
409
410 PR 6407
411 * target-reloc.h (relocate_for_relocatable): Fix new_offset
412 calculation.
413
62b01cb5
ILT
4142008-05-28 Caleb Howe <cshowe@google.com>
415
416 * reduced_debug_output.cc: New file.
417 * reduced_debug_output.h: New file.
92de84a6 418 * options.h (class General_options): Add --strip-debug-non-line.
62b01cb5
ILT
419 * options.cc (General_options::finalize): Add strip_debug_non_line
420 to the strip heirarchy.
421 * layout.h (class Layout): Add debug_abbrev_ and debug_info_
422 fields.
423 * layout.cc: Include "reduced_debug_output.h".
424 (Layout::Layout): Initialize new fields.
425 (line_only_debug_sections): New static array.
426 (is_lines_only_debug_sections): New static inline function.
427 (Layout::include_section): Handle --strip-debug-non-line.
428 (Layout::make_output_section): If --strip-debug-non-line, build
429 new output sections for .debug_abbrev and .debug_info.
430 * dwarf_reader.cc (read_unsigned_LEB_128): Move to namespace
431 gold. Warn about possible overflow.
432 (read_signed_LEB_128): Likewise.
433 * dwarf_reader.h: (read_unsigned_LEB_128): Declare.
434 (read_signed_LEB_128): Declare.
435 * Makefile.am (CCFILES): Add reduced_debug_output.cc.
436 (HFILES): Add reduced_debug_output.h.
437 * Makefile.in: Rebuild.
438
7d9e3d98
ILT
4392008-05-21 Ian Lance Taylor <iant@google.com>
440
441 * mapfile.cc: New file.
442 * mapfile.h: New file.
443 * options.h (class General_options): Add -M/--print-map and -Map.
444 * options.cc (General_options::finalize): Make -M equivalent to
445 -Map -.
446 * main.cc: Include <cstdio> and "mapfile.h".
447 (main): Open mapfile if requested.
448 * gold.cc (class Middle_runner): Add mapfile_ field. Update
449 constructor. Change caller.
450 (queue_initial_tasks): Add mapfile parameter. Change caller.
451 (queue_middle_tasks): Likewise.
452 * gold.h (queue_initial_tasks, queue_middle_tasks): Update
453 declarations.
454 * archive.cc: Include "mapfile.h".
455 (Archive::add_symbols): Add mapfile parameter. Change all
456 callers. Pass mapfile, symbol, and reason to include_member.
457 (Archive::include_all_members): Add mapfile parameter. Change all
458 callers.
459 (Archive::include_member): Add mapfile, sym, and why parameters.
460 Change all callers. Report inclusion to map file.
461 * archive.h: Include "fileread.h".
462 (class Archive): Update declarations.
463 (Archive::file): New const method.
464 (class Add_archive_symbols): Add mapfile_ field. Update
465 constructor. Change all callers.
466 * readsyms.h (class Read_symbols): Likewise.
467 (class Finish_group): Likewise.
468 (class Read_script): Likewise.
469 * common.cc: Include "mapfile.h".
470 (Symbol_table::allocate_commons): Add mapfile parameter. Change
471 all callers.
472 (Symbol_table::do_allocate_commons): Likewise.
473 (Symbol_table::do_allocate_commons_list): Likewise. Report common
474 symbol allocation to mapfile.
475 * common.h (class Allocate_commons_task): Add mapfile_ field.
476 Update constructor. Change all callers.
477 * symtab.h (class Symbol_table): Update declarations.
478 * layout.cc: Include "mapfile.h".
479 (Layout_task_runner::run): Print information to mapfile.
480 (Layout::create_gold_note): Change Output_data_fixed_space to
481 Output_data_zero_fill.
482 (Layout::create_build_id): Likewise.
483 (Layout::print_to_mapfile): New function.
484 * layout.h (class Layout_task_runner): Add mapfile_ field. Update
485 constructor. Change caller.
486 (class Layout): Declare print_to_mapfile.
487 * output.cc (Output_section::Input_section::print_to_mapfile): New
488 function.
489 (Output_section::add_input_section): If producing a map, always
490 add to input_sections_ list.
491 (Output_section::do_print_to_mapfile): New function.
492 (Output_segment::print_sections_to_mapfile): New function.
493 (Output_segment::print_section_list_to_mapfile): New function.
494 * output.h: Include "mapfile.h".
495 (Output_data::print_to_mapfile): New function.
496 (Output_data::do_print_to_mapfile): New virtual function.
497 (Output_segment_headers::do_print_to_mapfile): New function.
498 (Output_file_header::do_print_to_mapfile): New function.
499 (Output_data_const::do_print_to_mapfile): New function.
500 (class Output_data_const_buffer): Add map_name_ field. Update
501 constructor. Change all callers. Add do_print_to_mapfile
502 function.
503 (class Output_data_fixed_space): Likewise.
504 (class Output_data_space): Likewise.
505 (class Output_data_zero_fill): New class.
506 (Output_data_strtab::do_print_to_mapfile): New function.
507 (Output_data_reloc_base::do_print_to_mapfile): New function.
508 (Output_relocatable_relocs::do_print_to_mapfile): New function.
509 (Output_data_group::do_print_to_mapfile): New function.
510 (Output_data_got::do_print_to_mapfile): New function.
511 (Output_data_dynamic::do_print_to_mapfile): New function.
512 (Output_symtab_xindex::do_print_to_mapfile): New function.
513 (class Output_section): Declare do_print_to_mapflie. Declare
514 print_to_mapfile in Input_section.
515 (class Output_segment): Declare new functions.
516 * object.h (Sized_relobj::symbol_count): New function.
517 * script-sections.cc
518 (Output_section_element_dot_assignment::set_section_addresses):
519 Change Output_data_fixed_space to Output_data_zero_fill.
520 (Output_data_expression::do_print_to_mapfile): New function.
521 * script.cc (read_input_script): Add mapfile parameter. Change
522 all callers.
523 * script.h (read_input_script): Update declaration.
524 * ehframe.h (Eh_frame_hdr::do_print_to_mapfile): New function.
525 (Eh_frame::do_print_to_mapfile): New function.
526 * merge.h (Output_merge_data::do_print_to_mapfile): New function.
527 (Output_merge_string::do_print_to_mapfile): New function.
528 * i386.cc (Output_data_plt_i386::do_print_to_mapfile): New
529 function.
530 * sparc.cc (Output_data_plt_sparc::do_print_to_mapfile): New
531 function.
532 * x86_64.cc (Output_data_plt_x86_64::do_print_to_mapfile): New
533 function.
534 * Makefile.am (CCFILES): Add mapfile.cc.
535 (HFILES): Add mapfile.h.
536 * Makefile.in: Rebuild.
537
9f1d377b
ILT
5382008-05-19 Ian Lance Taylor <iant@google.com>
539
540 * options.h (class General_options): Add -z relro.
541 * layout.cc (Layout::Layout): Initialize relro_segment_.
542 (Layout::add_output_section_data): Return the output section.
543 (Layout::make_output_section): Rcognize relro sections and mark
544 them appropriately.
545 (Layout::attach_allocated_section_to_segment): Put relro sections
546 in a PT_GNU_RELRO segment.
547 (Layout::create_initial_dynamic_sections): Mark the .dynamic
548 section as relro.
549 (Layout::segment_precedes): Sort PT_GNU_RELRO segments after
550 PT_TLS segments.
551 (Layout::linkonce_mapping): Map d.rel.ro.local to
552 .data.rel.ro.local.
553 (Layout::output_section_name): Us .data.rel.ro.local for any
554 section which begins with that.
555 * layout.h (class Layout): Update add_output_section_data
556 declaration. Add relro_segment_ field.
557 * output.cc (Output_section::Output_section): Initialize is_relro_
558 and is_relro_local_ fields.
559 (Output_segment::add_output_section): Group relro sections.
560 (Output_segment::is_first_section_relro): New function.
561 (Output_segment::maximum_alignment): If there is a relro section,
562 align the segment to the common page size.
563 (Output_segment::set_section_addresses): Track whether we are
564 looking at relro sections. If the last section is a relro
565 section, align to the common page size.
566 (Output_segment::set_section_list_addresses): Add in_relro
567 parameter. Change all callers. Align to the page size when
568 moving from relro to non-relro section.
569 (Output_segment::set_offset): Align memsz of a PT_GNU_RELRO
570 segment.
571 * output.h (class Output_section): Add is_relro_ and
572 is_relro_local_ fields.
573 (Output_section::is_relro): New function.
574 (Output_section::set_is_relro): New function.
575 (Output_section::is_relro_local): New function.
576 (Output_section::set_is_relro_local): New function.
577 (class Output_segment): Update declarations.
578 * i386.cc (Target_i386::got_section): Mark .got section as relro.
579 * sparc.cc (Target_sparc::got_section): Likewise.
580 * x86_64.cc (Target_x86_64::got_section): Likewise.
581 * testsuite/relro_test_main.cc: New file.
582 * testsuite/relro_test.cc: New file.
583 * testsuite/Makefile.am (check_PROGRAMS): Add relro_test.
584 (relro_test_SOURCES, relro_test_DEPENDENCIES): New variables.
585 (relro_test_LDFLAGS, relro_test_LDADD): New variables.
586 (relro_test.so, relro_test_pic.o): New targets.
587 * testsuite/Makefile.in: Rebuild.
588
a984ee1d
ILT
5892008-05-16 Ian Lance Taylor <iant@google.com>
590
01676dcd
ILT
591 * output.cc (Output_segment::add_output_section): Remove front
592 parameter.
593 * output.h (class Output_segment): Remove
594 add_initial_output_section and overloaded add_output_section.
595 Update declaration of remaining add_output_section.
596 * layout.cc (Layout::create_interp): Call add_output_section
597 rather than add_initial_output_section.
598 (Layout::finish_dynamic_section): Likewise.
599
497897f9
ILT
600 * i386.cc (Target_i386::Relocate::relocate_tls): Set dynamic type
601 for TLS_GOTDESC and TLS_DESC_CALL. Only optimize TLS_LDO_32 if we
602 know the dynamic type.
603 * x86_64.cc (Target_x86_64::Relocate): Add saw_tls_block_reloc_
604 field. Initialize it in constructor.
605 (Target_x86_64::Relocate::relocate_tls): Record that we saw a TLS
606 block reloc for TLSGD, GOTPC32_TLSDESC, TLSDESC_CALL, and TLSLD.
607 Only optimize DTPOFF32 and DTPOFF64 if we have seen a TLS block
608 reloc.
609
a984ee1d
ILT
610 * output.cc (Output_reloc::get_address): Change return type to
611 Elf_Addr.
612 * output.h (class Output_reloc): Update get_address declaration.
613 * x86_64.cc (Output_data_plt_x86_64::do_write): Use 64-bit types
614 for section addresses.
615
55ba0940
ILT
6162008-05-09 Ian Lance Taylor <iant@google.com>
617
618 PR 6493
619 * gold.cc (gold_nomem): Use return value of write.
620
75517b77
ILT
6212008-05-08 Ian Lance Taylor <iant@google.com>
622
623 * symtab.c (Symbol::init_base_output_data): Add version
624 parameter. Change all callers.
625 (Symbol::init_base_output_segment): Likewise.
626 (Symbol::init_base_constant): Likewise.
627 (Symbol::init_base_undefined): Likewise.
628 (Sized_symbol::init_output_data): Likewise.
629 (Sized_symbol::init_output_segment): Likewise.
630 (Sized_symbol::init_constant): Likewise.
631 (Sized_symbol::init_undefined): Likewise.
632 (Symbol_table::do_define_in_output_data): If the new symbol has a
633 version, mark it as the default.
634 (Symbol_table::do_define_in_output_segment): Likewise.
635 (Symbol_table::do_define_as_constant): Likewise.
636 * symtab.h (class Symbol): Update declarations.
637 (class Sized_symbol): Likewise.
638 * resolve.cc (Symbol::override_version): New function.
c42e122e 639 (Symbol::override_base): Call override_version.
75517b77
ILT
640 (Symbol::override_base_with_special): Likewise.
641 * testsuite/ver_script_8.script: New file.
642 * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_8.
643 (ver_test_8_SOURCES, ver_test_8_DEPENDENCIES): Define.
644 (ver_test_8_LDFLAGS, ver_test_8_LDADD): Define.
645 (ver_test_8_1.so, ver_test_8_2.so): New targets.
646
f1f70eae
ILT
6472008-05-06 Ian Lance Taylor <iant@google.com>
648
f3e9c5c5
ILT
649 PR 6049
650 * options.h (DEFINE_set): Add VARNAME_begin and VARNAME_end
651 functions.
652 (class General_options): Remove existing --undefined, and add
653 --no-undefined instead. Add new --undefined as synonym for -u.
654 * archive.cc (Archive::add_symbols): Check whether symbol was
655 named with -u.
656 * gold.cc (queue_middle_tasks): Add -u symbols to symbol table.
657 * symtab.h (class Symbol): Rename CONSTANT to IS_CONSTANT; change
658 all uses. Add IS_UNDEFINED. Update declarations to split
659 different versions of init_base. Declare init_base_undefined.
660 (Symbol::is_defined): Handle IS_UNDEFINED.
661 (Symbol::is_undefined): Likewise.
662 (Symbol::is_weak_undefined): Call is_undefined.
663 (Symbol::is_absolute): Handle IS_CONSTANT.
664 (class Sized_symbol): Update declarations to split different
665 versions of init. Declare init_undefined.
666 (class Symbol_table): Declare new functions.
667 * symtab.cc (Symbol::init_base_object): Rename from init_base.
668 Change all callers.
669 (Symbol::init_base_output_data): Likewise.
670 (Symbol::init_base_output_segment): Likewise.
671 (Symbol::init_base_constant): Likewise.
672 (Symbol::init_base_undefined): New function.
673 (Sized_symbol::init_object): Rename from init. Change all
674 callers.
675 (Sized_symbol::init_output_data): Likewise.
676 (Sized_symbol::init_output_segment): Likewise.
677 (Sized_symbol::init_constant): Likewise.
678 (Sized_symbol::init_undefined): New function.
679 (Symbol_table::add_undefined_symbols_from_command_line): New
680 function.
681 (Symbol_table::do_add_undefined_symbols_from_command_line): New
682 function.
683 (Symbol::final_value_is_known): Handle IS_UNDEFINED.
684 (Symbol::output_section): Likewise.
685 (Symbol::set_output_section): Likewise.
686 (Symbol_table::sized_finalize_symbol): Likewise.
687 (Symbol_table::sized_write_globals): Likewise.
688 * resolve.cc (Symbol_table::should_override): Likewise.
689 (Symbol::override_base_with_special): Likewise.
690
8bdcdf2c
ILT
691 * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected
692 symbol, change it to have default visibility.
693 * testsuite/protected_1.cc: New file.
694 * testsuite/protected_2.cc: New file.
695 * testsuite/protected_3.cc: New file.
696 * testsuite/protected_main_1.cc: New file.
697 * testsuite/protected_main_2.cc: New file.
698 * testsuite/protected_main_3.cc: New file.
699 * testsuite/Makefile.am (check_PROGRAMS): Add protected_1.
700 (protected_1_SOURCES, protected_1_DEPENDENCIES): Define.
701 (protected_1_LDFLAGS, protected_1_LDADD): Define.
702 (protected_1.so): New target.
703 (protected_1_pic.o, protected_2_pic.o): New targets.
704 (protected_3_pic.o): New target.
705 (check_PROGRAMS): Add protected_2.
706 (protected_2_SOURCES, protected_2_DEPENDENCIES): Define.
707 (protected_2_LDFLAGS, protected_2_LDADD): Define.
708 * testsuite/Makefile.in: Rebuild.
709
2b706932
ILT
710 * options.h (DEFINE_var): Add set_user_set_##varname__.
711 (DEFINE_bool_alias): New macro.
712 (class General_options): Define -Bstatic using DEFINE_bool_alias
713 rather than DEFINE_special. Add --undefined as an alias for -z
714 defs.
715 * options.cc (General_options::parse_Bstatic): Remove.
716
d82a5bcc
ILT
717 * options.h (class General_options): Add --fatal-warnings.
718 * main.cc (main): Implement --fatal-warnings.
719 * errors.h (Errors::warning_count): New function.
720
f1f70eae
ILT
721 * options.h (class General_options): Add -Bsymbolic-functions.
722 * symtab.h (Symbol::is_preemptible): Check for
723 -Bsymbolic-functions.
724
8825ac63
ILT
7252008-05-05 Ian Lance Taylor <iant@google.com>
726
d98bc257
ILT
727 * options.h (DEFINE_bool): For DASH_Z, create the negative option
728 as noVARNAME rather than no-VARNAME.
729 (class General_options): Add option -z combreloc.
730 * output.h (class Output_reloc) [SHT_REL]: Declare compare and
731 get_address.
732 (Output_reloc::sort_before) [SHT_REL]: New function.
733 (Output_reloc::sort_before) [SHT_RELA]: New function.
734 (class Output_data_reloc_base): Add sort_relocs_ field. Define
735 Sort_relocs_comparison.
736 (Output_data_reloc_base::Output_data_reloc_base): Add sort_relocs
737 parameter. Change all callers.
738 (Output_data_reloc::Output_data_reloc) [both versions]: Add
739 sort_relocs parameter. Change all callers.
740 * output.cc (Output_reloc::get_address): New function, broken out
741 of write_rel.
742 (Output_reloc::write_rel): Call it.
743 (Output_reloc::compare): New function.
744 (Output_data_reloc_base::do_write): Optionally sort relocs.
745
60b2b4e7
ILT
746 * configure.ac: If targ_extra_obj is set, link it in.
747 * configure.tgt: Initialize all variables.
748 (x86_64*): Set targ_extra_obj and targ_extra_size.
749 * configure: Rebuild.
750
8825ac63
ILT
751 * object.cc (Sized_relobj::include_section_group): Adjust section
752 indexes read from group data. Build vector to pass to
753 layout_group.
754 * layout.cc (Layout::layout_group): Add flags and shndxes
755 parameters. Remove contents parameter. Change caller. Update
756 explicit instantiations.
757 * layout.h (class Layout): Update layout_group declaration.
758 * output.cc (Output_data_group::Output_data_group): Add flags and
759 input_shndxes parameters. Remove contents parameter. Change
760 caller.
761 (Output_data_group::do_write): Change input_sections_ to
762 input_shndxes_.
763 * output.h (class Output_data_group): Update constructor
764 declaration. Rename input_sections_ to input_shndxes_.
765 * testsuite/many_sections_test.cc: Add template.
766
e94cf127
CC
7672008-04-30 Cary Coutant <ccoutant@google.com>
768
4418b2d5
CC
769 * target-reloc.h (relocate_section): Fix dead-pointer bug.
770
e94cf127
CC
771 * layout.cc (Layout::include_section): Refactored check for debug
772 info section.
773 (Layout::add_comdat): Add new parameters. Change type
774 of signature parameter. Add object and shndx to signatures table.
775 (Layout::find_kept_object): New function.
776 * layout.h: Include <cstring>.
777 (Layout::is_debug_info_section): New function.
778 (Layout::add_comdat): Add new parameters.
779 (Layout::find_kept_object): New function.
780 (Layout::Kept_section): New struct.
781 (Layout::Signatures): Change type of map range.
782 * object.cc (Relobj::output_section_address): New function.
783 (Sized_relobj::include_section_group): Add new parameters. Change
784 calls to Layout::add_comdat. Change to build table of kept comdat
785 groups and table mapping discarded sections to kept sections.
786 (Sized_relobj::include_linkonce_section): Likewise. Add new parameter.
787 (Sized_relobj::do_layout): Change calls to include_section_group and
788 include_linkonce_section.
789 (Sized_relobj::do_finalize_local_symbols): Do not set local symbol
790 value to zero when section is discarded.
791 (Sized_relobj::map_to_kept_section): New function.
792 * object.h (Relobj::output_section_address): New function.
793 (Relobj::Comdat_group): New type.
794 (Relobj::find_comdat_group): New function.
795 (Relobj::Comdat_group_table): New type.
796 (Relobj::Kept_comdat_section): New type.
797 (Relobj::Kept_comdat_section_table): New type.
798 (Relobj::add_comdat_group): New function.
799 (Relobj::set_kept_comdat_section): New function.
800 (Relobj::get_kept_comdat_section): New function.
801 (Relobj::comdat_groups_): New field.
802 (Relobj::kept_comdat_sections_): New field.
803 (Symbol_value::input_value): Update comment.
804 (Sized_relobj::map_to_kept_section) New function.
805 (Sized_relobj::include_linkonce_section): Add new parameter.
806 * target-reloc.h (Comdat_behavior): New type.
807 (get_comdat_behavior): New function.
808 (relocate_section): Add code to map a discarded section to the
809 corresponding kept section when applying a relocation.
810
e4e5049b
CS
8112008-04-30 Craig Silverstein <csilvers@google.com>
812
813 * dwarf_reader.cc (next_generation_count): New static var.
814 (Addr2line_cache_entry): New struct.
815 (addr2line_cache): New static var.
816 (Dwarf_line_info::one_addr2line): Added caching.
817 (Dwarf_line_info::clear_addr2line_cache): New function.
818 * dwarf_reader.h (Dwarf_line_info::one_addr2line): Add
819 cache-size parameter.
820 (Dwarf_line_info::one_addr2line_cache): New function.
821 * symtab.cc (Symbol_table::detect_odr_violations): Pass
822 new cache-size argument to one_addr2line(), and clear cache.
823
d09e9154
CC
8242008-04-28 Cary Coutant <ccoutant@google.com>
825
826 * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and
827 R_386_PC8 relocations.
828
7ef73768
ILT
8292008-04-23 Ian Lance Taylor <iant@google.com>
830
55438702
ILT
831 * object.cc (Sized_relobj::include_section_group): Check for
832 invalid section group.
833
c165fb93
ILT
834 * object.cc (make_elf_object): Correct test for 64-bit ELF file
835 header size.
836
7ef73768
ILT
837 * readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
838 than read for file header.
839 * archive.cc (Archive::include_member): Likewise.
840
6194aaab
L
8412008-04-23 Paolo Bonzini <bonzini@gnu.org>
842
843 * aclocal.m4: Regenerate.
844 * configure: Regenerate.
845
d491d34e
ILT
8462008-04-19 Ian Lance Taylor <iant@google.com>
847
5ea2bac6
ILT
848 * version.cc (version_string): Bump to 1.6.
849
7bc3e21a
ILT
850 * testsuite/Makefile.am (many_sections_r_test): New target.
851 (many_sections_r_test_SOURCES): Remove.
852 (many_sections_r_test_DEPENDENCIES): Remove.
853 (many_sections_r_test_LDFLAGS): Remove.
854 (many_sections_r_test_LDADD): Remove.
855
7fcd3aa9
ILT
856 * object.cc (Sized_relobj::do_add_symbols): Always pass
857 local_symbol_count_ to add_from_relobj.
858
4c94d6ae
ILT
859 * testsuite/Makefile.am (many_sections_check.h): Only check one in
860 every thousand variables.
861 * testsuite/Makefile.in: Rebuild.
862
d491d34e
ILT
863 * object.cc (Xindex::initialize_symtab_xindex): New function.
864 (Xindex::read_symtab_xindex): New function.
865 (Xindex::sym_xindex_to_shndx): New function.
866 (Sized_relobj::find_symtab): Pick up SHT_SYMTAB_SHNDX section if
867 available.
868 (Sized_relobj::do_initialize_xindex): New function.
869 (Sized_relobj::do_read_symbols): Adjust section links.
870 (Sized_relobj::symbol_section_and_value): Add is_ordinary
871 parameter. Change all callers.
872 (Sized_relobj::include_section_group): Adjust section links and
873 symbol section indexes.
874 (Sized_relobj::do_layout): Adjust section links.
875 (Sized_relobj::do_count_local_symbols): Adjust section links and
876 symbol section indexes.
877 (Sized_relobj::do_finalize_local_symbols): Distinguish between
878 ordinary and special symbols.
879 (Sized_relobj::write_local_symbols): Add symtab_xindex and
880 dynsym_xindex parameters. Change all callers. Adjust section
881 links. Use SHN_XINDEX when needed.
882 (Sized_relobj::get_symbol_location_info): Adjust section links.
883 Don't get fooled by special symbols.
884 * object.h (class Xindex): Define.
885 (class Object): Add xindex_ parameter. Declare virtual functoin
886 do_initialize_xindex.
887 (Object::adjust_sym_shndx): New function.
888 (Object::set_xindex): New protected function.
889 (class Symbol_value): Add is_ordinary_shndx_ field.
890 (Symbol_value::Symbol_value): Initialize is_ordinary_shndx_.
891 (Symbol_value::value): Assert ordinary section.
892 (Symbol_value::initialize_input_to_output_map): Likewise.
893 (Symbol_value::set_input_shndx): Add is_ordinary parameter.
894 Change all callers.
895 (Symbol_value::input_shndx): Add is_ordinary parameter. Change
896 all callers.
897 (class Sized_relobj): Update declarations.
898 (Sized_relobj::local_symbol_input_shndx): Add is_ordinary
899 parameter. Change all callers.
900 (Sized_relobj::adjust_shndx): New function.
901 * dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize dynsym_shndx_
902 field.
903 (Sized_dynobj::find_dynsym_sections): Remove pdynsym_shndx
904 parameter. Change all callers. Pick up SHT_DYNSYM_SHNDX section
905 for SHT_DYNSYM section if available. Set dynsym_shndx_ field.
906 (Sized_dynobj::read_dynsym_section): Adjust section links.
907 (Sized_dynobj::read_dynamic): Likewise.
908 (Sized_dynobj::do_read_symbols): Use dynsym_shndx_ field. Adjust
909 section links.
910 (Sized_dynobj::do_initialize_xindex): New function.
911 * dynobj.h (class Sized_dynobj): Add dynsym_shndx_ field. Declare
912 do_initialize_xindex.
913 (Sized_dynobj::adjust_shndx): New function.
914 * layout.cc (Layout::Layout): Initialize symtab_xindex_ and
915 dynsym_xindex_ fields.
916 (Layout::finalize): Add a call to set_section_indexes before
917 creating the symtab sections.
918 (Layout::set_section_indexes): Don't do anything if the section
919 already has a section index.
920 (Layout::create_symtab_sections): Add shnum parameter. Change
921 caller. Create .symtab_shndx section if needed.
922 (Layout::create_shdrs): Add shstrtab_section parameter. Change
923 caller.
924 (Layout::allocated_output_section_count): New function.
925 (Layout::create_dynamic_symtab): Create .dynsym_shndx section if
926 needed.
927 * layout.h (class Layout): Add symtab_xindex_ and dynsym_xindex_
928 fields. Update declarations.
929 (Layout::symtab_xindex): New function.
930 (Layout::dynsym_xindex): New function.
931 (class Write_symbols_task): Add layout_ field.
932 (Write_symbols_task::Write_symbols_task): Add layout parameter.
933 Change caller.
934 * output.cc (Output_section_headers::Output_section_headers): Add
935 shstrtab_section parameter. Change all callers.
936 (Output_section_headers::do_sized_write): Store overflow values
937 for section count and section string table section index in
938 section header zero.
939 (Output_file_header::do_sized_write): Check for overflow of
940 section count and section string table section index.
941 (Output_symtab_xindex::do_write): New function.
942 (Output_symtab_xindex::endian_do_write): New function.
943 * output.h (class Output_section_headers): Add shstrtab_section_.
944 Update declarations.
945 (class Output_symtab_xindex): Define.
946 (Output_section::has_out_shndx): New function.
947 * symtab.cc (Symbol::init_fields): Initialize is_ordinary_shndx_
948 field.
949 (Symbol::init_base): Add st_shndx and is_ordinary parameters.
950 Change all callers.
951 (Sized_symbol::init): Likewise.
952 (Symbol::output_section): Check for ordinary symbol.
953 (Symbol_table::add_from_object): Remove orig_sym parameter. Add
954 st_shndx, is_ordinary, and orig_st_shndx parameters. Change all
955 callers.
956 (Symbol_table::add_from_relobj): Add symndx_offset parameter.
957 Change all callers. Simplify handling of symbols from sections
958 not included in the link.
959 (Symbol_table::add_from_dynobj): Handle ordinary symbol
960 distinction.
961 (Weak_alias_sorter::operator()): Assert that symbols are
962 ordinary.
963 (Symbol_table::sized_finalize_symbol): Handle ordinary symbol
964 distinction.
965 (Symbol_table::write_globals): Add symtab_xindex and dynsym_xindex
966 parameters. Change all callers.
967 (Symbol_table::sized_write_globals): Likewise. Handle ordinary
968 symbol distinction. Use SHN_XINDEX when needed.
969 (Symbol_table::write_section_symbol): Add symtab_xindex
970 parameter. Change all callers.
971 (Symbol_table::sized_write_section_symbol): Likewise. Use
972 SHN_XINDEX when needed.
973 * symtab.h (class Symbol): Add is_ordinary_shndx_ field. Update
974 declarations.
975 (Symbol::shndx): Add is_ordinary parameter. Change all callers.
976 (Symbol::is_defined): Check is_ordinary.
977 (Symbol::is_undefined, Symbol::is_weak_undefined): Likewise.
978 (Symbol::is_absolute, Symbol::is_common): Likewise.
979 (class Sized_symbol): Update declarations.
980 (class Symbol_table): Update declarations.
981 * resolve.cc (Symbol::override_base): Add st_shndx and is_ordinary
982 parameters. Change all callers.
983 (Sized_symbol::override): Likewise.
984 (Symbol_table::override): Likewise.
985 (symbol_to_bits): Add is_ordinary parameter. Change all callers.
986 (Symbol_table::resolve): Remove orig_sym parameter. Add st_shndx,
987 is_ordinary, and orig_st_shndx parameters. Change all callers.
988 * copy-relocs.cc (Copy_relocs::emit_copy_reloc): Require symbol
989 to be in an ordinary section.
990 * dwarf_reader.cc (Sized_dwarf_line_info::symbol_section): Add
991 object and is_ordinary parameters. Change all callers.
992 (Sized_dwarf_line_info::read_relocs): Add object parameter.
993 Change all callers. Don't add undefined or non-ordinary symbols
994 to reloc_map_.
995 (Sized_dwarf_line_info::read_line_mappings): Add object parameter.
996 Change all callers.
997 * dwarf_reader.h (class Sized_dwarf_line_info): Update
998 declarations.
999 * ehframe.cc (Eh_frame::read_fde): Check for ordinary symbol.
1000 * reloc.cc (Sized_relobj::do_read_relocs): Adjust section links.
1001 (Sized_relobj::relocate_sections): Likewise.
1002 * target-reloc.h (scan_relocs): Adjust section symbol index.
1003 (scan_relocatable_relocs): Likewise.
1004 * i386.cc (Scan::local): Check for ordinary symbols.
1005 * sparc.cc (Scan::local): Likewise.
1006 * x86_64.cc (Scan::local): Likewise.
1007 * testsuite/binary_unittest.cc (Sized_binary_test): Update calls
1008 to symbol_section_and_value.
1009 * testsuite/many_sections_test.cc: New file.
1010 * testsuite/Makefile.am (BUILT_SOURCES): Define.
1011 (check_PROGRAMS): Add many_sections_test.
1012 (many_sections_test_SOURCES): Define.
1013 (many_sections_test_DEPENDENCIES): Define.
1014 (many_sections_test_LDFLAGS): Define.
1015 (BUILT_SOURCES): Add many_sections_define.h.
1016 (many_sections_define.h): New target.
1017 (BUILT_SOURCES): Add many_sections_check.h.
1018 (many_sections_check.h): New target.
1019 (check_PROGRAMS): Add many_sections_r_test.
1020 (many_sections_r_test_SOURCES): Define.
1021 (many_sections_r_test_DEPENDENCIES): Define.
1022 (many_sections_r_test_LDFLAGS): Define.
1023 (many_sections_r_test_LDADD): Define.
1024 (many_sections_r_test.o): New target.
1025 * testsuite/Makefile.in: Rebuild.
1026
c5818ff1
CC
10272008-04-17 Cary Coutant <ccoutant@google.com>
1028
1029 * errors.cc (Errors::info): New function.
1030 (gold_info): New function.
1031 * errors.h (Errors::info): New function.
1032 * gold.h (gold_info): New function.
1033 * object.cc (Input_objects::add_object): Print trace output.
1034 * options.cc (options::parse_set): New function.
1035 (General_options::parse_wrap): Deleted.
1036 (General_options::General_options): Deleted initializer.
1037 * options.h (options::String_set): New typedef.
1038 (options::parse_set): New function.
1039 (DEFINE_set): New macro.
1040 (General_options::wrap): Changed to use DEFINE_set. Changed
1041 callers of any_wrap_symbols and is_wrap_symbol.
1042 (General_options::trace, General_options::trace_symbol):
1043 New options.
1044 (General_options::any_wrap_symbols, General_options::is_wrap_symbol)
1045 (General_options::wrap_symbols_): Deleted.
1046 * symtab.cc (Symbol_table::add_from_object): Print trace output.
1047
b5be4a7c
DM
10482008-04-17 David S. Miller <davem@davemloft.net>
1049
1050 * options.cc (General_options::parse_V): New function.
1051 * options.h: Add entries for -V and -Qy.
1052
155a0dd7
ILT
10532008-04-17 Ian Lance Taylor <iant@google.com>
1054
1055 * common.cc (Symbol_table::allocate_commons): Remove options
1056 parameter. Change caller.
1057 (Symbol_table::do_allocate_commons): Remove options parameter.
1058 Change caller. Just call do_allocate_commons_list twice.
1059 (Symbol_table::do_allocate_commons_list): New function, broken out
1060 of do_allocate_commons.
1061 * common.h (class Allocate_commons_task): Remove options_ field.
1062 Update constructor.
1063 * symtab.cc (Symbol_table::Symbol_table): Initialize
1064 tls_commons_.
1065 (Symbol_table::add_from_object): Put TLS common symbols on
1066 tls_commons_ list.
1067 (Symbol_table::sized_finalize_symbol): Handle STT_TLS symbols
1068 which are IN_OUTPUT_DATA.
1069 * symtab.h (class Symbol_table): Add tls_commons_ field. Update
1070 allocate_commons and do_allocate_commons declarations. Declare
1071 do_allocate_commons_list.
1072 * gold.cc (queue_middle_tasks): Update creation of
1073 Allocate_commons_task to not pass options.
1074 * testsuite/Makefile.am (INCLUDES): Add -I.. .
1075 (TLS_TEST_C_FLAGS): New variable.
1076 (tls_test_c_pic.o): New target.
1077 (tls_test_shared.so): Link in tls_test_c_pic.o.
1078 (tls_test_c_pic_ie.o): New target.
1079 (tls_test_ie_shared.so): Link in tls_test_c_pic_ie.o.
1080 (tls_test_DEPENDENCIES, tls_test_LDADD): Add tls_test_c.o.
1081 (tls_test_c.o): New target.
1082 (tls_pic_test_DEPENDENCIES): Add tls_test_c_pic.o.
1083 (tls_pic_test_LDADD): Likewise.
1084 (tls_shared_gd_to_ie_test_DEPENDENCIES): Add tls_test_c_pic.o.
1085 (tls_shared_gd_to_ie_test_LDADD): Likewise.
1086 (tls_test_c_gnu2.o): New target.
1087 (tls_shared_gnu2_gd_to_ie_test_DEPENDENCIES): Add
1088 tls_test_c_gnu2.o.
1089 (tls_shared_gnu2_gd_to_ie_test_LDADD): Likewise.
1090 (tls_test_gnu2_shared.so): Link in tls_test_c_gnu2.o.
1091 (tls_test_shared_nonpic.so): Link in tls_test_c.o.
1092 * testsuite/tls_test.cc: Include "config.h".
1093 (t_last): Call t11_last.
1094 * testsuite/tls_test.h (t11, t11_last): Declare.
1095 * testsuite/tls_test_c.c: New file.
1096 * testsuite/tls_test_main.cc (thread_routine): Call t11.
1097 * configure.ac: Check for OpenMP support.
1098 * configure, config.in, Makefile.in: Rebuild.
1099 * testsuite/Makefile.in: Rebuild.
1100
edfbb029
CC
11012008-04-16 Cary Coutant <ccoutant@google.com>
1102
1103 * i386.cc (Target_i386::define_tls_base_symbol): New function.
1104 (Target_i386::tls_base_symbol_defined_): New field.
1105 (Target_i386::Scan::local): Define _TLS_MODULE_BASE_ symbol.
1106 (Target_i386::Scan::global): Likewise.
1107 * symtab.cc (sized_finalize_symbol): Add check for TLS symbol.
1108 * x86_64.cc (Target_x86_64::define_tls_base_symbol): New function.
1109 (Target_x86_64::tls_base_symbol_defined_): New field.
1110 (Target_x86_64::Scan::local): Define _TLS_MODULE_BASE_ symbol.
1111 (Target_x86_64::Scan::global): Likewise.
1112
f3c69fca
CC
11132008-04-16 Cary Coutant <ccoutant@google.com>
1114
1115 * symtab.h (Symbol::is_strong_undefined): Removed unused function.
1116 (Symbol::needs_plt_entry): Allow weak undefined symbols.
1117 (Symbol::needs_dynamic_reloc): Allow weak undefined symbols when
1118 building shared libraries.
1119 * testsuite/Makefile.am (weak_undef_nonpic_test): New target.
1120 (weak_undef_file1_nonpic.o, weak_undef_file2_nonpic.o)
1121 (weak_undef_lib_nonpic.so, alt/weak_undef_lib_nonpic.so): New targets.
1122 * testsuite/Makefile.in: Rebuild.
1123 * testsuite/weak_undef.h: New file.
1124 * testsuite/weak_undef_file1.cc: Add extra test cases.
1125 * testsuite/weak_undef_file2.cc: Likewise.
1126 * testsuite/weak_undef_test.cc: Likewise.
1127
7c414435
DM
11282008-04-16 David S. Miller <davem@davemloft.net>
1129
32b769e1
DM
1130 * sparc.cc (Target_sparc::Scan): Change from struct to class.
1131 Add issued_non_pic_error_ field. Declare check_non_pic.
1132 (Target_sparc::Scan::check_non_pic): New function.
1133 (Target_sparc::Scan::local): Call check_non_pic as appropriate.
1134 (Target_sparc::Scan::global): Likewise.
1135
11936fb1
DM
1136 * configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): Add sparc64.
1137 * configure: Rebuild.
1138
7c414435
DM
1139 * options.h (DEFINE_enable): New macro.
1140 (new_dtags): New enable option.
1141 (initfirst, interpose, loadfltr, nodefaultlib,
1142 nodelete, nodlopen, nodump): New -z options.
1143 * layout.cc (Layout:finish_dynamic_section): If new
1144 dtags enabled, emit DT_RUNPATH. Also, emit a
1145 DT_FLAGS_1 containing any specified -z flags.
1146
85c7bf8b
ILT
11472008-04-16 Ian Lance Taylor <iant@google.com>
1148
12c0daef
ILT
1149 * copy-relocs.cc: New file.
1150 * copy-relocs.h: New file.
1151 * reloc.cc: Remove Copy_relocs code.
1152 * reloc.h: Likewise.
1153 * reloc-types.h (struct Reloc_types) [both versions]: Add
1154 get_reloc_addend_noerror.
1155 * output.h (class Output_data_reloc<elfcpp::SHT_REL>): Add
1156 variants of add_global which take an addend which must be zero.
1157 * i386.cc: Include "copy-relocs.h".
1158 (class Target_i386): Change type of copy_relocs_ to variable,
1159 update initializer.
1160 (Target_i386::copy_reloc): Rewrite to pass to Copy_relocs class.
1161 Change all callers.
1162 (Target_i386::do_finalize_sections): Change handling of
1163 copy_relocs_.
1164 * sparc.cc: Include "copy-relocs.h".
1165 (class Target_sparc): Change type of copy_relocs_ to variable,
1166 update initializer.
1167 (Target_sparc::copy_reloc): Rewrite to pass to Copy_relocs class.
1168 Change all callers.
1169 (Target_sparc::do_finalize_sections): Change handling of
1170 copy_relocs_.
1171 * x86_64.cc: Include "copy-relocs.h".
1172 (class Target_x86_64): Change type of copy_relocs_ to variable,
1173 update initializer.
1174 (Target_x86_64::copy_reloc): Rewrite to pass to Copy_relocs
1175 class. Change all callers.
1176 (Target_x86_64::do_finalize_sections): Change handling of
1177 copy_relocs_.
1178 * Makefile.am (CCFILES): Add copy-relocs.cc.
1179 (HFILES): Add copy-relocs.h.
1180
4f4995b6
ILT
1181 * Makefile.in, aclocal.m4, testsuite/Makefile.in: Rebuild.
1182
85c7bf8b
ILT
1183 * testsuite/script_test_4.sh: Permit leading zeroes.
1184
4f2a9edd
ILT
11852008-04-15 Ian Lance Taylor <iant@google.com>
1186
e6188289
ILT
1187 * script-sections.cc (Script_sections::create_segments): Use
1188 header_size_adjustment even when there is enough room for the
1189 headers.
1190 * testsuite/script_test_4.sh: New file.
1191 * testsuite/script_test_4.t: New file.
1192 * testsuite/Makefile.am (check_SCRIPTS): Add script_test_4.sh.
1193 (check_DATA): Add script_test_4.stdout.
1194 (MOSTLYCLEANFILES): Likewise.
1195 (script_test_4): New target.
1196 (script_test_4.stdout): New target.
1197 * testsuite/Makefile.in: Rebuild.
1198
4f2a9edd
ILT
1199 * sparc.cc: Add definitions for Output_data_plt_sparc class
1200 constants.
1201
f5314dd5
DM
12022008-04-14 David S. Miller <davem@davemloft.net>
1203
1204 * sparc.cc: New file.
1205 * Makefile.am (TARGETSOURCES): Add sparc.cc
1206 (ALL_TARGETOBJS): Add sparc.$(OBJEXT)
1207 * configure.tgt: Document targ_extra_size and
1208 targ_extra_big_endian. Add entries for sparc-* and
1209 sparc64-*.
1210 * configure.ac: Handle targ_extra_size and
1211 targ_extra_big_endian.
1212 * Makefile.in: Rebuild.
1213 * configure: Likewise.
1214 * po/POTFILES.in: Likewise.
1215 * po/gold.pot: Likewise.
1216
154e0e9a
ILT
12172008-04-14 Ian Lance Taylor <iant@google.com>
1218
1219 * layout.cc (Layout::Layout): Initialize sections_are_attached_.
1220 (Layout::get_output_section): Ignore SHF_WRITE and SHF_EXECINSTR
1221 in the name/type/flags to section mapping. Don't call
1222 allocate_output_section.
1223 (Layout::choose_output_section): Change parameter from adjust_name
1224 to is_input_section. Don't permit input sections after sections
1225 are attached to segments. Don't call allocate_output_section.
1226 (Layout::layout_eh_frame): Call update_flags_for_input_section,
1227 not write_enable_output_section.
1228 (Layout::make_output_section): Don't push to
1229 unattached_section_list_ nor call attach_to_segment. Call
1230 attach_section_to_segment if sections are attached.
1231 (Layout::attach_sections_to_segments): New function.
1232 (Layout::attach_section_to_segment): New function.
1233 (Layout::attach_allocated_section_to_segment): Rename from
1234 attach_to_segment. Remove flags parameter.
1235 (Layout::allocate_output_section): Remove function.
1236 (Layout::write_enable_output_section): Remove function.
1237 * layout.h (class Layout): Update for above changes. Add new
1238 field sections_are_attached_.
1239 * output.h (Output_section::update_flags_for_input_section): New
1240 function.
1241 * output.cc (Output_section::add_input_section): Call
1242 update_flags_for_input_section.
1243 * gold.cc (queue_middle_tasks): Call attach_sections_to_segments.
1244
009a67a2
CC
12452008-04-11 Cary Coutant <ccoutant@google.com>
1246
1247 * i386.cc (Target_i386::got_mod_index_entry): Restore code previously
1248 thought unnecessary.
1249 * x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.
1250
759b1a24
ILT
12512008-04-11 Ian Lance Taylor <iant@google.com>
1252
1253 * output.h (class Output_section_data): Remove inline definition
1254 of set_addralign.
1255 * output.cc (Output_section_data::set_addralign): New function.
1256
c2b45e22
CC
12572008-04-11 Cary Coutant <ccoutant@google.com>
1258
1259 Add support for TLS descriptors for i386 and x86_64.
1260 * i386.cc (Target_i386::Relocate::tls_desc_gd_to_ie): New function.
1261 (Target_i386::Relocate::tls_desc_gd_to_le): New function.
1262 (Target_i386::Got_type): Add GOT_TYPE_TLS_NOFFSET and
1263 GOT_TYPE_TLS_DESC.
1264 (Target_i386::got_mod_index_entry): Remove unnecessary code.
1265 (Target_i386::Scan::local): Implement R_386_TLS_GOTDESC and
1266 R_386_TLS_DESC_CALL relocations. Fix problem with initial-exec
1267 relocations.
1268 (Target_i386::Scan::global): Fix problem with GD-to-IE relaxation.
1269 Implement R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL relocations;
1270 Fix problem with initial-exec relocations.
1271 (Target_i386::Relocate::relocate_tls): Likewise.
1272 (Target_i386::Relocate::tls_gd_to_ie): Fix problem with GD-to-IE
1273 relaxation.
1274 * output.cc (Output_data_dynamic::Dynamic_entry::write): Add
1275 support for section-plus-offset dynamic table entries.
1276 * output.h (Output_data_dynamic::add_section_plus_offset): New function.
1277 (Output_data_dynamic::Dynamic_entry): Add support for
1278 section-plus-offset dynamic table entries.
1279 (Output_data_dynamic::Classification): Likewise.
1280 (Output_data_dynamic::classification_): Renamed offset_.
1281 * x86_64.cc (Target_x86_64::Relocate::tls_desc_gd_to_ie): New function.
1282 (Target_x86_64::Relocate::tls_desc_gd_to_le): New function.
1283 (Target_x86_64::make_plt_section): New function.
1284 (Target_x86_64::reserve_tlsdesc_entries): New function.
1285 (Output_data_plt_x86_64::Output_data_plt_x86_64): Add new parameter.
1286 (Output_data_plt_x86_64::reserve_tlsdesc_entry): New function.
1287 (Output_data_plt_x86_64::has_tlsdesc_entry): New function.
1288 (Output_data_plt_x86_64::get_tlsdesc_got_offset): New function.
1289 (Output_data_plt_x86_64::get_tlsdesc_plt_offset): New function.
1290 (Output_data_plt_x86_64::tlsdesc_plt_entry): New field.
1291 (Output_data_plt_x86_64::set_final_data_size): Move out of line;
1292 add extra PLT entry for TLS descriptors.
1293 (Output_data_plt_x86_64::got_): New field.
1294 (Output_data_plt_x86_64::tlsdesc_got_offset_): New field.
1295 (Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize new
1296 fields.
1297 (Output_data_plt_x86_64::do_write): Write extra PLT entry for TLS
1298 descriptors.
1299 (Target_x86_64::make_plt_entry): Factor out make_plt_section.
1300 (Target_x86_64::got_mod_index_entry): Remove unnecessary code.
1301 (Target_x86_64::Scan::local): Implement R_386_TLS_GOTDESC and
1302 R_386_TLS_DESC_CALL relocations.
1303 (Target_x86_64::Scan::global): Likewise.
1304 (Target_x86_64::do_finalize_sections): Add dynamic table entries
1305 for TLS descriptors.
1306 (Relocate::relocate_tls): Fix problem with GD-to-IE relaxation.
1307 Implement R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL relocations.
1308 (Target_x86_64::Relocate::tls_gd_to_ie): Fix problem with
1309 GD-to-IE relaxation.
1310 * configure.ac: Export new conditional variables TLS_GNU2_DIALECT
1311 and TLS_DESCRIPTORS.
1312 * Makefile.in: Rebuild.
1313 * configure: Rebuild.
1314 * testsuite/Makefile.am (tls_shared_gd_to_ie_test): New target.
1315 (tls_test_shared2.so): New target.
1316 (tls_shared_gd_to_ie_test_SOURCES): New variable.
1317 (tls_shared_gd_to_ie_test_DEPENDENCIES): New variable.
1318 (tls_shared_gd_to_ie_test_LDFLAGS): New variable.
1319 (tls_shared_gd_to_ie_test_LDADD): New variable.
1320 (tls_shared_gnu2_gd_to_ie_test): New target.
1321 (tls_test_gnu2.o, tls_test_file2_gnu2.o, tls_test_gnu2_shared2.so):
1322 New targets.
1323 (tls_shared_gnu2_gd_to_ie_test_SOURCES): New variable.
1324 (ls_shared_gnu2_gd_to_ie_test_DEPENDENCIES): New variable.
1325 (tls_shared_gnu2_gd_to_ie_test_LDFLAGS): New variable.
1326 (tls_shared_gnu2_gd_to_ie_test_LDADD): New variable.
1327 (tls_shared_gnu2_test): New target.
1328 (tls_test_gnu2_shared.so): New target.
1329 (tls_shared_gnu2_test_SOURCES): New variable.
1330 (tls_shared_gnu2_test_DEPENDENCIES): New variable.
1331 (tls_shared_gnu2_test_LDFLAGS): New variable.
1332 (tls_shared_gnu2_test_LDADD): New variable.
1333 * testsuite/Makefile.in: Rebuild.
1334 * testsuite/Makefile.
1335
83bfb6b7
ILT
13362008-04-11 Ian Lance Taylor <iant@google.com>
1337
1338 * testsuite/Makefile.am (justsyms_2r.o): Add dependency on
1339 justsyms.t.
1340 * testsuite/Makefile.in: Rebuild.
1341
1342 * testsuite/script_test_2a.cc (script_test_string_a): Make 8 bytes
1343 long.
1344 * testsuite/script_test_2.cc (main): Adjust test.
1345
706e1f5e
ILT
13462008-04-11 David S. Miller <davem@davemloft.net>
1347 Ian Lance Taylor <iant@google.com>
1348
1349 * options.h (General_options): Add entries for '-Y' and
1350 '-relax'.
1351 * options.cc (General_options:finalize): If -Y was used, add those
1352 entries to the library path instead of the default "/lib" and
1353 "/usr/lib".
1354
7c98e6bb
DM
13552008-04-11 David S. Miller <davem@davemloft.net>
1356
1357 * testsuite/justsyms.t: Start at 0x100.
1358 * testsuite/justsyms_1.cc: Adjust justsyms_string assertion.
83bfb6b7
ILT
1359 * testsuite/script_test_2b.cc (script_test_string_b): Make 8 bytes
1360 long.
1361 * testsuite/script_test_2.cc: Adjust string and section length
1362 checks.
7c98e6bb 1363
99a37bfd
ILT
13642008-04-09 Ian Lance Taylor <iant@google.com>
1365
2cefc357
ILT
1366 PR gold/5996
1367 * script-sections.cc (Sections_element::allocate_to_segment): Add
1368 orphan parameter.
1369 (Output_section_definition::allocate_to_segment): Likewise.
1370 (Orphan_output_section::allocate_to_segment): Likewise.
1371 (Script_sections::attach_sections_using_phdrs_clause): Don't
1372 propagate non-PT_LOAD segments to orphan sections.
1373 * testsuite/Makefile.am (script_test_3.stdout): Generate using
1374 readelf rather than objdump.
1375 * testsuite/script_test_3.sh: Adjust accordingly. Test that
1376 .interp section and PT_INTERP segment are the same size.
1377 * testsuite/Makefile.in: Rebuild.
1378
99a37bfd
ILT
1379 * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak
1380 aliases for symbols defined in the same object.
1381 * testsuite/Makefile.am (check_PROGRAMS): Add weak_alias_test.
1382 (weak_alias_test_SOURCES): New variable.
1383 (weak_alias_test_DEPENDENCIES): New variable.
1384 (weak_alias_test_LDFLAGS): New variable.
1385 (weak_alias_test_LDADD): New variable.
1386 (weak_alias_test_1_pic.o, weak_alias_test_1.so): New targets.
1387 (weak_alias_test_2_pic.o, weak_alias_test_2.so): New targets.
1388 (weak_alias_test_3.o): New target.
1389 (weak_alias_test_4_pic.o, weak_alias_test_4.so): New targets.
1390 * testsuite/weak_alias_test_main.cc: New file.
1391 * testsuite/weak_alias_test_1.cc: New file.
1392 * testsuite/weak_alias_test_2.cc: New file.
1393 * testsuite/weak_alias_test_3.cc: New file.
1394
780e49c5
ILT
13952008-04-08 Ian Lance Taylor <iant@google.com>
1396
cdb0b8f5
ILT
1397 * options.h (class General_options): Add --noinhibit-exec option.
1398 * main.cc (main): Check --noinhibit-exec.
1399
0864d551
ILT
1400 * options.h (class General_options): Define --wrap as a special
1401 option. Add wrap_symbols_ field.
1402 (General_options::any_wrap_symbols): New function.
1403 (General_options::is_wrap_symbol): New function.
1404 * options.cc (General_options::parse_wrap): New function.
1405 (General_options::General_options): Initialize wrap_symbols_.
1406 * symtab.cc (Symbol_table::wrap_symbol): New function.
1407 (Symbol_table::add_from_object): Handle --wrap.
1408 * symtab.h (class Symbol_table): Declare wrap_symbol.
1409 * target.h (Target::wrap_char): New function.
1410 (Target::Target_info): Add wrap_char field.
1411 * i386.cc (Target_i386::i386_info): Initialize wrap_char.
1412 * x86_64.cc (Target_x86_64::x86_64_info): Likewise.
1413 * testsuite/testfile.cc (Target_test::test_target_info):
1414 Likewise.
1415
789aa6de
ILT
1416 * errors.cc (Errors::undefined_symbol): Mention symbol version if
1417 there is one.
1418
2c38906f
ILT
1419 * layout.h (class Layout): Add added_eh_frame_data_ field.
1420 * layout.cc (Layout::Layout): Initialize new field.
1421 (Layout::layout_eh_frame): Don't add eh_frame_data_ to .eh_frame
1422 output section until we find a section we merged successfully.
1423 * object.cc (Sized_relobj::check_eh_frame_flags): Don't require
1424 that the size be non-zero.
1425
780e49c5
ILT
1426 * merge.cc (Object_merge_map::get_output_offset): Remove inline
1427 qualifier.
1428
7fcd0256
ILT
14292008-04-08 Craig Silverstein <csilvers@google.com>
1430
1431 * configure.ac: Export new conditional variable HAVE_ZLIB.
1432 * testsuite/Makefile.am (flagstest_o_specialfile): Condition
1433 on HAVE_ZLIB.
1434 (flagstest_o_specialfile_and_compress_debug_sections): Likewise.
1435 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
1436
6835af53
ILT
14372008-04-07 Ian Lance Taylor <iant@google.com>
1438
e24f324c
ILT
1439 * version.cc (version_string): Set to "1.5".
1440
a036edd8
ILT
1441 * x86_64.cc (Target_x86_64::Scan): Change from struct to class.
1442 Add issued_non_pic_error_ field. Declare check_non_pic.
1443 (Target_x86_64::Scan::check_non_pic): New function.
1444 (Target_x86_64::Scan::local): Call check_non_pic as appropriate.
1445 (Target_x86_64::Scan::global): Likewise.
1446
624f8810
ILT
1447 * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add
1448 addend parameter. Change caller. Handle merge sections.
1449 (Output_reloc<SHT_REL>::symbol_value): Change parameter type from
1450 Address to Addend. Don't add in the result of
1451 local_section_offset, pass down the addend and use the returned
1452 value.
1453 * output.h (class Output_reloc<SHT_REL>): Add Addend typedef.
1454 Update declarations of local_section_offset and symbol_value.
1455 * testsuite/two_file_test_1.cc (t18): New function.
1456 * testsuite/two_file_test_2.cc (f18): New function.
1457 * testsuite/two_file_test_main.cc (main): Call t18.
1458 * testsuite/two_file_test.h (t18, f18): Declare.
1459
6835af53
ILT
1460 * configure.ac: Don't test for objdump, c++filt, or readelf.
1461 * testsuite/Makefile.am: Remove READELF and OBJDUMP_AND_CPPFILT
1462 conditionals.
1463 (TEST_READELF): New variable.
1464 (TEST_OBJDUMP, TEST_CXXFILT, TEST_STRIP): New variables.
1465 (check_PROGRAMS): Add two_file_strip_test.
1466 (two_file_strip_test): New target.
1467 (check_PROGRAMS): Add two_file_same_shared_strip_test.
1468 (two_file_same_shared_strip_test_SOURCES): New variable.
1469 (two_file_same_shared_strip_test_DEPENDENCIES): New variable.
1470 (two_file_same_shared_strip_test_LDFLAGS): New variable.
1471 (two_file_same_shared_strip_test_LDADD): New variable.
1472 (two_file_shared_strip.so): New target.
1473 (ver_test_2.syms, ver_test_4.syms): Use TEST_READELF.
1474 (ver_test_5.syms, ver_test_7.syms): Likewise.
1475 (ver_matching_test.stdout): Use TEST_OBJDUMP and TEST_CXXFILT.
1476 (strip_test_3.stdout): Use TEST_OBJDUMP.
1477 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
1478
86925eef
CC
14792008-04-04 Cary Coutant <ccoutant@google.com>
1480
1481 * symtab.h (Symbol::is_weak_undefined): New function.
1482 (Symbol::is_strong_undefined): New function.
1483 (Symbol::is_absolute): New function.
1484 (Symbol::needs_plt_entry): Exclude weak undefined symbols.
1485 (Symbol::needs_dynamic_reloc): Exclude weak undefined and
1486 absolute symbols.
1487 * testsuite/Makefile.am (check_PROGRAMS): Add weak_undef_test.
1488 (weak_undef_test): New target.
1489 * testsuite/Makefile.in: Rebuild.
1490 * testsuite/weak_undef_file1.cc: New file.
1491 * testsuite/weak_undef_file2.cc: New file.
1492 * testsuite/weak_undef_test.cc: New file.
1493
126f3ece
ILT
14942008-04-03 Craig Silverstein <csilvers@google.com>
1495
1496 * compressed_output.h (class Output_compressed_section): Use
1497 unsigned buffer.
1498 * compressed_output.cc (zlib_compress): Use unsigned buffers,
1499 add zlib header.
1500 (zlib_compressed_suffix): Removed.
1501 (Output_compressed_section::set_final_data_size): Use unsigned
1502 buffers.
1503 * testsuite/Makefile.am (flagstest_compress_debug_sections):
1504 Fix linker invocation.
1505 (flagstest_o_specialfile_and_compress_debug_sections):
1506 Likewise.
1507 * testsuite/Makefile.in: Regenerated.
1508
deae2a14
DM
15092008-04-02 David S. Miller <davem@davemloft.net>
1510
1511 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog,
1512 Sized_dwarf_line_info::process_one_opcode): Use Swap_unaligned.
1513
70752818
ILT
15142008-04-02 Craig Silverstein <csilvers@google.com>
1515
1516 * TODO: New file.
1517
39d0cb0e
ILT
15182008-04-02 Ian Lance Taylor <iant@google.com>
1519
1520 * fileread.cc (File_read::find_view): Add byteshift and vshifted
1521 parameters. Update for new key type to views_. Change all
1522 callers.
1523 (File_read::read): Adjust for byteshift in returned view.
1524 (File_read::add_view): New function, broken out of
1525 find_and_make_view.
1526 (File_read::make_view): New function, broken out of
1527 find_and_make_view.
1528 (File_read::find_or_make_view): Add offset and aligned
1529 parameters. Rewrite accordingly. Change all callers.
1530 (File_read::get_view): Add offset and aligned parameters. Adjust
1531 for byteshift in return value.
1532 (File_read::get_lasting_view): Likewise.
1533 * fileread.h (class File_read): Update declarations.
1534 (class File_read::View): Add byteshift_ field. Add byteshift to
1535 constructor. Add byteshift method.
1536 * archive.h (Archive::clear_uncached_views): New function.
1537 (Archive::get_view): Add aligned parameter. Change all callers.
1538 * object.h (Object::get_view): Add aligned parameter. Change all
1539 callers.
1540 (Object::get_lasting_view): Likewise.
1541
1542 * fileread.cc (File_read::release): Don't call clear_views if
1543 there are multiple objects.
1544 * fileread.h (File_read::clear_uncached_views): New function.
1545 * archive.cc (Add_archive_symbols::run): Call clear_uncached_views
1546 on the archive.
1547
a1207466
CC
15482008-03-31 Cary Coutant <ccoutant@google.com>
1549
1550 Add thin archive support.
1551 * archive.cc (Archive::armagt): New const.
1552 (Archive::setup): Remove task parameter and calls to unlock.
1553 (Archive::unlock_nested_archives): New function.
1554 (Archive::read_header): Add nested_off parameter. Change
1555 all callers.
1556 (Archive::interpret_header): Likewise.
1557 (Archive::include_all_members): Change to handle thin
1558 archives.
1559 (Archive::include_member): Likewise.
1560 * archive.h (Archive::Archive): Add new parameters and
1561 initializers.
1562 (Archive::armagt): New const.
1563 (Archive::setup): Remove task parameter.
1564 (Archive::unlock_nested_archives): New function.
1565 (Archive::read_header): Add nested_off parameter.
1566 (Archive::interpret_header): Likewise.
1567 (Archive::Nested_archive_table): New typedef.
1568 (Archive::is_thin_archive_): New field.
1569 (Archive::nested_archives_): New field.
1570 (Archive::options_): New field.
1571 (Archive::dirpath_): New field.
1572 (Archive::task_): New field.
1573 * readsyms.cc (Read_symbols::do_read_symbols): Add check
1574 for thin archives. Pass additional parameters to
1575 Archive::Archive. Unlock the archive file after calling
1576 Archive::setup.
1577
479f6503
ILT
15782008-03-29 Ian Lance Taylor <iant@google.com>
1579
686c8caf
ILT
1580 * symtab.cc (Symbol_table::do_define_as_constant): Don't force a
1581 version symbol to be local.
1582 * testsuite/ver_test_4.sh: New file.
1583 * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_4.sh.
1584 (check_DATA): Add ver_test_4.syms.
1585 (ver_test_4.syms): New target.
1586 * testsuite/Makefile.in: Rebuild.
1587
ab794b6b
ILT
1588 * output.cc
1589 (Output_section::Input_section_sort_entry::has_priority): New
1590 function.
1591 (Output_section::Input_section_sort_entry::match_file_name): New
1592 function.
1593 (Output_section::Input_section_sort_entry::match_section_name):
1594 Remove.
1595 (Output_section::Input_section_sort_entry::match_section_name_prefix):
1596 Remove.
1597 (Output_section::Input_section_sort_entry::match_section_file):
1598 Remove.
1599 (Output_section::Input_section_sort_compare::operator()): Rewrite
1600 using new Input_section_sort_entry functions. Sort crtbegin and
1601 crtend first. Sort sections with no priority before sections with
1602 a priority.
1603 * testsuite/initpri1.c (d3): Check j != 4.
1604 (cd5): New constructor/destructor function.
1605 (main): Check j != 2.
1606
479f6503
ILT
1607 * symtab.cc (Symbol_table::add_from_object): If we don't use the
1608 new symbol when resolving, don't call set_is_default.
1609 * testsuite/ver_test_7.cc: New file.
1610 * testsuite/ver_test_7.sh: New file.
1611 * testsuite/Makefile.am (ver_test_7.so): New target.
1612 (ver_test_7.o): New target.
1613 (check_SCRIPTS): Add ver_test_7.sh.
1614 (check_DATA): Add ver_test_7.syms.
1615 (ver_test_7.syms): New target.
1616
2fd32231
ILT
16172008-03-28 Ian Lance Taylor <iant@google.com>
1618
1619 * layout.cc (Layout::layout): If we see an input section with a
1620 name that needs sorting, set the must_sort flag for the output
1621 section.
1622 (Layout::make_output_section): If the name of the output section
1623 indicates that it might require sorting, set the may_sort flag.
1624 * output.h (Output_section::may_sort_attached_input_sections): New
1625 function.
1626 (Output_section::set_may_sort_attached_input_sections): New
1627 function.
1628 (Output_section::must_sort_attached_input_sections): New
1629 function.
1630 (Output_section::set_must_sort_attached_input_sections): New
1631 function.
1632 (class Output_section): Declare Input_section_sort_entry. Define
1633 Input_section_sort_compare. Declare
1634 sort_attached_input_sections. Add new fields:
1635 may_sort_attached_input_sections_,
1636 must_sort_attached_input_sections_,
1637 attached_input_sections_are_sorted_.
1638 * output.cc (Output_section::Output_section): Initialize new
1639 fields.
1640 (Output_section::add_input_section): Add an entry to
1641 input_sections_ if may_sort or must_sort are true.
1642 (Output_section::set_final_data_size): Call
1643 sort_attached_input_sections if necessary.
1644 (Output_section::Input_section_sort_entry): Define new class.
1645 (Output_section::Input_section_sort_compare::operator()): New
1646 function.
1647 (Output_section::sort_attached_input_sections): New function.
1648 * configure.ac: Check whether the compiler supports constructor
1649 priorities. Define a CONSTRUCTOR_PRIORITY automake conditional.
1650 * testsuite/initpri1.c: New file.
1651 * testsuite/Makefile.am (check_PROGRAMS): Add initpri1 if
1652 CONSTRUCTOR_PRIORITY.
1653 (initpri1_SOURCES, initpri1_DEPENDENCIES): New variables.
1654 (initpri1_LDFLAGS): New variable.
1655 * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
1656
18e6b24e
ILT
16572008-03-27 Ian Lance Taylor <iant@google.com>
1658
49bdd526
ILT
1659 * common.cc (Sort_commons::operator): Correct sorting algorithm.
1660 * testsuite/common_test_1.c: New file.
1661 * testsuite/Makefile.am (check_PROGRAMS): Add common_test_1.
1662 (common_test_1_SOURCES): New variable.
1663 (common_test_1_DEPENDENCIES): New variable.
1664 (common_test_1_LDFLAGS): New variable.
1665
18e6b24e
ILT
1666 * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
1667 and commons_ correctly when NAME/VERSION does not override
1668 NAME/NULL.
1669 * testsuite/ver_test_6.c: New file.
1670 * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
1671 (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
1672 (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
1673
04bf7072
ILT
16742008-03-26 Ian Lance Taylor <iant@google.com>
1675
5871526f
ILT
1676 * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
1677 of an undefined symbol from a version script.
1678 * testsuite/Makefile.am (ver_test_5.so): New target.
1679 (ver_test_5.o): New target.
1680 (check_SCRIPTS): Add ver_test_5.sh.
1681 (check_DATA): Add ver_test_5.syms.
1682 (ver_test_5.syms): New target.
1683 * testsuite/ver_test_5.cc: New file.
1684 * testsuite/ver_test_5.script: New file.
1685 * testsuite/ver_test_5.sh: New file.
1686 * Makefile.in, testsuite/Makefile.in: Rebuild.
1687
04bf7072
ILT
1688 PR gold/5986
1689 Fix problems building gold with gcc 4.3.0.
1690 * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
1691 (gold_error_at_location, gold_warning_at_location): Use it.
1692 * configure.ac: Check whether we can compile and use a template
1693 function with a printf attribute.
1694 * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
1695 when jumping over bytes.
1696 * object.cc: Instantiate Object::read_section_data.
1697 * debug.h: Include <cstring>
1698 * dwarf_reader.cc: Include <algorithm>
1699 * main.cc: Include <cstring>.
1700 * options.cc: Include <cstring>.
1701 * output.cc: Include <cstring>.
1702 * script.cc: Include <cstring>.
1703 * script.h: Include <string>.
1704 * symtab.cc: Include <cstring> and <algorithm>.
1705 * target-select.cc: Include <cstring>.
1706 * version.cc: Include <string>.
1707 * testsuite/testmain.cc: Include <cstdlib>.
1708 * configure, config.in: Rebuild.
1709
874c5b28
ILT
17102008-03-25 Ian Lance Taylor <iant@google.com>
1711
819d6c3a
ILT
1712 * options.cc: Include "../bfd/bfdver.h".
1713 (options::help): Print bug reporting address.
1714
f4b2c6f5
ILT
1715 * version.cc (print_version): Adjust output for current value of
1716 BFD_VERSION_STRING.
1717
1718 * NEWS: New file.
1719
e96caa79
ILT
1720 * options.cc (options::help): Print list of supported targets.
1721 * target-select.h: Include <vector>.
1722 (class Target_selector): Make machine_, size_, and is_big_endian_
1723 fields const. Add bfd_name_ and instantiated_target_ fields.
1724 (Target_selector::Target_selector): Add bfd_name parameter.
1725 (Target_selector::recognize): Make non-virtual, call
1726 do_recognize.
1727 (Target_selector::recognize_by_name): Make non-virtual, call
1728 do_recognize_by_name.
1729 (Target_selector::supported_names): New function.
1730 (Target_selector::bfd_name): New function.
1731 (Target_selector::do_instantiate_target): New pure virtual
1732 function.
1733 (Target_selector::do_recognize): New virtual function.
1734 (Target_selector::do_recognize_by_name): New virtual function.
1735 (Target_selector::instantiate_target): New private function.
1736 (supported_target_names): Declare.
1737 * target-select.cc (Target_selector::Target_selector): Update for
1738 new parameter and fields.
1739 (select_target_by_name): Check that the name matches before
1740 calling recognize_by_name.
1741 (supported_target_names): New function.
1742 * i386.cc (class Target_selector_i386): Update Target_selector
1743 constructor call. Remove recognize and recognize_by_name. Add
1744 do_instantiate_target.
1745 * x86_64.cc (class Target_selector_x86_64): Likewise.
1746 * testsuite/testfile.cc (class Target_selector_test): Update for
1747 changes to Target_selector.
1748
874c5b28
ILT
1749 * README: Rewrite, with some notes on unsupported features.
1750
0a65a3a7
CC
17512008-03-24 Cary Coutant <ccoutant@google.com>
1752
1753 * i386.cc (Target_i386::Got_type): New enum declaration.
1754 (Target_i386::Scan::local): Updated callers of Output_data_got
1755 member functions.
1756 (Target_i386::Scan::global): Likewise.
1757 (Target_i386::Relocate::relocate): Likewise.
1758 (Target_i386::Relocate::relocate_tls): Likewise.
1759 * object.h (Got_offset_list): New class.
1760 (Sized_relobj::local_has_got_offset): Added got_type parameter.
1761 (Sized_relobj::local_got_offset): Likewise.
1762 (Sized_relobj::set_local_got_offset): Likewise.
1763 (Sized_relobj::local_has_tls_got_offset): Removed.
1764 (Sized_relobj::local_tls_got_offset): Removed.
1765 (Sized_relobj::set_local_tls_got_offset): Removed.
1766 (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
1767 * output.cc (Output_data_got::add_global): Added got_type parameter.
1768 (Output_data_got::add_global_with_rel): Likewise.
1769 (Output_data_got::add_global_with_rela): Likewise.
1770 (Output_data_got::add_global_pair_with_rel): New function.
1771 (Output_data_got::add_global_pair_with_rela): New function.
1772 (Output_data_got::add_local): Added got_type parameter.
1773 (Output_data_got::add_local_with_rel): Likewise.
1774 (Output_data_got::add_local_with_rela): Likewise.
1775 (Output_data_got::add_local_pair_with_rel): New function.
1776 (Output_data_got::add_local_pair_with_rela): New function.
1777 (Output_data_got::add_global_tls): Removed.
1778 (Output_data_got::add_global_tls_with_rel): Removed.
1779 (Output_data_got::add_global_tls_with_rela): Removed.
1780 (Output_data_got::add_local_tls): Removed.
1781 (Output_data_got::add_local_tls_with_rel): Removed.
1782 (Output_data_got::add_local_tls_with_rela): Removed.
1783 * output.h (Output_data_got::add_global): Added got_type parameter.
1784 (Output_data_got::add_global_with_rel): Likewise.
1785 (Output_data_got::add_global_with_rela): Likewise.
1786 (Output_data_got::add_global_pair_with_rel): New function.
1787 (Output_data_got::add_global_pair_with_rela): New function.
1788 (Output_data_got::add_local): Added got_type parameter.
1789 (Output_data_got::add_local_with_rel): Likewise.
1790 (Output_data_got::add_local_with_rela): Likewise.
1791 (Output_data_got::add_local_pair_with_rel): New function.
1792 (Output_data_got::add_local_pair_with_rela): New function.
1793 (Output_data_got::add_global_tls): Removed.
1794 (Output_data_got::add_global_tls_with_rel): Removed.
1795 (Output_data_got::add_global_tls_with_rela): Removed.
1796 (Output_data_got::add_local_tls): Removed.
1797 (Output_data_got::add_local_tls_with_rel): Removed.
1798 (Output_data_got::add_local_tls_with_rela): Removed.
1799 * resolve.cc (Symbol::override_base_with_special): Removed
1800 reference to has_got_offset_ field.
1801 * symtab.cc (Symbol::init_fields): Replaced initialization
1802 of got_offset_ with got_offsets_. Removed initialization
1803 of has_got_offset_
53fcba31 1804 * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
0a65a3a7
CC
1805 (Symbol::got_offset): Likewise.
1806 (Symbol::set_got_offset): Likewise.
1807 (Symbol::has_tls_got_offset): Removed.
1808 (Symbol::tls_got_offset): Removed.
1809 (Symbol::set_tls_got_offset): Removed.
1810 (Symbol::got_offset_): Removed.
1811 (Symbol::tls_mod_got_offset_): Removed.
1812 (Symbol::tls_pair_got_offset_): Removed.
1813 (Symbol::got_offsets_): New field.
1814 (Symbol::has_got_offset): Removed.
1815 (Symbol::has_tls_mod_got_offset): Removed.
1816 (Symbol::has_tls_pair_got_offset): Removed.
1817 * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
1818 (Target_x86_64::Scan::local): Updated callers of Output_data_got
1819 member functions.
1820 (Target_x86_64::Scan::global): Likewise.
1821 (Target_x86_64::Relocate::relocate): Likewise.
1822 (Target_x86_64::Relocate::relocate_tls): Likewise.
1823
bd52eafb
BE
18242008-03-25 Ben Elliston <bje@au.ibm.com>
1825
1826 * yyscript.y: Fix spelling error in comment.
1827
8b105e34
ILT
18282008-03-24 Ian Lance Taylor <iant@google.com>
1829
8ed814a9
ILT
1830 * options.h (class General_options): Define build_id option.
1831 * layout.h (class Layout): Declare write_build_id, create_note,
1832 create_build_id. Add build_id_note_ member.
1833 * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
1834 "libiberty.h", "md5.h", "sha1.h".
1835 (Layout::Layout): Initialize eh_frame_data_,
1836 eh_frame_hdr_section_, and build_id_note_.
1837 (Layout::finalize): Call create_build_id.
1838 (Layout::create_note): New function, broken out of
1839 Layout::create_gold_note.
1840 (Layout::create_gold_note): Call create_note.
1841 (Layout::create_build_id): New function.
1842 (Layout::write_build_id): New function.
1843 (Close_task_runner::run): Call write_build_id.
1844
8b105e34
ILT
1845 * x86_64.cc: Correct license to GPLv3.
1846
086a1841
ILT
18472008-03-23 Ian Lance Taylor <iant@google.com>
1848
1849 * options.cc: Include "demangle.h".
1850 (parse_optional_string): New function.
1851 (parse_long_option): Handle takes_optional_argument.
1852 (parse_short_option): Update dash_z initializer. Handle
1853 takes_optional_argument.
1854 (General_options::General_options): Initialize do_demangle_.
1855 (General_options::finalize): Set do_demangle_. Handle demangling
1856 style.
1857 * options.h (parse_optional_string): Declare.
1858 (struct One_option): Add optional_arg field. Update constructor.
1859 Update call constructor calls. Add takes_optional_argument
1860 function.
1861 (DEFINE_var): Add optional_arg__ parameter. Change all callers.
1862 (DEFINE_optional_string): Define.
1863 (General_options::demangle): Change from DEFINE_bool to
1864 DEFINE_optional_string.
1865 (General_options::no_demangle): New function.
1866 (General_options::do_demangle): New function.
1867 (General_options::set_do_demangle): New function.
1868 (General_options::execstack_status_): Move definition to end of
1869 class definition.
1870 (General_options::static_): Likewise.
1871 (General_options::do_demangle_): New field.
1872 * object.cc (big_endian>::get_symbol_location_info): Call
1873 Options::do_demangle, not Options::demangle.
1874 * symtab.cc (demangle): Likewise.
1875
cbb93e63
ILT
18762008-03-22 Ian Lance Taylor <iant@google.com>
1877
1878 * gold.h: Include <cstddef> and <sys/types.h>
1879 * options.h: Include <cstring>.
1880
ec531623
ILT
18812008-03-21 Ian Lance Taylor <iant@google.com>
1882
1883 * Added source code to GNU binutils.
1884
This page took 0.119597 seconds and 4 git commands to generate.