gdb
[binutils-gdb.git] / bfd / ChangeLog
1 2013-03-14 Tom Tromey <tromey@redhat.com>
2
3 * opncls.c (bfd_get_debug_link_info): Rename from
4 get_debug_link_info. Export. Update comment.
5 (find_separate_debug_file): Update.
6 * bfd-in2.h: Rebuild.
7
8 2013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
9
10 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
11 support.
12 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
13 relocs.
14
15 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
16
17 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
18 * elf.c (elfcore_write_s390_tdb): New function.
19 (elfcore_write_register_note): Call it.
20 (elfcore_grok_s390_tdb): New function.
21 (elfcore_grok_note): Call it.
22
23 2013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
24
25 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
26
27 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
28
29 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
30
31 2013-03-04 Alan Modra <amodra@gmail.com>
32
33 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
34 non-zero addends when relocatable, rather than addends >= 32768.
35 Always zero "addend" before applying relocation.
36
37 2013-03-04 Nick Clifton <nickc@redhat.com>
38
39 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
40 file pointer offsets for thin archives.
41
42 2013-02-28 Nathan Sidwell <nathan@codesourcery.com>
43
44 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
45 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
46
47 2013-02-27 DJ Delorie <dj@redhat.com>
48
49 * reloc.c (BFD_RELOC_RL78_CODE): Add.
50 * libbfd.h: Regenerate.
51 * bfd-in2.h: Regenerate.
52 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
53 references in compuated relocs.
54
55 2013-02-26 Anthony Green <green@moxielogic.com>
56
57 * config.bfd: Extend moxie-rtems target triplet name support.
58
59 2013-02-21 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR ld/15167
62 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
63 unique_global only for definition.
64 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
65 here.
66 (elf_link_add_object_symbols): Set unique_global only
67 for definition.
68
69 2013-02-21 Alan Modra <amodra@gmail.com>
70
71 * elf-bfd.h (struct elf_build_id): Extracted from..
72 (struct elf_build_id_info): ..here. Delete.
73 (struct output_elf_obj_tdata): New, extracted from..
74 (struct elf_obj_tdata): ..here. Reorganize for better packing.
75 Add "o" field.
76 (elf_program_header_size): Reference tdata->o.
77 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
78 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
79 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
80 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
81 when opening bfd in any mode that might write.
82 (_bfd_elf_write_object_contents): Use build_id field in
83 output_elf_obj_tdata.
84 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
85 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
86
87 2013-02-21 Alan Modra <amodra@gmail.com>
88
89 * elf-bfd.h (struct core_elf_obj_tdata): New.
90 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
91 core_program, and core_command. Add "core".
92 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
93 Update all refs to tdata core fields.
94 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
95 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
96 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
97 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
98 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
99 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
100 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
101 to tdata core fields.
102
103 2013-02-21 Alan Modra <amodra@gmail.com>
104
105 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
106 Delete num_locals and num_globals.
107 (elf_num_locals, elf_num_globals): Don't define.
108 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
109 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
110 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
111 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
112 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
113 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
114 accessor macros.
115 * elf.c (elf_map_symbols): Add pnum_locals param. Return
116 number of locals syms via new param.
117 (swap_out_syms): Adjust to suit elf_map_symbols change.
118
119 2013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
120
121 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
122 STO_MICROMIPS annotation.
123
124 2013-02-19 Alan Modra <amodra@gmail.com>
125
126 * configure.in: Bump version to 2.23.52.
127 * elf-bfd.h (struct elf_build_id_info): New.
128 (struct elf_obj_tdata): Delete after_write_object_contents,
129 after_write_object_contents_info and build_id_size. Make build_id
130 a pointer to struct elf_build_id_info.
131 * elf.c (_bfd_elf_write_object_contents): Style. Update
132 after_write_ibject_contents invocation.
133 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
134 allow zero size notes.
135 * configure: Regenerate.
136
137 2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
138
139 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
140 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
141 (micromips_elf64_howto_table_rela): Likewise.
142 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
143 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
144 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
145 (elf_micromips_howto_table_rela): Likewise.
146 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
147
148 2013-02-18 Paul Brook <paul@codesourcery.com>
149
150 * elfxx-mips.c (MICROMIPS_P): New macro.
151 (_bfd_mips_elf_symbol_processing): Use it.
152
153 2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
154
155 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
156 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
157
158 2013-02-18 Alan Modra <amodra@gmail.com>
159
160 PR ld/12549
161 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
162 (_bfd_elf_strtab_clear_all_refs): Declare.
163 (_bfd_elf_strtab_resize): Declare.
164 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
165 (_bfd_elf_strtab_clear_all_refs): New function.
166 (_bfd_elf_strtab_resize): Likewise.
167 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
168
169 2013-02-18 Alan Modra <amodra@gmail.com>
170
171 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
172 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
173 and elf_text_section to..
174 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
175 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
176 (struct alpha_elf_find_line): ..this.
177 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
178
179 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
180
181 PR ld/15146
182 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
183 for references from the dummy bfd.
184
185 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
186
187 PR ld/15149
188 * elflink.c (elf_link_add_object_symbols): Also track weak
189 references.
190
191 2013-02-15 H.J. Lu <hongjiu.lu@intel.com>
192
193 PR binutils/15151
194 * archive.c (_bfd_find_nested_archive): Don't allow a nested
195 archive pointing to itself.
196 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
197
198 2013-02-15 Nick Clifton <nickc@redhat.com>
199
200 PR binutils/15140
201 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
202 accessing a corrupt nested archive.
203
204 2013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
205
206 * elfxx-mips.c (mips_got_page_ref): New structure.
207 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
208 pair to represent the anchor point.
209 (mips_got_info): Add a got_page_refs field.
210 (mips_elf_link_hash_table): Add a sym_cache field.
211 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
212 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
213 new anchor representation.
214 (mips_elf_create_got_info): Create got_page_refs rather than
215 got_page_entries.
216 (mips_elf_record_got_page_ref): New function.
217 (mips_elf_pages_for_range): Move further down file.
218 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
219 Use a section rather than a (bfd, symndx) pair to represent the
220 anchor point.
221 (mips_elf_resolve_got_page_ref): New function.
222 (mips_elf_resolve_final_got_entries): Use it to populate
223 got_page_entries.
224 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
225 rather than mips_elf_record_got_page_entry. Only nullify h
226 afterwards.
227 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
228 earlier.
229
230 2013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
231
232 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
233 in g->relocs.
234
235 2013-02-12 Alan Modra <amodra@gmail.com>
236
237 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
238 suitable definition when using generic linker hash table.
239
240 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
241
242 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
243 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
244 mips_elf_traverse_got_arg. Count GOT entries.
245 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
246 as argument. Update after above changes.
247 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
248 mips_elf_count_got_entries. Update the calls to
249 mips_elf_resolve_final_got_entries.
250
251 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
252
253 * elfxx-mips.c (mips_got_tls_type): New enum.
254 (mips_got_entry): Add tls_initialized.
255 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
256 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
257 GOT_TLS_TYPE masks.
258 (mips_elf_reloc_tls_type, mips_tls_got_entries)
259 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
260 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
261 than GOT_NORMAL.
262 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
263 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
264 tls_initialized rather than GOT_TLS_DONE.
265 (mips_tls_got_index): Delete.
266 (mips_elf_local_got_index, mips_elf_global_got_index): Use
267 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
268 (mips_elf_record_got_entry): Initialize tls_initialized.
269
270 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
271
272 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
273 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
274 tls_ie_got_offset and tls_gd_got_offset.
275 (mips_elf_link_hash_newfunc): Remove initialization.
276 (mips_elf_create_got_info): Likewise.
277 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
278 (mips_tls_single_got_index): Delete.
279 (mips_elf_local_got_index): Always use the GOT entry to track
280 GOT indices.
281 (mips_elf_global_got_index): Likewise.
282 (mips_elf_create_local_got_entry): Assert that TLS entries have
283 already been allocated.
284 (mips_elf_record_global_got_symbol): Don't initialize
285 tls_ie_type or tls_gd_type.
286 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
287 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
288 entry.
289 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
290 the GOT entries.
291 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
292 have been allocated.
293 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
294 tls_ie_type and tls_gd_type.
295
296 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
297
298 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
299 aliasing violation. Check for htab allocation failures.
300
301 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
302
303 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
304 split out from...
305 (mips_elf_global_got_index): ...here. Reorder arguments so that
306 the output bfd and info come first.
307 (mips_elf_calculate_relocation): Update the call to
308 mips_elf_global_got_index accordingly.
309 (_bfd_mips_elf_finish_dynamic_symbol): Use
310 mips_elf_primary_global_got_index rather than
311 mips_elf_global_got_index.
312 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
313
314 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
315
316 * elfxx-mips.c (mips_got_entry): Update comments.
317 (mips_elf_multi_got_entry_eq): Rename to...
318 (mips_elf_got_entry_eq): ...this, deleting the old definition.
319 (mips_elf_create_got_info): Remove master_got_p argument.
320 Always use mips_elf_got_entry_eq.
321 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
322 Update calls accordingly.
323
324 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
325
326 * elfxx-mips.c (mips_got_info): Remove bfd2got.
327 (mips_elf_bfd2got_hash): Delete.
328 (mips_elf_got_per_bfd_arg): Remove bfd2got.
329 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
330 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
331 g->next to test for the multigot case. Use mips_elf_bfd_got rather
332 than mips_elf_got_for_ibfd.
333 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
334 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
335 (mips_elf_make_got_per_bfd): Replace with...
336 (mips_elf_add_got_entry): ...this new function.
337 (mips_elf_make_got_pages_per_bfd): Replace with...
338 (mips_elf_add_got_page_entry): ...this new function.
339 (mips_elf_merge_got_with): Replace bfd2got argument with separate
340 bfd and GOT arguments. Use mips_elf_add_got_entry and
341 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
342 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
343 to set the BFD's GOT and free the old table.
344 (mips_elf_merge_got): Replace bfd2got argument with separate
345 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
346 Use mips_elf_count_got_entries to count the number of entries in
347 each GOT. Update the calls to mips_elf_merge_got_with.
348 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
349 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
350 (mips_elf_multi_got): Don't create the bfd2got hash table.
351 Replace hash table traversal with a walk over the input bfds,
352 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
353 to set the output bfd's GOT.
354 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
355 bfds use the master GOT in the single-GOT case.
356 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
357 rather than mips_elf_got_for_ibfd.
358
359 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
360
361 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
362 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
363 (mips_elf_record_global_got_symbol): Update the hash entry before
364 adding the mips_got_entry. Use mips_elf_record_got_entry to do
365 the latter.
366 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
367 (mips_elf_record_got_page_entry): Record the entry in both the
368 master and bfd GOTs.
369
370 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
371
372 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
373 create another one if necessary.
374 (mips_elf_set_gotidx): New function.
375 (mips_elf_set_global_gotidx): Use it.
376 (mips_elf_initialize_tls_index): Likewise. Take a
377 mips_elf_traverse_got_arg as argument.
378 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
379 (mips_elf_multi_got): Likewise. Cope with error returns from
380 mips_elf_set_global_gotidx.
381
382 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
383
384 * elfxx-mips.c (mips_got_info): Add relocs field.
385 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
386 with...
387 (mips_elf_traverse_got_arg): ...this new structure.
388 (mips_elf_count_local_tls_relocs): Delete.
389 (mips_elf_count_global_tls_relocs): Likewise.
390 (mips_elf_count_got_entry): New function.
391 (mips_elf_count_local_got_entries): Likewise.
392 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
393 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
394 (mips_elf_record_local_got_symbol): Don't count got entries here.
395 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
396 (mips_elf_set_global_got_offset): Split into...
397 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
398 new functions. Take a mips_elf_traverse_got_arg rather than a
399 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
400 Use g->relocs to record the number of relocs needed for global GOT
401 entries.
402 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
403 mips_elf_set_global_got_offset_arg. Use the relocs field to count
404 relocations. Update for above function split.
405 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
406 to count both the number of GOT entries and the number of TLS
407 relocs required by local entries. Likewise
408 mips_elf_count_global_tls_entries and global entries.
409 Remove uses of mips_elf_count_local_tls_relocs and
410 mips_elf_count_global_tls_relocs.
411
412 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
413
414 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
415 to say that each structure represents only one type of TLS reference.
416 (GOT_TLS_TYPE): New define.
417 (mips_elf_link_hash_entry): Temporarily split tls_type and
418 tls_got_offset into two variables each.
419 (mips_elf_link_hash_newfunc): Update accordingly.
420 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
421 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
422 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
423 (mips_tls_got_relocs): Use a switch statement.
424 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
425 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
426 local "offset" variable.
427 (mips_tls_got_index): Remove r_type argument and assert. Remove
428 code that handled entries with two TLS types; always use the
429 original got_index instead.
430 (mips_tls_single_got_index): New function.
431 (mips_elf_local_got_index): Use entry->tls_type to check for
432 TLS entries. Use mips_tls_single_got_index. Update call to
433 mips_tls_got_index.
434 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
435 Use p->tls_type to check for TLS entries. Update call to
436 mips_tls_got_index. Use mips_tls_single_got_index.
437 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
438 Use entry.tls_type to check for TLS entries.
439 (mips_elf_record_global_got_symbol): Replace tls_flag argument
440 with r_type argument. Use mips_elf_reloc_tls_type.
441 Set up the new hash entry fields.
442 (mips_elf_record_local_got_symbol): Replace tls_flag argument
443 with r_type argument. Use mips_elf_reloc_tls_type and
444 mips_tls_got_entries. Remove code that handled entries
445 with multiple TLS types.
446 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
447 (mips_elf_initialize_tls_index): Handle new hash entry fields.
448 Use equality rather than masks when checking for specific TLS types.
449 Use mips_tls_got_entries. Remove code that handled entries
450 with multiple TLS types.
451 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
452 testing the hash table entry.
453 (_bfd_mips_elf_check_relocs): Update calls to
454 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
455 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
456 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
457
458 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
459
460 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
461 (mips_elf_got_entry_hash): ...this, deleting the old version.
462 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
463 both types of GOT.
464
465 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
466
467 * elfxx-mips.c (mips_elf_create_got_info): New function.
468 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
469 (mips_elf_create_got_section): Likewise.
470
471 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
472
473 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
474 gotidx to -1.
475
476 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
477
478 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
479
480 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
481
482 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
483 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
484
485 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
486
487 * elfxx-mips.c (mips_elf_count_global_tls_entries)
488 (mips_elf_count_global_tls_relocs): Don't count indirect or
489 warning symbols.
490 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
491 number of TLS entries were allocated.
492
493 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
494
495 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
496
497 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
498
499 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
500 if there are TLS relocations.
501
502 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
503
504 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
505 (mips_elf_resolve_final_got_entries): Remove bogus comment.
506
507 2013-02-11 Alan Modra <amodra@gmail.com>
508
509 * elfcode.h (elf_checksum_contents): Free contents.
510 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
511 * elflink.c (_bfd_elf_link_hash_table_free): New function.
512 (elf_final_link_free): New function, extracted from..
513 (bfd_elf_final_link): ..here. Always call
514 _bfd_elf_write_section_eh_frame_hdr.
515 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
516 _bfd_elf_link_hash_table_free.
517 * libbfd-in.h (_bfd_merge_sections_free): Declare.
518 * libbfd.h: Regenerate.
519 * merge.c (_bfd_merge_sections_free): New function.
520 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
521 hdr_info->array.
522 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
523 _bfd_elf_link_hash_table_free.
524 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
525 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
526 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
527 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
528 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
529 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
530 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
531 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
532 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
533 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
534 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
535 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
536 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
537 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
538 (bfd_elf32_bfd_link_hash_table_free): Don't define.
539 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
540 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
541
542 2013-02-10 Alan Modra <amodra@gmail.com>
543
544 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
545 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
546 * m68klinux.c (linux_link_hash_table_create): Likewise.
547 * sparclinux.c (linux_link_hash_table_create): Likewise.
548 * sunos.c (sunos_link_hash_table_create): Likewise.
549 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
550 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
551 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
552 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
553 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
554 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
555 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
556 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
557 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
558 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
559 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
560 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
561 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
562 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
563 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
564 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
565 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
566 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
567 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
568 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
569 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
570 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
571 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
572 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
573 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
574 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
575 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
576 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
577
578 2013-02-10 Alan Modra <amodra@gmail.com>
579
580 * i386linux.c (linux_link_hash_table_create): Allocate table
581 with bfd_zmalloc, not bfd_alloc.
582 * pdp11.c (link_hash_table_create): Allocate table with
583 bfd_malloc, not bfd_alloc.
584 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
585 with bfd_zmalloc, not bfd_zalloc.
586 (bfin_link_hash_table_create): Likewise.
587 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
588 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
589
590 2013-02-10 Alan Modra <amodra@gmail.com>
591
592 PR ld/15113
593 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
594
595 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
596
597 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
598 sections.
599 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
600 symbol.
601
602 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
603
604 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
605 288 to 272.
606
607 2013-02-08 Alan Modra <amodra@gmail.com>
608
609 PR binutils/15106
610 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
611 * elf.c (elf_find_function): Revert last change. Use new
612 tdata field rather than static vars for cache.
613
614 2013-02-07 H.J. Lu <hongjiu.lu@intel.com>
615
616 PR ld/15107
617 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
618 symbol is defined in regular object.
619
620 2013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
621
622 PR binutils/15106
623 * elf.c (elf_find_function): Don't cache if symbols change.
624
625 2013-02-07 Alan Modra <amodra@gmail.com>
626
627 PR binutils/14873
628 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
629 copy attributes from or to non-ELF.
630
631 2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
632
633 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
634 for non-zero TLS symbol.
635 (elf_i386_relocate_section): Don't resolve size relocation against
636 non-zero TLS symbol.
637 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
638 pc_count for non-zero TLS symbol.
639 (elf_x86_64_relocate_section): Don't resolve size relocation
640 against non-zero TLS symbol.
641
642 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
643 Andrew Jenner <andrew@codesourcery.com>
644
645 Based on patches from Altera Corporation.
646
647 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
648 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
649 (BFD_BACKENDS): Add elf32-nios2.lo.
650 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
651 * Makefile.in: Regenerated.
652 * configure.in: Add entries for bfd_elf32_bignios2_vec and
653 bfd_elf32_littlenios2_vec.
654 * configure: Regenerated.
655 * config.bfd: Add cases for nios2.
656 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
657 (bfd_mach_nios2): Define.
658 (bfd_nios2_arch): Declare.
659 (bfd_archures_list): Add bfd_nios2_arch.
660 * targets.c (bfd_elf32_bignios2_vec): Declare.
661 (bfd_elf32_littlenios2_vec): Declare.
662 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
663 bfd_elf32_littlenios2_vec.
664 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
665 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
666 * bfd-in2.h: Regenerated.
667 * libbfd.h: Regenerated.
668 * cpu-nios2.c: New file.
669 * elf32-nios2.c: New file.
670
671 2013-02-06 Alan Modra <amodra@gmail.com>
672
673 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
674 stubs in stub_bfd.
675
676 2013-02-06 Alan Modra <amodra@gmail.com>
677
678 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
679 * Makefile.in: Regenerate.
680
681 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
682 Pedro Alves <palves@redhat.com>
683
684 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
685 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
686 declaration.
687 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
688 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
689 * elf-linux-psinfo.h: New file.
690 * elf.c: Include elf-linux-psinfo.h.
691 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
692 New functions.
693 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
694 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
695 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
696 (elfcore_write_ppc_linux_prpsinfo32): New function.
697
698 2013-02-04 Tristan Gingold <gingold@adacore.com>
699
700 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
701 start address.
702
703 2013-02-04 Alan Modra <amodra@gmail.com>
704
705 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
706 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
707 * Makefile.in: Regenerate.
708 * po/SRC-POTFILES.in: Regenerate.
709
710 2013-02-04 Alan Modra <amodra@gmail.com>
711
712 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
713 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
714
715 2013-02-01 Alan Modra <amodra@gmail.com>
716
717 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
718 clears def_regular.
719
720 2013-01-31 Tristan Gingold <gingold@adacore.com>
721
722 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
723 earlier. Fix status checking of bfd_mach_o_scan_start_address.
724 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
725
726 2013-01-31 Alan Modra <amodra@gmail.com>
727 David S. Miller <davem@davemloft.net>
728
729 PR ld/15056
730 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
731 references to __tls_get_addr.
732 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
733 vtinherit and vtentry reloc handling too.
734 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
735
736 2013-01-31 Alan Modra <amodra@gmail.com>
737
738 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
739
740 2013-01-31 Alan Modra <amodra@gmail.com>
741
742 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
743
744 2013-01-28 Alan Modra <amodra@gmail.com>
745
746 * elf64-ppc.c: Use %T to print symbols names and remove redundant
747 "relocation" in error messages throughout file.
748 (ppc64_elf_relocate_section): Remove sibling call error message,
749 replace with "call lacks nop". Specially report errors for
750 branches to function entry points via OPD lookup and branches
751 to stubs. Remove NULL symbol handling now done by %T.
752
753 2013-01-28 Alan Modra <amodra@gmail.com>
754
755 * archive.c (bfd_generic_archive_p): Return target and keep
756 ardata on partial matches.
757 * format.c (bfd_check_format_matches): Adjust for above
758 change. Remove bfd_error_file_ambiguously_recognized dead
759 code.
760
761 2013-01-26 Alan Modra <amodra@gmail.com>
762
763 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
764 bfd_preserve_finish): Move to..
765 * format.c: ..here, splitting out..
766 (bfd_reinit): ..this. New function.
767 (bfd_check_format_matches): Use bfd_preserve_save/restore to
768 keep bfd state for a match.
769 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
770 * elfcore.h (elf_core_file_p): Likewise.
771 * mach-o.c (bfd_mach_o_header_p): Likewise.
772 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
773 * xsym.c (bfd_sym_object_p): Likewise.
774 * mmo.c (mmo_scan): Clear abfd->symcount.
775 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
776 * section.c (bfd_section_list_clear): Clear section_htab.count.
777 * bfd-in2.h: Regenerate.
778
779 2013-01-25 Michael Schewe <michael.schewe@gmx.net>
780
781 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
782 second reloc, make sure that the reloc potentially exists first.
783
784 2013-01-24 Nick Clifton <nickc@redhat.com>
785
786 * archures.c: Add bfd_mach_v850e3v5.
787 * bfd-in2.h: Regenerate.
788 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
789 * cpu-v850_rh850.c: Likewise.
790 * elf32-v850.c: Add support for v850e3v5 architecture.
791
792 2013-01-23 Markos Chandras <markos.chandras@imgtec.com>
793
794 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
795
796 2013-01-23 Leif Ekblad <leif@rdos.net>
797
798 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
799
800 2013-01-18 H.J. Lu <hongjiu.lu@intel.com>
801
802 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
803 non-zero TLS symbol.
804 (elf_i386_relocate_section): Resolve size relocation against
805 non-zero TLS symbol.
806 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
807 for non-zero TLS symbol.
808 (elf_x86_64_relocate_section): Resolve size relocation against
809 non-zero TLS symbol.
810
811 2013-01-18 Mike Frysinger <vapier@gentoo.org>
812
813 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
814 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
815 true.
816
817 2013-01-17 H.J. Lu <hongjiu.lu@intel.com>
818
819 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
820 PC-relative relocation.
821 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
822 as PC-relative relocation.
823
824 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
825
826 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
827 check.
828 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
829
830 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
831 and R_X86_64_SIZE64 check.
832 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
833 nor R_X86_64_SIZE64.
834
835 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
836
837 * bfd-in2.h: Regenerated.
838 * libbfd.h: Likewise.
839
840 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
841 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
842 (elf_i386_check_relocs): Handle R_386_SIZE32.
843 (elf_i386_gc_sweep_hook): Likewise.
844 (elf_i386_relocate_section): Likewise.
845
846 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
847 and R_X86_64_SIZE64 entries.
848 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
849 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
850 (elf_x86_64_reloc_name_lookup): Likewise.
851 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
852 R_X86_64_SIZE64.
853 (elf_x86_64_gc_sweep_hook): Likewise.
854 (elf_x86_64_relocate_section): Likewise.
855
856 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
857 BFD_RELOC_SIZE64.
858
859 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
860
861 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
862 with R_X86_64_RELATIVE64.
863
864 2013-01-15 Nick Clifton <nickc@redhat.com>
865
866 * elf32-msp430.c: Fix spelling typo.
867
868 2013-01-15 Alan Modra <amodra@gmail.com>
869
870 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
871 plt-thread-safe.
872
873 2013-01-14 Alan Modra <amodra@gmail.com>
874
875 PR binutils/14813
876 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
877 (memory_bclose): Likewise. Return 0 on success.
878 * cache.c (cache_bclose): Likewise.
879 * opncls.c (opncls_bclose, bfd_close): Likewise.
880 * vms-lib.c (vms_lib_bclose): Likewise.
881 * libbfd.h: Regenerate.
882
883 2013-01-13 Alan Modra <amodra@gmail.com>
884
885 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
886 Add ref_dynamic_nonweak.
887 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
888 (_bfd_elf_merge_symbol): Don't call above function. Move
889 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
890 clear dynamic_def.
891 (elf_link_add_object_symbols): Delete redundant "override" test.
892 Don't set dynamic_def here.
893 (elf_link_output_extsym): Update.
894
895 2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
896
897 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
898 normal and TLS symbol access.
899 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
900
901 2013-01-12 Alan Modra <amodra@gmail.com>
902
903 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
904 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
905 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
906
907 2013-01-12 Alan Modra <amodra@gmail.com>
908
909 PR ld/12549
910 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
911 (_bfd_elf_strtab_clear_all_refs): Define.
912 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
913 (_bfd_elf_strtab_clear_all_refs): Delete.
914 * elflink.c (elf_link_add_object_symbols): Clear out added
915 strtab refs. Correct handling of warning common symbols.
916
917 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
918
919 * aout0.c: Remove trailing white spaces.
920 * archive.c: Likewise.
921 * archures.c: Likewise.
922 * bfd-in.h: Likewise.
923 * bfd-in2.h: Likewise.
924 * coff-alpha.c: Likewise.
925 * coff-i860.c: Likewise.
926 * coff-mips.c: Likewise.
927 * coff-ppc.c: Likewise.
928 * coff-tic80.c: Likewise.
929 * coff-x86_64.c: Likewise.
930 * coff-z80.c: Likewise.
931 * coffcode.h: Likewise.
932 * coffgen.c: Likewise.
933 * cofflink.c: Likewise.
934 * compress.c: Likewise.
935 * corefile.c: Likewise.
936 * cpu-arm.c: Likewise.
937 * cpu-avr.c: Likewise.
938 * cpu-bfin.c: Likewise.
939 * cpu-cr16.c: Likewise.
940 * cpu-cr16c.c: Likewise.
941 * cpu-crx.c: Likewise.
942 * cpu-h8300.c: Likewise.
943 * cpu-i386.c: Likewise.
944 * cpu-lm32.c: Likewise.
945 * cpu-m68k.c: Likewise.
946 * cpu-moxie.c: Likewise.
947 * cpu-msp430.c: Likewise.
948 * cpu-sh.c: Likewise.
949 * cpu-xc16x.c: Likewise.
950 * dwarf2.c: Likewise.
951 * ecofflink.c: Likewise.
952 * ecoffswap.h: Likewise.
953 * elf-ifunc.c: Likewise.
954 * elf-m10300.c: Likewise.
955 * elf-vxworks.c: Likewise.
956 * elf32-avr.c: Likewise.
957 * elf32-avr.h: Likewise.
958 * elf32-cr16.c: Likewise.
959 * elf32-cr16c.c: Likewise.
960 * elf32-cris.c: Likewise.
961 * elf32-crx.c: Likewise.
962 * elf32-frv.c: Likewise.
963 * elf32-hppa.c: Likewise.
964 * elf32-i860.c: Likewise.
965 * elf32-ip2k.c: Likewise.
966 * elf32-iq2000.c: Likewise.
967 * elf32-m32c.c: Likewise.
968 * elf32-m68hc1x.c: Likewise.
969 * elf32-msp430.c: Likewise.
970 * elf32-mt.c: Likewise.
971 * elf32-ppc.c: Likewise.
972 * elf32-rl78.c: Likewise.
973 * elf32-s390.c: Likewise.
974 * elf32-score.h: Likewise.
975 * elf32-sh-symbian.c: Likewise.
976 * elf32-sh.c: Likewise.
977 * elf32-spu.c: Likewise.
978 * elf32-tic6x.c: Likewise.
979 * elf32-v850.c: Likewise.
980 * elf32-xc16x.c: Likewise.
981 * elf32-xtensa.c: Likewise.
982 * elf64-alpha.c: Likewise.
983 * elf64-hppa.c: Likewise.
984 * elf64-ppc.c: Likewise.
985 * elf64-s390.c: Likewise.
986 * elfcore.h: Likewise.
987 * elflink.c: Likewise.
988 * elfxx-mips.c: Likewise.
989 * elfxx-sparc.c: Likewise.
990 * elfxx-tilegx.c: Likewise.
991 * ieee.c: Likewise.
992 * libcoff.h: Likewise.
993 * libpei.h: Likewise.
994 * libxcoff.h: Likewise.
995 * linker.c: Likewise.
996 * mach-o-i386.c: Likewise.
997 * mach-o-target.c: Likewise.
998 * mach-o.c: Likewise.
999 * mach-o.h: Likewise.
1000 * mmo.c: Likewise.
1001 * opncls.c: Likewise.
1002 * pdp11.c: Likewise.
1003 * pe-x86_64.c: Likewise.
1004 * peXXigen.c: Likewise.
1005 * pef-traceback.h: Likewise.
1006 * pei-x86_64.c: Likewise.
1007 * peicode.h: Likewise.
1008 * plugin.c: Likewise.
1009 * reloc.c: Likewise.
1010 * riscix.c: Likewise.
1011 * section.c: Likewise.
1012 * som.c: Likewise.
1013 * syms.c: Likewise.
1014 * tekhex.c: Likewise.
1015 * ticoff.h: Likewise.
1016 * vaxbsd.c: Likewise.
1017 * xcofflink.c: Likewise.
1018 * xtensa-isa.c: Likewise.
1019
1020 2013-01-10 Will Newton <will.newton@imgtec.com>
1021
1022 * Makefile.am: Add Meta.
1023 * Makefile.in: Regenerate.
1024 * archures.c (bfd_mach_metag): New.
1025 * bfd-in2.h: Regenerate.
1026 * config.bfd: Add Meta.
1027 * configure: Regenerate.
1028 * configure.in: Add Meta.
1029 * cpu-metag.c: New file.
1030 * elf-bfd.h: Add Meta.
1031 * elf32-metag.c: New file.
1032 * elf32-metag.h: New file.
1033 * libbfd.h: Regenerate.
1034 * reloc.c: Add Meta relocations.
1035 * targets.c: Add Meta.
1036
1037 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
1038
1039 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
1040 (elfcore_write_aarch_hw_break): Likewise.
1041 (elfcore_write_aarch_hw_watch): Likewise.
1042 * elf.c (elfcore_grok_aarch_tls): New function.
1043 (elfcore_grok_aarch_hw_break): Likewise.
1044 (elfcore_grok_aarch_hw_watch): Likewise.
1045 (elfcore_grok_note): Call the new functions to handle the
1046 corresponding notes.
1047 (elfcore_write_aarch_tls): New function.
1048 (elfcore_write_aarch_hw_break): Likewise.
1049 (elfcore_write_aarch_hw_watch): Likewise.
1050 (elfcore_write_register_note): Call the new functions to handle the
1051 corresponding pseudo sections.
1052
1053 2013-01-07 Tom Tromey <tromey@redhat.com>
1054
1055 * section.c (_bfd_std_section): Rename from std_section.
1056 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
1057 (STD_SECTION): Update.
1058 * bfd-in2.h: Rebuild.
1059
1060 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
1061
1062 * archures.c (bfd_mach_mips5900): Define.
1063 * bfd-in2.h: Regenerate.
1064 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
1065 * cpu-mips.c: Add support for MIPS r5900.
1066 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
1067
1068 2013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
1069 Nick Clifton <nickc@redhat.com>
1070
1071 * elflink.c (get_value): Prevent the use of an undefined shift
1072 operation. Add sanity checks.
1073
1074 2013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1075
1076 * config.bfd (cr16*-*-uclinux*): New target support.
1077
1078
1079 For older changes see ChangeLog-2012
1080 \f
1081 Copyright (C) 2013 Free Software Foundation, Inc.
1082
1083 Copying and distribution of this file, with or without modification,
1084 are permitted in any medium without royalty provided the copyright
1085 notice and this notice are preserved.
1086
1087 Local Variables:
1088 mode: change-log
1089 left-margin: 8
1090 fill-column: 74
1091 version-control: never
1092 End: