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