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