1 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
3 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
4 create another one if necessary.
5 (mips_elf_set_gotidx): New function.
6 (mips_elf_set_global_gotidx): Use it.
7 (mips_elf_initialize_tls_index): Likewise. Take a
8 mips_elf_traverse_got_arg as argument.
9 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
10 (mips_elf_multi_got): Likewise. Cope with error returns from
11 mips_elf_set_global_gotidx.
13 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
15 * elfxx-mips.c (mips_got_info): Add relocs field.
16 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
18 (mips_elf_traverse_got_arg): ...this new structure.
19 (mips_elf_count_local_tls_relocs): Delete.
20 (mips_elf_count_global_tls_relocs): Likewise.
21 (mips_elf_count_got_entry): New function.
22 (mips_elf_count_local_got_entries): Likewise.
23 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
24 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
25 (mips_elf_record_local_got_symbol): Don't count got entries here.
26 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
27 (mips_elf_set_global_got_offset): Split into...
28 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
29 new functions. Take a mips_elf_traverse_got_arg rather than a
30 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
31 Use g->relocs to record the number of relocs needed for global GOT
33 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
34 mips_elf_set_global_got_offset_arg. Use the relocs field to count
35 relocations. Update for above function split.
36 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
37 to count both the number of GOT entries and the number of TLS
38 relocs required by local entries. Likewise
39 mips_elf_count_global_tls_entries and global entries.
40 Remove uses of mips_elf_count_local_tls_relocs and
41 mips_elf_count_global_tls_relocs.
43 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
45 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
46 to say that each structure represents only one type of TLS reference.
47 (GOT_TLS_TYPE): New define.
48 (mips_elf_link_hash_entry): Temporarily split tls_type and
49 tls_got_offset into two variables each.
50 (mips_elf_link_hash_newfunc): Update accordingly.
51 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
52 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
53 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
54 (mips_tls_got_relocs): Use a switch statement.
55 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
56 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
57 local "offset" variable.
58 (mips_tls_got_index): Remove r_type argument and assert. Remove
59 code that handled entries with two TLS types; always use the
60 original got_index instead.
61 (mips_tls_single_got_index): New function.
62 (mips_elf_local_got_index): Use entry->tls_type to check for
63 TLS entries. Use mips_tls_single_got_index. Update call to
65 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
66 Use p->tls_type to check for TLS entries. Update call to
67 mips_tls_got_index. Use mips_tls_single_got_index.
68 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
69 Use entry.tls_type to check for TLS entries.
70 (mips_elf_record_global_got_symbol): Replace tls_flag argument
71 with r_type argument. Use mips_elf_reloc_tls_type.
72 Set up the new hash entry fields.
73 (mips_elf_record_local_got_symbol): Replace tls_flag argument
74 with r_type argument. Use mips_elf_reloc_tls_type and
75 mips_tls_got_entries. Remove code that handled entries
76 with multiple TLS types.
77 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
78 (mips_elf_initialize_tls_index): Handle new hash entry fields.
79 Use equality rather than masks when checking for specific TLS types.
80 Use mips_tls_got_entries. Remove code that handled entries
81 with multiple TLS types.
82 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
83 testing the hash table entry.
84 (_bfd_mips_elf_check_relocs): Update calls to
85 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
86 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
87 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
89 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
91 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
92 (mips_elf_got_entry_hash): ...this, deleting the old version.
93 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
96 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
98 * elfxx-mips.c (mips_elf_create_got_info): New function.
99 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
100 (mips_elf_create_got_section): Likewise.
102 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
104 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
107 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
109 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
111 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
113 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
114 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
116 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
118 * elfxx-mips.c (mips_elf_count_global_tls_entries)
119 (mips_elf_count_global_tls_relocs): Don't count indirect or
121 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
122 number of TLS entries were allocated.
124 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
126 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
128 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
130 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
131 if there are TLS relocations.
133 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
135 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
136 (mips_elf_resolve_final_got_entries): Remove bogus comment.
138 2013-02-10 Alan Modra <amodra@gmail.com>
140 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
141 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
142 * m68klinux.c (linux_link_hash_table_create): Likewise.
143 * sparclinux.c (linux_link_hash_table_create): Likewise.
144 * sunos.c (sunos_link_hash_table_create): Likewise.
145 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
146 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
147 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
148 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
149 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
150 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
151 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
152 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
153 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
154 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
155 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
156 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
157 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
158 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
159 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
160 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
161 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
162 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
163 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
164 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
165 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
166 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
167 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
168 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
169 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
170 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
171 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
172 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
174 2013-02-10 Alan Modra <amodra@gmail.com>
176 * i386linux.c (linux_link_hash_table_create): Allocate table
177 with bfd_zmalloc, not bfd_alloc.
178 * pdp11.c (link_hash_table_create): Allocate table with
179 bfd_malloc, not bfd_alloc.
180 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
181 with bfd_zmalloc, not bfd_zalloc.
182 (bfin_link_hash_table_create): Likewise.
183 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
184 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
186 2013-02-10 Alan Modra <amodra@gmail.com>
189 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
191 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
193 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
195 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
198 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
200 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
203 2013-02-08 Alan Modra <amodra@gmail.com>
206 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
207 * elf.c (elf_find_function): Revert last change. Use new
208 tdata field rather than static vars for cache.
210 2013-02-07 H.J. Lu <hongjiu.lu@intel.com>
213 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
214 symbol is defined in regular object.
216 2013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
219 * elf.c (elf_find_function): Don't cache if symbols change.
221 2013-02-07 Alan Modra <amodra@gmail.com>
224 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
225 copy attributes from or to non-ELF.
227 2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
229 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
230 for non-zero TLS symbol.
231 (elf_i386_relocate_section): Don't resolve size relocation against
233 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
234 pc_count for non-zero TLS symbol.
235 (elf_x86_64_relocate_section): Don't resolve size relocation
236 against non-zero TLS symbol.
238 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
239 Andrew Jenner <andrew@codesourcery.com>
241 Based on patches from Altera Corporation.
243 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
244 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
245 (BFD_BACKENDS): Add elf32-nios2.lo.
246 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
247 * Makefile.in: Regenerated.
248 * configure.in: Add entries for bfd_elf32_bignios2_vec and
249 bfd_elf32_littlenios2_vec.
250 * configure: Regenerated.
251 * config.bfd: Add cases for nios2.
252 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
253 (bfd_mach_nios2): Define.
254 (bfd_nios2_arch): Declare.
255 (bfd_archures_list): Add bfd_nios2_arch.
256 * targets.c (bfd_elf32_bignios2_vec): Declare.
257 (bfd_elf32_littlenios2_vec): Declare.
258 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
259 bfd_elf32_littlenios2_vec.
260 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
261 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
262 * bfd-in2.h: Regenerated.
263 * libbfd.h: Regenerated.
264 * cpu-nios2.c: New file.
265 * elf32-nios2.c: New file.
267 2013-02-06 Alan Modra <amodra@gmail.com>
269 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
272 2013-02-06 Alan Modra <amodra@gmail.com>
274 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
275 * Makefile.in: Regenerate.
277 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
278 Pedro Alves <palves@redhat.com>
280 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
281 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
283 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
284 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
285 * elf-linux-psinfo.h: New file.
286 * elf.c: Include elf-linux-psinfo.h.
287 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
289 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
290 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
291 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
292 (elfcore_write_ppc_linux_prpsinfo32): New function.
294 2013-02-04 Tristan Gingold <gingold@adacore.com>
296 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
299 2013-02-04 Alan Modra <amodra@gmail.com>
301 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
302 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
303 * Makefile.in: Regenerate.
304 * po/SRC-POTFILES.in: Regenerate.
306 2013-02-04 Alan Modra <amodra@gmail.com>
308 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
309 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
311 2013-02-01 Alan Modra <amodra@gmail.com>
313 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
316 2013-01-31 Tristan Gingold <gingold@adacore.com>
318 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
319 earlier. Fix status checking of bfd_mach_o_scan_start_address.
320 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
322 2013-01-31 Alan Modra <amodra@gmail.com>
323 David S. Miller <davem@davemloft.net>
326 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
327 references to __tls_get_addr.
328 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
329 vtinherit and vtentry reloc handling too.
330 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
332 2013-01-31 Alan Modra <amodra@gmail.com>
334 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
336 2013-01-31 Alan Modra <amodra@gmail.com>
338 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
340 2013-01-28 Alan Modra <amodra@gmail.com>
342 * elf64-ppc.c: Use %T to print symbols names and remove redundant
343 "relocation" in error messages throughout file.
344 (ppc64_elf_relocate_section): Remove sibling call error message,
345 replace with "call lacks nop". Specially report errors for
346 branches to function entry points via OPD lookup and branches
347 to stubs. Remove NULL symbol handling now done by %T.
349 2013-01-28 Alan Modra <amodra@gmail.com>
351 * archive.c (bfd_generic_archive_p): Return target and keep
352 ardata on partial matches.
353 * format.c (bfd_check_format_matches): Adjust for above
354 change. Remove bfd_error_file_ambiguously_recognized dead
357 2013-01-26 Alan Modra <amodra@gmail.com>
359 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
360 bfd_preserve_finish): Move to..
361 * format.c: ..here, splitting out..
362 (bfd_reinit): ..this. New function.
363 (bfd_check_format_matches): Use bfd_preserve_save/restore to
364 keep bfd state for a match.
365 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
366 * elfcore.h (elf_core_file_p): Likewise.
367 * mach-o.c (bfd_mach_o_header_p): Likewise.
368 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
369 * xsym.c (bfd_sym_object_p): Likewise.
370 * mmo.c (mmo_scan): Clear abfd->symcount.
371 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
372 * section.c (bfd_section_list_clear): Clear section_htab.count.
373 * bfd-in2.h: Regenerate.
375 2013-01-25 Michael Schewe <michael.schewe@gmx.net>
377 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
378 second reloc, make sure that the reloc potentially exists first.
380 2013-01-24 Nick Clifton <nickc@redhat.com>
382 * archures.c: Add bfd_mach_v850e3v5.
383 * bfd-in2.h: Regenerate.
384 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
385 * cpu-v850_rh850.c: Likewise.
386 * elf32-v850.c: Add support for v850e3v5 architecture.
388 2013-01-23 Markos Chandras <markos.chandras@imgtec.com>
390 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
392 2013-01-23 Leif Ekblad <leif@rdos.net>
394 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
396 2013-01-18 H.J. Lu <hongjiu.lu@intel.com>
398 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
400 (elf_i386_relocate_section): Resolve size relocation against
402 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
403 for non-zero TLS symbol.
404 (elf_x86_64_relocate_section): Resolve size relocation against
407 2013-01-18 Mike Frysinger <vapier@gentoo.org>
409 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
410 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
413 2013-01-17 H.J. Lu <hongjiu.lu@intel.com>
415 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
416 PC-relative relocation.
417 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
418 as PC-relative relocation.
420 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
422 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
424 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
426 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
427 and R_X86_64_SIZE64 check.
428 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
431 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
433 * bfd-in2.h: Regenerated.
434 * libbfd.h: Likewise.
436 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
437 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
438 (elf_i386_check_relocs): Handle R_386_SIZE32.
439 (elf_i386_gc_sweep_hook): Likewise.
440 (elf_i386_relocate_section): Likewise.
442 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
443 and R_X86_64_SIZE64 entries.
444 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
445 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
446 (elf_x86_64_reloc_name_lookup): Likewise.
447 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
449 (elf_x86_64_gc_sweep_hook): Likewise.
450 (elf_x86_64_relocate_section): Likewise.
452 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
455 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
457 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
458 with R_X86_64_RELATIVE64.
460 2013-01-15 Nick Clifton <nickc@redhat.com>
462 * elf32-msp430.c: Fix spelling typo.
464 2013-01-15 Alan Modra <amodra@gmail.com>
466 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
469 2013-01-14 Alan Modra <amodra@gmail.com>
472 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
473 (memory_bclose): Likewise. Return 0 on success.
474 * cache.c (cache_bclose): Likewise.
475 * opncls.c (opncls_bclose, bfd_close): Likewise.
476 * vms-lib.c (vms_lib_bclose): Likewise.
477 * libbfd.h: Regenerate.
479 2013-01-13 Alan Modra <amodra@gmail.com>
481 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
482 Add ref_dynamic_nonweak.
483 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
484 (_bfd_elf_merge_symbol): Don't call above function. Move
485 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
487 (elf_link_add_object_symbols): Delete redundant "override" test.
488 Don't set dynamic_def here.
489 (elf_link_output_extsym): Update.
491 2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
493 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
494 normal and TLS symbol access.
495 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
497 2013-01-12 Alan Modra <amodra@gmail.com>
499 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
500 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
501 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
503 2013-01-12 Alan Modra <amodra@gmail.com>
506 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
507 (_bfd_elf_strtab_clear_all_refs): Define.
508 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
509 (_bfd_elf_strtab_clear_all_refs): Delete.
510 * elflink.c (elf_link_add_object_symbols): Clear out added
511 strtab refs. Correct handling of warning common symbols.
513 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
515 * aout0.c: Remove trailing white spaces.
516 * archive.c: Likewise.
517 * archures.c: Likewise.
518 * bfd-in.h: Likewise.
519 * bfd-in2.h: Likewise.
520 * coff-alpha.c: Likewise.
521 * coff-i860.c: Likewise.
522 * coff-mips.c: Likewise.
523 * coff-ppc.c: Likewise.
524 * coff-tic80.c: Likewise.
525 * coff-x86_64.c: Likewise.
526 * coff-z80.c: Likewise.
527 * coffcode.h: Likewise.
528 * coffgen.c: Likewise.
529 * cofflink.c: Likewise.
530 * compress.c: Likewise.
531 * corefile.c: Likewise.
532 * cpu-arm.c: Likewise.
533 * cpu-avr.c: Likewise.
534 * cpu-bfin.c: Likewise.
535 * cpu-cr16.c: Likewise.
536 * cpu-cr16c.c: Likewise.
537 * cpu-crx.c: Likewise.
538 * cpu-h8300.c: Likewise.
539 * cpu-i386.c: Likewise.
540 * cpu-lm32.c: Likewise.
541 * cpu-m68k.c: Likewise.
542 * cpu-moxie.c: Likewise.
543 * cpu-msp430.c: Likewise.
544 * cpu-sh.c: Likewise.
545 * cpu-xc16x.c: Likewise.
546 * dwarf2.c: Likewise.
547 * ecofflink.c: Likewise.
548 * ecoffswap.h: Likewise.
549 * elf-ifunc.c: Likewise.
550 * elf-m10300.c: Likewise.
551 * elf-vxworks.c: Likewise.
552 * elf32-avr.c: Likewise.
553 * elf32-avr.h: Likewise.
554 * elf32-cr16.c: Likewise.
555 * elf32-cr16c.c: Likewise.
556 * elf32-cris.c: Likewise.
557 * elf32-crx.c: Likewise.
558 * elf32-frv.c: Likewise.
559 * elf32-hppa.c: Likewise.
560 * elf32-i860.c: Likewise.
561 * elf32-ip2k.c: Likewise.
562 * elf32-iq2000.c: Likewise.
563 * elf32-m32c.c: Likewise.
564 * elf32-m68hc1x.c: Likewise.
565 * elf32-msp430.c: Likewise.
566 * elf32-mt.c: Likewise.
567 * elf32-ppc.c: Likewise.
568 * elf32-rl78.c: Likewise.
569 * elf32-s390.c: Likewise.
570 * elf32-score.h: Likewise.
571 * elf32-sh-symbian.c: Likewise.
572 * elf32-sh.c: Likewise.
573 * elf32-spu.c: Likewise.
574 * elf32-tic6x.c: Likewise.
575 * elf32-v850.c: Likewise.
576 * elf32-xc16x.c: Likewise.
577 * elf32-xtensa.c: Likewise.
578 * elf64-alpha.c: Likewise.
579 * elf64-hppa.c: Likewise.
580 * elf64-ppc.c: Likewise.
581 * elf64-s390.c: Likewise.
582 * elfcore.h: Likewise.
583 * elflink.c: Likewise.
584 * elfxx-mips.c: Likewise.
585 * elfxx-sparc.c: Likewise.
586 * elfxx-tilegx.c: Likewise.
588 * libcoff.h: Likewise.
589 * libpei.h: Likewise.
590 * libxcoff.h: Likewise.
591 * linker.c: Likewise.
592 * mach-o-i386.c: Likewise.
593 * mach-o-target.c: Likewise.
594 * mach-o.c: Likewise.
595 * mach-o.h: Likewise.
597 * opncls.c: Likewise.
599 * pe-x86_64.c: Likewise.
600 * peXXigen.c: Likewise.
601 * pef-traceback.h: Likewise.
602 * pei-x86_64.c: Likewise.
603 * peicode.h: Likewise.
604 * plugin.c: Likewise.
606 * riscix.c: Likewise.
607 * section.c: Likewise.
610 * tekhex.c: Likewise.
611 * ticoff.h: Likewise.
612 * vaxbsd.c: Likewise.
613 * xcofflink.c: Likewise.
614 * xtensa-isa.c: Likewise.
616 2013-01-10 Will Newton <will.newton@imgtec.com>
618 * Makefile.am: Add Meta.
619 * Makefile.in: Regenerate.
620 * archures.c (bfd_mach_metag): New.
621 * bfd-in2.h: Regenerate.
622 * config.bfd: Add Meta.
623 * configure: Regenerate.
624 * configure.in: Add Meta.
625 * cpu-metag.c: New file.
626 * elf-bfd.h: Add Meta.
627 * elf32-metag.c: New file.
628 * elf32-metag.h: New file.
629 * libbfd.h: Regenerate.
630 * reloc.c: Add Meta relocations.
631 * targets.c: Add Meta.
633 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
635 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
636 (elfcore_write_aarch_hw_break): Likewise.
637 (elfcore_write_aarch_hw_watch): Likewise.
638 * elf.c (elfcore_grok_aarch_tls): New function.
639 (elfcore_grok_aarch_hw_break): Likewise.
640 (elfcore_grok_aarch_hw_watch): Likewise.
641 (elfcore_grok_note): Call the new functions to handle the
643 (elfcore_write_aarch_tls): New function.
644 (elfcore_write_aarch_hw_break): Likewise.
645 (elfcore_write_aarch_hw_watch): Likewise.
646 (elfcore_write_register_note): Call the new functions to handle the
647 corresponding pseudo sections.
649 2013-01-07 Tom Tromey <tromey@redhat.com>
651 * section.c (_bfd_std_section): Rename from std_section.
652 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
653 (STD_SECTION): Update.
654 * bfd-in2.h: Rebuild.
656 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
658 * archures.c (bfd_mach_mips5900): Define.
659 * bfd-in2.h: Regenerate.
660 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
661 * cpu-mips.c: Add support for MIPS r5900.
662 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
664 2013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
665 Nick Clifton <nickc@redhat.com>
667 * elflink.c (get_value): Prevent the use of an undefined shift
668 operation. Add sanity checks.
670 2013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
672 * config.bfd (cr16*-*-uclinux*): New target support.
675 For older changes see ChangeLog-2012
677 Copyright (C) 2013 Free Software Foundation, Inc.
679 Copying and distribution of this file, with or without modification,
680 are permitted in any medium without royalty provided the copyright
681 notice and this notice are preserved.
687 version-control: never