PR gold/5996
[external/binutils.git] / gold / ChangeLog
1 2008-04-09  Ian Lance Taylor  <iant@google.com>
2
3         PR gold/5996
4         * script-sections.cc (Sections_element::allocate_to_segment): Add
5         orphan parameter.
6         (Output_section_definition::allocate_to_segment): Likewise.
7         (Orphan_output_section::allocate_to_segment): Likewise.
8         (Script_sections::attach_sections_using_phdrs_clause): Don't
9         propagate non-PT_LOAD segments to orphan sections.
10         * testsuite/Makefile.am (script_test_3.stdout): Generate using
11         readelf rather than objdump.
12         * testsuite/script_test_3.sh: Adjust accordingly.  Test that
13         .interp section and PT_INTERP segment are the same size.
14         * testsuite/Makefile.in: Rebuild.
15
16         * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak
17         aliases for symbols defined in the same object.
18         * testsuite/Makefile.am (check_PROGRAMS): Add weak_alias_test.
19         (weak_alias_test_SOURCES): New variable.
20         (weak_alias_test_DEPENDENCIES): New variable.
21         (weak_alias_test_LDFLAGS): New variable.
22         (weak_alias_test_LDADD): New variable.
23         (weak_alias_test_1_pic.o, weak_alias_test_1.so): New targets.
24         (weak_alias_test_2_pic.o, weak_alias_test_2.so): New targets.
25         (weak_alias_test_3.o): New target.
26         (weak_alias_test_4_pic.o, weak_alias_test_4.so): New targets.
27         * testsuite/weak_alias_test_main.cc: New file.
28         * testsuite/weak_alias_test_1.cc: New file.
29         * testsuite/weak_alias_test_2.cc: New file.
30         * testsuite/weak_alias_test_3.cc: New file.
31
32 2008-04-08  Ian Lance Taylor  <iant@google.com>
33
34         * options.h (class General_options): Add --noinhibit-exec option.
35         * main.cc (main): Check --noinhibit-exec.
36
37         * options.h (class General_options): Define --wrap as a special
38         option.  Add wrap_symbols_ field.
39         (General_options::any_wrap_symbols): New function.
40         (General_options::is_wrap_symbol): New function.
41         * options.cc (General_options::parse_wrap): New function.
42         (General_options::General_options): Initialize wrap_symbols_.
43         * symtab.cc (Symbol_table::wrap_symbol): New function.
44         (Symbol_table::add_from_object): Handle --wrap.
45         * symtab.h (class Symbol_table): Declare wrap_symbol.
46         * target.h (Target::wrap_char): New function.
47         (Target::Target_info): Add wrap_char field.
48         * i386.cc (Target_i386::i386_info): Initialize wrap_char.
49         * x86_64.cc (Target_x86_64::x86_64_info): Likewise.
50         * testsuite/testfile.cc (Target_test::test_target_info):
51         Likewise.
52
53         * errors.cc (Errors::undefined_symbol): Mention symbol version if
54         there is one.
55
56         * layout.h (class Layout): Add added_eh_frame_data_ field.
57         * layout.cc (Layout::Layout): Initialize new field.
58         (Layout::layout_eh_frame): Don't add eh_frame_data_ to .eh_frame
59         output section until we find a section we merged successfully.
60         * object.cc (Sized_relobj::check_eh_frame_flags): Don't require
61         that the size be non-zero.
62
63         * merge.cc (Object_merge_map::get_output_offset): Remove inline
64         qualifier.
65
66 2008-04-08  Craig Silverstein  <csilvers@google.com>
67
68         * configure.ac: Export new conditional variable HAVE_ZLIB.
69         * testsuite/Makefile.am (flagstest_o_specialfile): Condition
70         on HAVE_ZLIB.
71         (flagstest_o_specialfile_and_compress_debug_sections): Likewise.
72         * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
73
74 2008-04-07  Ian Lance Taylor  <iant@google.com>
75
76         * version.cc (version_string): Set to "1.5".
77
78         * x86_64.cc (Target_x86_64::Scan): Change from struct to class.
79         Add issued_non_pic_error_ field.  Declare check_non_pic.
80         (Target_x86_64::Scan::check_non_pic): New function.
81         (Target_x86_64::Scan::local): Call check_non_pic as appropriate.
82         (Target_x86_64::Scan::global): Likewise.
83
84         * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add
85         addend parameter.  Change caller.  Handle merge sections.
86         (Output_reloc<SHT_REL>::symbol_value): Change parameter type from
87         Address to Addend.  Don't add in the result of
88         local_section_offset, pass down the addend and use the returned
89         value.
90         * output.h (class Output_reloc<SHT_REL>): Add Addend typedef.
91         Update declarations of local_section_offset and symbol_value.
92         * testsuite/two_file_test_1.cc (t18): New function.
93         * testsuite/two_file_test_2.cc (f18): New function.
94         * testsuite/two_file_test_main.cc (main): Call t18.
95         * testsuite/two_file_test.h (t18, f18): Declare.
96
97         * configure.ac: Don't test for objdump, c++filt, or readelf.
98         * testsuite/Makefile.am: Remove READELF and OBJDUMP_AND_CPPFILT
99         conditionals.
100         (TEST_READELF): New variable.
101         (TEST_OBJDUMP, TEST_CXXFILT, TEST_STRIP): New variables.
102         (check_PROGRAMS): Add two_file_strip_test.
103         (two_file_strip_test): New target.
104         (check_PROGRAMS): Add two_file_same_shared_strip_test.
105         (two_file_same_shared_strip_test_SOURCES): New variable.
106         (two_file_same_shared_strip_test_DEPENDENCIES): New variable.
107         (two_file_same_shared_strip_test_LDFLAGS): New variable.
108         (two_file_same_shared_strip_test_LDADD): New variable.
109         (two_file_shared_strip.so): New target.
110         (ver_test_2.syms, ver_test_4.syms): Use TEST_READELF.
111         (ver_test_5.syms, ver_test_7.syms): Likewise.
112         (ver_matching_test.stdout): Use TEST_OBJDUMP and TEST_CXXFILT.
113         (strip_test_3.stdout): Use TEST_OBJDUMP.
114         * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
115
116 2008-04-04  Cary Coutant  <ccoutant@google.com>
117
118         * symtab.h (Symbol::is_weak_undefined): New function.
119         (Symbol::is_strong_undefined): New function.
120         (Symbol::is_absolute): New function.
121         (Symbol::needs_plt_entry): Exclude weak undefined symbols.
122         (Symbol::needs_dynamic_reloc): Exclude weak undefined and
123         absolute symbols.
124         * testsuite/Makefile.am (check_PROGRAMS): Add weak_undef_test.
125         (weak_undef_test): New target.
126         * testsuite/Makefile.in: Rebuild.
127         * testsuite/weak_undef_file1.cc: New file.
128         * testsuite/weak_undef_file2.cc: New file.
129         * testsuite/weak_undef_test.cc: New file.
130
131 2008-04-03  Craig Silverstein  <csilvers@google.com>
132
133         * compressed_output.h (class Output_compressed_section): Use
134         unsigned buffer.
135         * compressed_output.cc (zlib_compress): Use unsigned buffers,
136         add zlib header.
137         (zlib_compressed_suffix): Removed.
138         (Output_compressed_section::set_final_data_size): Use unsigned
139         buffers.
140         * testsuite/Makefile.am (flagstest_compress_debug_sections):
141         Fix linker invocation.
142         (flagstest_o_specialfile_and_compress_debug_sections):
143         Likewise.
144         * testsuite/Makefile.in: Regenerated.
145
146 2008-04-02  David S. Miller  <davem@davemloft.net>
147
148         *  dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog,
149         Sized_dwarf_line_info::process_one_opcode): Use Swap_unaligned.
150
151 2008-04-02  Craig Silverstein  <csilvers@google.com>
152
153         * TODO: New file.
154
155 2008-04-02  Ian Lance Taylor  <iant@google.com>
156
157         * fileread.cc (File_read::find_view): Add byteshift and vshifted
158         parameters.  Update for new key type to views_.  Change all
159         callers.
160         (File_read::read): Adjust for byteshift in returned view.
161         (File_read::add_view): New function, broken out of
162         find_and_make_view.
163         (File_read::make_view): New function, broken out of
164         find_and_make_view.
165         (File_read::find_or_make_view): Add offset and aligned
166         parameters.  Rewrite accordingly.  Change all callers.
167         (File_read::get_view): Add offset and aligned parameters.  Adjust
168         for byteshift in return value.
169         (File_read::get_lasting_view): Likewise.
170         * fileread.h (class File_read): Update declarations.
171         (class File_read::View): Add byteshift_ field.  Add byteshift to
172         constructor.  Add byteshift method.
173         * archive.h (Archive::clear_uncached_views): New function.
174         (Archive::get_view): Add aligned parameter.  Change all callers.
175         * object.h (Object::get_view): Add aligned parameter.  Change all
176         callers.
177         (Object::get_lasting_view): Likewise.
178
179         * fileread.cc (File_read::release): Don't call clear_views if
180         there are multiple objects.
181         * fileread.h (File_read::clear_uncached_views): New function.
182         * archive.cc (Add_archive_symbols::run): Call clear_uncached_views
183         on the archive.
184
185 2008-03-31  Cary Coutant  <ccoutant@google.com>
186
187         Add thin archive support.
188         * archive.cc (Archive::armagt): New const.
189         (Archive::setup): Remove task parameter and calls to unlock.
190         (Archive::unlock_nested_archives): New function.
191         (Archive::read_header): Add nested_off parameter. Change
192         all callers.
193         (Archive::interpret_header): Likewise.
194         (Archive::include_all_members): Change to handle thin
195         archives.
196         (Archive::include_member): Likewise.
197         * archive.h (Archive::Archive): Add new parameters and
198         initializers.
199         (Archive::armagt): New const.
200         (Archive::setup): Remove task parameter.
201         (Archive::unlock_nested_archives): New function.
202         (Archive::read_header): Add nested_off parameter.
203         (Archive::interpret_header): Likewise.
204         (Archive::Nested_archive_table): New typedef.
205         (Archive::is_thin_archive_): New field.
206         (Archive::nested_archives_): New field.
207         (Archive::options_): New field.
208         (Archive::dirpath_): New field.
209         (Archive::task_): New field.
210         * readsyms.cc (Read_symbols::do_read_symbols): Add check
211         for thin archives.  Pass additional parameters to
212         Archive::Archive.  Unlock the archive file after calling
213         Archive::setup.
214         
215 2008-03-29  Ian Lance Taylor  <iant@google.com>
216
217         * symtab.cc (Symbol_table::do_define_as_constant): Don't force a
218         version symbol to be local.
219         * testsuite/ver_test_4.sh: New file.
220         * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_4.sh.
221         (check_DATA): Add ver_test_4.syms.
222         (ver_test_4.syms): New target.
223         * testsuite/Makefile.in: Rebuild.
224
225         * output.cc
226         (Output_section::Input_section_sort_entry::has_priority): New
227         function.
228         (Output_section::Input_section_sort_entry::match_file_name): New
229         function.
230         (Output_section::Input_section_sort_entry::match_section_name):
231         Remove.
232         (Output_section::Input_section_sort_entry::match_section_name_prefix):
233         Remove.
234         (Output_section::Input_section_sort_entry::match_section_file):
235         Remove.
236         (Output_section::Input_section_sort_compare::operator()): Rewrite
237         using new Input_section_sort_entry functions.  Sort crtbegin and
238         crtend first.  Sort sections with no priority before sections with
239         a priority.
240         * testsuite/initpri1.c (d3): Check j != 4.
241         (cd5): New constructor/destructor function.
242         (main): Check j != 2.
243
244         * symtab.cc (Symbol_table::add_from_object): If we don't use the
245         new symbol when resolving, don't call set_is_default.
246         * testsuite/ver_test_7.cc: New file.
247         * testsuite/ver_test_7.sh: New file.
248         * testsuite/Makefile.am (ver_test_7.so): New target.
249         (ver_test_7.o): New target.
250         (check_SCRIPTS): Add ver_test_7.sh.
251         (check_DATA): Add ver_test_7.syms.
252         (ver_test_7.syms): New target.
253
254 2008-03-28  Ian Lance Taylor  <iant@google.com>
255
256         * layout.cc (Layout::layout): If we see an input section with a
257         name that needs sorting, set the must_sort flag for the output
258         section.
259         (Layout::make_output_section): If the name of the output section
260         indicates that it might require sorting, set the may_sort flag.
261         * output.h (Output_section::may_sort_attached_input_sections): New
262         function.
263         (Output_section::set_may_sort_attached_input_sections): New
264         function.
265         (Output_section::must_sort_attached_input_sections): New
266         function.
267         (Output_section::set_must_sort_attached_input_sections): New
268         function.
269         (class Output_section): Declare Input_section_sort_entry.  Define
270         Input_section_sort_compare.  Declare
271         sort_attached_input_sections.  Add new fields:
272         may_sort_attached_input_sections_,
273         must_sort_attached_input_sections_,
274         attached_input_sections_are_sorted_.
275         * output.cc (Output_section::Output_section): Initialize new
276         fields.
277         (Output_section::add_input_section): Add an entry to
278         input_sections_ if may_sort or must_sort are true.
279         (Output_section::set_final_data_size): Call
280         sort_attached_input_sections if necessary.
281         (Output_section::Input_section_sort_entry): Define new class.
282         (Output_section::Input_section_sort_compare::operator()): New
283         function.
284         (Output_section::sort_attached_input_sections): New function.
285         * configure.ac: Check whether the compiler supports constructor
286         priorities.  Define a CONSTRUCTOR_PRIORITY automake conditional.
287         * testsuite/initpri1.c: New file.
288         * testsuite/Makefile.am (check_PROGRAMS): Add initpri1 if
289         CONSTRUCTOR_PRIORITY.
290         (initpri1_SOURCES, initpri1_DEPENDENCIES): New variables.
291         (initpri1_LDFLAGS): New variable.
292         * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
293
294 2008-03-27  Ian Lance Taylor  <iant@google.com>
295
296         * common.cc (Sort_commons::operator): Correct sorting algorithm.
297         * testsuite/common_test_1.c: New file.
298         * testsuite/Makefile.am (check_PROGRAMS): Add common_test_1.
299         (common_test_1_SOURCES): New variable.
300         (common_test_1_DEPENDENCIES): New variable.
301         (common_test_1_LDFLAGS): New variable.
302
303         * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
304         and commons_ correctly when NAME/VERSION does not override
305         NAME/NULL.
306         * testsuite/ver_test_6.c: New file.
307         * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
308         (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
309         (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
310
311 2008-03-26  Ian Lance Taylor  <iant@google.com>
312
313         * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
314         of an undefined symbol from a version script.
315         * testsuite/Makefile.am (ver_test_5.so): New target.
316         (ver_test_5.o): New target.
317         (check_SCRIPTS): Add ver_test_5.sh.
318         (check_DATA): Add ver_test_5.syms.
319         (ver_test_5.syms): New target.
320         * testsuite/ver_test_5.cc: New file.
321         * testsuite/ver_test_5.script: New file.
322         * testsuite/ver_test_5.sh: New file.
323         * Makefile.in, testsuite/Makefile.in: Rebuild.
324
325         PR gold/5986
326         Fix problems building gold with gcc 4.3.0.
327         * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
328         (gold_error_at_location, gold_warning_at_location): Use it.
329         * configure.ac: Check whether we can compile and use a template
330         function with a printf attribute.
331         * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
332         when jumping over bytes.
333         * object.cc: Instantiate Object::read_section_data.
334         * debug.h: Include <cstring>
335         * dwarf_reader.cc: Include <algorithm>
336         * main.cc: Include <cstring>.
337         * options.cc: Include <cstring>.
338         * output.cc: Include <cstring>.
339         * script.cc: Include <cstring>.
340         * script.h: Include <string>.
341         * symtab.cc: Include <cstring> and <algorithm>.
342         * target-select.cc: Include <cstring>.
343         * version.cc: Include <string>.
344         * testsuite/testmain.cc: Include <cstdlib>.
345         * configure, config.in: Rebuild.
346
347 2008-03-25  Ian Lance Taylor  <iant@google.com>
348
349         * options.cc: Include "../bfd/bfdver.h".
350         (options::help): Print bug reporting address.
351
352         * version.cc (print_version): Adjust output for current value of
353         BFD_VERSION_STRING.
354
355         * NEWS: New file.
356
357         * options.cc (options::help): Print list of supported targets.
358         * target-select.h: Include <vector>.
359         (class Target_selector): Make machine_, size_, and is_big_endian_
360         fields const.  Add bfd_name_ and instantiated_target_ fields.
361         (Target_selector::Target_selector): Add bfd_name parameter.
362         (Target_selector::recognize): Make non-virtual, call
363         do_recognize.
364         (Target_selector::recognize_by_name): Make non-virtual, call
365         do_recognize_by_name.
366         (Target_selector::supported_names): New function.
367         (Target_selector::bfd_name): New function.
368         (Target_selector::do_instantiate_target): New pure virtual
369         function.
370         (Target_selector::do_recognize): New virtual function.
371         (Target_selector::do_recognize_by_name): New virtual function.
372         (Target_selector::instantiate_target): New private function.
373         (supported_target_names): Declare.
374         * target-select.cc (Target_selector::Target_selector): Update for
375         new parameter and fields.
376         (select_target_by_name): Check that the name matches before
377         calling recognize_by_name.
378         (supported_target_names): New function.
379         * i386.cc (class Target_selector_i386): Update Target_selector
380         constructor call.  Remove recognize and recognize_by_name.  Add
381         do_instantiate_target.
382         * x86_64.cc (class Target_selector_x86_64): Likewise.
383         * testsuite/testfile.cc (class Target_selector_test): Update for
384         changes to Target_selector.
385
386         * README: Rewrite, with some notes on unsupported features.
387
388 2008-03-24  Cary Coutant  <ccoutant@google.com>
389
390         * i386.cc (Target_i386::Got_type): New enum declaration.
391         (Target_i386::Scan::local): Updated callers of Output_data_got
392         member functions.
393         (Target_i386::Scan::global): Likewise.
394         (Target_i386::Relocate::relocate): Likewise.
395         (Target_i386::Relocate::relocate_tls): Likewise.
396         * object.h (Got_offset_list): New class.
397         (Sized_relobj::local_has_got_offset): Added got_type parameter.
398         (Sized_relobj::local_got_offset): Likewise.
399         (Sized_relobj::set_local_got_offset): Likewise.
400         (Sized_relobj::local_has_tls_got_offset): Removed.
401         (Sized_relobj::local_tls_got_offset): Removed.
402         (Sized_relobj::set_local_tls_got_offset): Removed.
403         (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
404         * output.cc (Output_data_got::add_global): Added got_type parameter.
405         (Output_data_got::add_global_with_rel): Likewise.
406         (Output_data_got::add_global_with_rela): Likewise.
407         (Output_data_got::add_global_pair_with_rel): New function.
408         (Output_data_got::add_global_pair_with_rela): New function.
409         (Output_data_got::add_local): Added got_type parameter.
410         (Output_data_got::add_local_with_rel): Likewise.
411         (Output_data_got::add_local_with_rela): Likewise.
412         (Output_data_got::add_local_pair_with_rel): New function.
413         (Output_data_got::add_local_pair_with_rela): New function.
414         (Output_data_got::add_global_tls): Removed.
415         (Output_data_got::add_global_tls_with_rel): Removed.
416         (Output_data_got::add_global_tls_with_rela): Removed.
417         (Output_data_got::add_local_tls): Removed.
418         (Output_data_got::add_local_tls_with_rel): Removed.
419         (Output_data_got::add_local_tls_with_rela): Removed.
420         * output.h (Output_data_got::add_global): Added got_type parameter.
421         (Output_data_got::add_global_with_rel): Likewise.
422         (Output_data_got::add_global_with_rela): Likewise.
423         (Output_data_got::add_global_pair_with_rel): New function.
424         (Output_data_got::add_global_pair_with_rela): New function.
425         (Output_data_got::add_local): Added got_type parameter.
426         (Output_data_got::add_local_with_rel): Likewise.
427         (Output_data_got::add_local_with_rela): Likewise.
428         (Output_data_got::add_local_pair_with_rel): New function.
429         (Output_data_got::add_local_pair_with_rela): New function.
430         (Output_data_got::add_global_tls): Removed.
431         (Output_data_got::add_global_tls_with_rel): Removed.
432         (Output_data_got::add_global_tls_with_rela): Removed.
433         (Output_data_got::add_local_tls): Removed.
434         (Output_data_got::add_local_tls_with_rel): Removed.
435         (Output_data_got::add_local_tls_with_rela): Removed.
436         * resolve.cc (Symbol::override_base_with_special): Removed
437         reference to has_got_offset_ field.
438         * symtab.cc (Symbol::init_fields): Replaced initialization
439         of got_offset_ with got_offsets_.  Removed initialization
440         of has_got_offset_
441         * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
442         (Symbol::got_offset): Likewise.
443         (Symbol::set_got_offset): Likewise.
444         (Symbol::has_tls_got_offset): Removed.
445         (Symbol::tls_got_offset): Removed.
446         (Symbol::set_tls_got_offset): Removed.
447         (Symbol::got_offset_): Removed.
448         (Symbol::tls_mod_got_offset_): Removed.
449         (Symbol::tls_pair_got_offset_): Removed.
450         (Symbol::got_offsets_): New field.
451         (Symbol::has_got_offset): Removed.
452         (Symbol::has_tls_mod_got_offset): Removed.
453         (Symbol::has_tls_pair_got_offset): Removed.
454         * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
455         (Target_x86_64::Scan::local): Updated callers of Output_data_got
456         member functions.
457         (Target_x86_64::Scan::global): Likewise.
458         (Target_x86_64::Relocate::relocate): Likewise.
459         (Target_x86_64::Relocate::relocate_tls): Likewise.
460
461 2008-03-25  Ben Elliston  <bje@au.ibm.com>
462
463         * yyscript.y: Fix spelling error in comment.
464
465 2008-03-24  Ian Lance Taylor  <iant@google.com>
466
467         * options.h (class General_options): Define build_id option.
468         * layout.h (class Layout): Declare write_build_id, create_note,
469         create_build_id.  Add build_id_note_ member.
470         * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
471         "libiberty.h", "md5.h", "sha1.h".
472         (Layout::Layout): Initialize eh_frame_data_,
473         eh_frame_hdr_section_, and build_id_note_.
474         (Layout::finalize): Call create_build_id.
475         (Layout::create_note): New function, broken out of
476         Layout::create_gold_note.
477         (Layout::create_gold_note): Call create_note.
478         (Layout::create_build_id): New function.
479         (Layout::write_build_id): New function.
480         (Close_task_runner::run): Call write_build_id.
481
482         * x86_64.cc: Correct license to GPLv3.
483
484 2008-03-23  Ian Lance Taylor  <iant@google.com>
485
486         * options.cc: Include "demangle.h".
487         (parse_optional_string): New function.
488         (parse_long_option): Handle takes_optional_argument.
489         (parse_short_option): Update dash_z initializer.  Handle
490         takes_optional_argument.
491         (General_options::General_options): Initialize do_demangle_.
492         (General_options::finalize): Set do_demangle_.  Handle demangling
493         style.
494         * options.h (parse_optional_string): Declare.
495         (struct One_option): Add optional_arg field.  Update constructor.
496         Update call constructor calls.  Add takes_optional_argument
497         function.
498         (DEFINE_var): Add optional_arg__ parameter.  Change all callers.
499         (DEFINE_optional_string): Define.
500         (General_options::demangle): Change from DEFINE_bool to
501         DEFINE_optional_string.
502         (General_options::no_demangle): New function.
503         (General_options::do_demangle): New function.
504         (General_options::set_do_demangle): New function.
505         (General_options::execstack_status_): Move definition to end of
506         class definition.
507         (General_options::static_): Likewise.
508         (General_options::do_demangle_): New field.
509         * object.cc (big_endian>::get_symbol_location_info): Call
510         Options::do_demangle, not Options::demangle.
511         * symtab.cc (demangle): Likewise.
512
513 2008-03-22  Ian Lance Taylor  <iant@google.com>
514
515         * gold.h: Include <cstddef> and <sys/types.h>
516         * options.h: Include <cstring>.
517
518 2008-03-21  Ian Lance Taylor  <iant@google.com>
519
520         * Added source code to GNU binutils.
521