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