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