1 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
3 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
4 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
5 tls_ie_got_offset and tls_gd_got_offset.
6 (mips_elf_link_hash_newfunc): Remove initialization.
7 (mips_elf_create_got_info): Likewise.
8 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
9 (mips_tls_single_got_index): Delete.
10 (mips_elf_local_got_index): Always use the GOT entry to track
12 (mips_elf_global_got_index): Likewise.
13 (mips_elf_create_local_got_entry): Assert that TLS entries have
14 already been allocated.
15 (mips_elf_record_global_got_symbol): Don't initialize
16 tls_ie_type or tls_gd_type.
17 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
18 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
20 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
22 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
24 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
25 tls_ie_type and tls_gd_type.
27 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
29 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
30 aliasing violation. Check for htab allocation failures.
32 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
34 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
36 (mips_elf_global_got_index): ...here. Reorder arguments so that
37 the output bfd and info come first.
38 (mips_elf_calculate_relocation): Update the call to
39 mips_elf_global_got_index accordingly.
40 (_bfd_mips_elf_finish_dynamic_symbol): Use
41 mips_elf_primary_global_got_index rather than
42 mips_elf_global_got_index.
43 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
45 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
47 * elfxx-mips.c (mips_got_entry): Update comments.
48 (mips_elf_multi_got_entry_eq): Rename to...
49 (mips_elf_got_entry_eq): ...this, deleting the old definition.
50 (mips_elf_create_got_info): Remove master_got_p argument.
51 Always use mips_elf_got_entry_eq.
52 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
53 Update calls accordingly.
55 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
57 * elfxx-mips.c (mips_got_info): Remove bfd2got.
58 (mips_elf_bfd2got_hash): Delete.
59 (mips_elf_got_per_bfd_arg): Remove bfd2got.
60 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
61 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
62 g->next to test for the multigot case. Use mips_elf_bfd_got rather
63 than mips_elf_got_for_ibfd.
64 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
65 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
66 (mips_elf_make_got_per_bfd): Replace with...
67 (mips_elf_add_got_entry): ...this new function.
68 (mips_elf_make_got_pages_per_bfd): Replace with...
69 (mips_elf_add_got_page_entry): ...this new function.
70 (mips_elf_merge_got_with): Replace bfd2got argument with separate
71 bfd and GOT arguments. Use mips_elf_add_got_entry and
72 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
73 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
74 to set the BFD's GOT and free the old table.
75 (mips_elf_merge_got): Replace bfd2got argument with separate
76 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
77 Use mips_elf_count_got_entries to count the number of entries in
78 each GOT. Update the calls to mips_elf_merge_got_with.
79 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
80 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
81 (mips_elf_multi_got): Don't create the bfd2got hash table.
82 Replace hash table traversal with a walk over the input bfds,
83 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
84 to set the output bfd's GOT.
85 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
86 bfds use the master GOT in the single-GOT case.
87 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
88 rather than mips_elf_got_for_ibfd.
90 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
92 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
93 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
94 (mips_elf_record_global_got_symbol): Update the hash entry before
95 adding the mips_got_entry. Use mips_elf_record_got_entry to do
97 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
98 (mips_elf_record_got_page_entry): Record the entry in both the
101 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
103 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
104 create another one if necessary.
105 (mips_elf_set_gotidx): New function.
106 (mips_elf_set_global_gotidx): Use it.
107 (mips_elf_initialize_tls_index): Likewise. Take a
108 mips_elf_traverse_got_arg as argument.
109 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
110 (mips_elf_multi_got): Likewise. Cope with error returns from
111 mips_elf_set_global_gotidx.
113 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
115 * elfxx-mips.c (mips_got_info): Add relocs field.
116 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
118 (mips_elf_traverse_got_arg): ...this new structure.
119 (mips_elf_count_local_tls_relocs): Delete.
120 (mips_elf_count_global_tls_relocs): Likewise.
121 (mips_elf_count_got_entry): New function.
122 (mips_elf_count_local_got_entries): Likewise.
123 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
124 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
125 (mips_elf_record_local_got_symbol): Don't count got entries here.
126 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
127 (mips_elf_set_global_got_offset): Split into...
128 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
129 new functions. Take a mips_elf_traverse_got_arg rather than a
130 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
131 Use g->relocs to record the number of relocs needed for global GOT
133 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
134 mips_elf_set_global_got_offset_arg. Use the relocs field to count
135 relocations. Update for above function split.
136 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
137 to count both the number of GOT entries and the number of TLS
138 relocs required by local entries. Likewise
139 mips_elf_count_global_tls_entries and global entries.
140 Remove uses of mips_elf_count_local_tls_relocs and
141 mips_elf_count_global_tls_relocs.
143 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
145 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
146 to say that each structure represents only one type of TLS reference.
147 (GOT_TLS_TYPE): New define.
148 (mips_elf_link_hash_entry): Temporarily split tls_type and
149 tls_got_offset into two variables each.
150 (mips_elf_link_hash_newfunc): Update accordingly.
151 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
152 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
153 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
154 (mips_tls_got_relocs): Use a switch statement.
155 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
156 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
157 local "offset" variable.
158 (mips_tls_got_index): Remove r_type argument and assert. Remove
159 code that handled entries with two TLS types; always use the
160 original got_index instead.
161 (mips_tls_single_got_index): New function.
162 (mips_elf_local_got_index): Use entry->tls_type to check for
163 TLS entries. Use mips_tls_single_got_index. Update call to
165 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
166 Use p->tls_type to check for TLS entries. Update call to
167 mips_tls_got_index. Use mips_tls_single_got_index.
168 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
169 Use entry.tls_type to check for TLS entries.
170 (mips_elf_record_global_got_symbol): Replace tls_flag argument
171 with r_type argument. Use mips_elf_reloc_tls_type.
172 Set up the new hash entry fields.
173 (mips_elf_record_local_got_symbol): Replace tls_flag argument
174 with r_type argument. Use mips_elf_reloc_tls_type and
175 mips_tls_got_entries. Remove code that handled entries
176 with multiple TLS types.
177 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
178 (mips_elf_initialize_tls_index): Handle new hash entry fields.
179 Use equality rather than masks when checking for specific TLS types.
180 Use mips_tls_got_entries. Remove code that handled entries
181 with multiple TLS types.
182 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
183 testing the hash table entry.
184 (_bfd_mips_elf_check_relocs): Update calls to
185 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
186 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
187 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
189 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
191 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
192 (mips_elf_got_entry_hash): ...this, deleting the old version.
193 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
196 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
198 * elfxx-mips.c (mips_elf_create_got_info): New function.
199 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
200 (mips_elf_create_got_section): Likewise.
202 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
204 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
207 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
209 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
211 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
213 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
214 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
216 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
218 * elfxx-mips.c (mips_elf_count_global_tls_entries)
219 (mips_elf_count_global_tls_relocs): Don't count indirect or
221 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
222 number of TLS entries were allocated.
224 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
226 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
228 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
230 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
231 if there are TLS relocations.
233 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
235 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
236 (mips_elf_resolve_final_got_entries): Remove bogus comment.
238 2013-02-10 Alan Modra <amodra@gmail.com>
240 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
241 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
242 * m68klinux.c (linux_link_hash_table_create): Likewise.
243 * sparclinux.c (linux_link_hash_table_create): Likewise.
244 * sunos.c (sunos_link_hash_table_create): Likewise.
245 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
246 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
247 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
248 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
249 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
250 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
251 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
252 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
253 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
254 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
255 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
256 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
257 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
258 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
259 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
260 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
261 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
262 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
263 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
264 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
265 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
266 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
267 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
268 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
269 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
270 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
271 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
272 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
274 2013-02-10 Alan Modra <amodra@gmail.com>
276 * i386linux.c (linux_link_hash_table_create): Allocate table
277 with bfd_zmalloc, not bfd_alloc.
278 * pdp11.c (link_hash_table_create): Allocate table with
279 bfd_malloc, not bfd_alloc.
280 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
281 with bfd_zmalloc, not bfd_zalloc.
282 (bfin_link_hash_table_create): Likewise.
283 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
284 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
286 2013-02-10 Alan Modra <amodra@gmail.com>
289 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
291 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
293 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
295 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
298 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
300 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
303 2013-02-08 Alan Modra <amodra@gmail.com>
306 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
307 * elf.c (elf_find_function): Revert last change. Use new
308 tdata field rather than static vars for cache.
310 2013-02-07 H.J. Lu <hongjiu.lu@intel.com>
313 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
314 symbol is defined in regular object.
316 2013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
319 * elf.c (elf_find_function): Don't cache if symbols change.
321 2013-02-07 Alan Modra <amodra@gmail.com>
324 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
325 copy attributes from or to non-ELF.
327 2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
329 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
330 for non-zero TLS symbol.
331 (elf_i386_relocate_section): Don't resolve size relocation against
333 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
334 pc_count for non-zero TLS symbol.
335 (elf_x86_64_relocate_section): Don't resolve size relocation
336 against non-zero TLS symbol.
338 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
339 Andrew Jenner <andrew@codesourcery.com>
341 Based on patches from Altera Corporation.
343 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
344 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
345 (BFD_BACKENDS): Add elf32-nios2.lo.
346 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
347 * Makefile.in: Regenerated.
348 * configure.in: Add entries for bfd_elf32_bignios2_vec and
349 bfd_elf32_littlenios2_vec.
350 * configure: Regenerated.
351 * config.bfd: Add cases for nios2.
352 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
353 (bfd_mach_nios2): Define.
354 (bfd_nios2_arch): Declare.
355 (bfd_archures_list): Add bfd_nios2_arch.
356 * targets.c (bfd_elf32_bignios2_vec): Declare.
357 (bfd_elf32_littlenios2_vec): Declare.
358 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
359 bfd_elf32_littlenios2_vec.
360 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
361 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
362 * bfd-in2.h: Regenerated.
363 * libbfd.h: Regenerated.
364 * cpu-nios2.c: New file.
365 * elf32-nios2.c: New file.
367 2013-02-06 Alan Modra <amodra@gmail.com>
369 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
372 2013-02-06 Alan Modra <amodra@gmail.com>
374 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
375 * Makefile.in: Regenerate.
377 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
378 Pedro Alves <palves@redhat.com>
380 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
381 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
383 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
384 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
385 * elf-linux-psinfo.h: New file.
386 * elf.c: Include elf-linux-psinfo.h.
387 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
389 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
390 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
391 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
392 (elfcore_write_ppc_linux_prpsinfo32): New function.
394 2013-02-04 Tristan Gingold <gingold@adacore.com>
396 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
399 2013-02-04 Alan Modra <amodra@gmail.com>
401 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
402 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
403 * Makefile.in: Regenerate.
404 * po/SRC-POTFILES.in: Regenerate.
406 2013-02-04 Alan Modra <amodra@gmail.com>
408 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
409 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
411 2013-02-01 Alan Modra <amodra@gmail.com>
413 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
416 2013-01-31 Tristan Gingold <gingold@adacore.com>
418 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
419 earlier. Fix status checking of bfd_mach_o_scan_start_address.
420 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
422 2013-01-31 Alan Modra <amodra@gmail.com>
423 David S. Miller <davem@davemloft.net>
426 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
427 references to __tls_get_addr.
428 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
429 vtinherit and vtentry reloc handling too.
430 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
432 2013-01-31 Alan Modra <amodra@gmail.com>
434 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
436 2013-01-31 Alan Modra <amodra@gmail.com>
438 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
440 2013-01-28 Alan Modra <amodra@gmail.com>
442 * elf64-ppc.c: Use %T to print symbols names and remove redundant
443 "relocation" in error messages throughout file.
444 (ppc64_elf_relocate_section): Remove sibling call error message,
445 replace with "call lacks nop". Specially report errors for
446 branches to function entry points via OPD lookup and branches
447 to stubs. Remove NULL symbol handling now done by %T.
449 2013-01-28 Alan Modra <amodra@gmail.com>
451 * archive.c (bfd_generic_archive_p): Return target and keep
452 ardata on partial matches.
453 * format.c (bfd_check_format_matches): Adjust for above
454 change. Remove bfd_error_file_ambiguously_recognized dead
457 2013-01-26 Alan Modra <amodra@gmail.com>
459 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
460 bfd_preserve_finish): Move to..
461 * format.c: ..here, splitting out..
462 (bfd_reinit): ..this. New function.
463 (bfd_check_format_matches): Use bfd_preserve_save/restore to
464 keep bfd state for a match.
465 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
466 * elfcore.h (elf_core_file_p): Likewise.
467 * mach-o.c (bfd_mach_o_header_p): Likewise.
468 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
469 * xsym.c (bfd_sym_object_p): Likewise.
470 * mmo.c (mmo_scan): Clear abfd->symcount.
471 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
472 * section.c (bfd_section_list_clear): Clear section_htab.count.
473 * bfd-in2.h: Regenerate.
475 2013-01-25 Michael Schewe <michael.schewe@gmx.net>
477 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
478 second reloc, make sure that the reloc potentially exists first.
480 2013-01-24 Nick Clifton <nickc@redhat.com>
482 * archures.c: Add bfd_mach_v850e3v5.
483 * bfd-in2.h: Regenerate.
484 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
485 * cpu-v850_rh850.c: Likewise.
486 * elf32-v850.c: Add support for v850e3v5 architecture.
488 2013-01-23 Markos Chandras <markos.chandras@imgtec.com>
490 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
492 2013-01-23 Leif Ekblad <leif@rdos.net>
494 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
496 2013-01-18 H.J. Lu <hongjiu.lu@intel.com>
498 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
500 (elf_i386_relocate_section): Resolve size relocation against
502 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
503 for non-zero TLS symbol.
504 (elf_x86_64_relocate_section): Resolve size relocation against
507 2013-01-18 Mike Frysinger <vapier@gentoo.org>
509 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
510 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
513 2013-01-17 H.J. Lu <hongjiu.lu@intel.com>
515 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
516 PC-relative relocation.
517 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
518 as PC-relative relocation.
520 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
522 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
524 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
526 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
527 and R_X86_64_SIZE64 check.
528 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
531 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
533 * bfd-in2.h: Regenerated.
534 * libbfd.h: Likewise.
536 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
537 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
538 (elf_i386_check_relocs): Handle R_386_SIZE32.
539 (elf_i386_gc_sweep_hook): Likewise.
540 (elf_i386_relocate_section): Likewise.
542 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
543 and R_X86_64_SIZE64 entries.
544 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
545 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
546 (elf_x86_64_reloc_name_lookup): Likewise.
547 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
549 (elf_x86_64_gc_sweep_hook): Likewise.
550 (elf_x86_64_relocate_section): Likewise.
552 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
555 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
557 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
558 with R_X86_64_RELATIVE64.
560 2013-01-15 Nick Clifton <nickc@redhat.com>
562 * elf32-msp430.c: Fix spelling typo.
564 2013-01-15 Alan Modra <amodra@gmail.com>
566 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
569 2013-01-14 Alan Modra <amodra@gmail.com>
572 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
573 (memory_bclose): Likewise. Return 0 on success.
574 * cache.c (cache_bclose): Likewise.
575 * opncls.c (opncls_bclose, bfd_close): Likewise.
576 * vms-lib.c (vms_lib_bclose): Likewise.
577 * libbfd.h: Regenerate.
579 2013-01-13 Alan Modra <amodra@gmail.com>
581 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
582 Add ref_dynamic_nonweak.
583 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
584 (_bfd_elf_merge_symbol): Don't call above function. Move
585 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
587 (elf_link_add_object_symbols): Delete redundant "override" test.
588 Don't set dynamic_def here.
589 (elf_link_output_extsym): Update.
591 2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
593 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
594 normal and TLS symbol access.
595 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
597 2013-01-12 Alan Modra <amodra@gmail.com>
599 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
600 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
601 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
603 2013-01-12 Alan Modra <amodra@gmail.com>
606 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
607 (_bfd_elf_strtab_clear_all_refs): Define.
608 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
609 (_bfd_elf_strtab_clear_all_refs): Delete.
610 * elflink.c (elf_link_add_object_symbols): Clear out added
611 strtab refs. Correct handling of warning common symbols.
613 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
615 * aout0.c: Remove trailing white spaces.
616 * archive.c: Likewise.
617 * archures.c: Likewise.
618 * bfd-in.h: Likewise.
619 * bfd-in2.h: Likewise.
620 * coff-alpha.c: Likewise.
621 * coff-i860.c: Likewise.
622 * coff-mips.c: Likewise.
623 * coff-ppc.c: Likewise.
624 * coff-tic80.c: Likewise.
625 * coff-x86_64.c: Likewise.
626 * coff-z80.c: Likewise.
627 * coffcode.h: Likewise.
628 * coffgen.c: Likewise.
629 * cofflink.c: Likewise.
630 * compress.c: Likewise.
631 * corefile.c: Likewise.
632 * cpu-arm.c: Likewise.
633 * cpu-avr.c: Likewise.
634 * cpu-bfin.c: Likewise.
635 * cpu-cr16.c: Likewise.
636 * cpu-cr16c.c: Likewise.
637 * cpu-crx.c: Likewise.
638 * cpu-h8300.c: Likewise.
639 * cpu-i386.c: Likewise.
640 * cpu-lm32.c: Likewise.
641 * cpu-m68k.c: Likewise.
642 * cpu-moxie.c: Likewise.
643 * cpu-msp430.c: Likewise.
644 * cpu-sh.c: Likewise.
645 * cpu-xc16x.c: Likewise.
646 * dwarf2.c: Likewise.
647 * ecofflink.c: Likewise.
648 * ecoffswap.h: Likewise.
649 * elf-ifunc.c: Likewise.
650 * elf-m10300.c: Likewise.
651 * elf-vxworks.c: Likewise.
652 * elf32-avr.c: Likewise.
653 * elf32-avr.h: Likewise.
654 * elf32-cr16.c: Likewise.
655 * elf32-cr16c.c: Likewise.
656 * elf32-cris.c: Likewise.
657 * elf32-crx.c: Likewise.
658 * elf32-frv.c: Likewise.
659 * elf32-hppa.c: Likewise.
660 * elf32-i860.c: Likewise.
661 * elf32-ip2k.c: Likewise.
662 * elf32-iq2000.c: Likewise.
663 * elf32-m32c.c: Likewise.
664 * elf32-m68hc1x.c: Likewise.
665 * elf32-msp430.c: Likewise.
666 * elf32-mt.c: Likewise.
667 * elf32-ppc.c: Likewise.
668 * elf32-rl78.c: Likewise.
669 * elf32-s390.c: Likewise.
670 * elf32-score.h: Likewise.
671 * elf32-sh-symbian.c: Likewise.
672 * elf32-sh.c: Likewise.
673 * elf32-spu.c: Likewise.
674 * elf32-tic6x.c: Likewise.
675 * elf32-v850.c: Likewise.
676 * elf32-xc16x.c: Likewise.
677 * elf32-xtensa.c: Likewise.
678 * elf64-alpha.c: Likewise.
679 * elf64-hppa.c: Likewise.
680 * elf64-ppc.c: Likewise.
681 * elf64-s390.c: Likewise.
682 * elfcore.h: Likewise.
683 * elflink.c: Likewise.
684 * elfxx-mips.c: Likewise.
685 * elfxx-sparc.c: Likewise.
686 * elfxx-tilegx.c: Likewise.
688 * libcoff.h: Likewise.
689 * libpei.h: Likewise.
690 * libxcoff.h: Likewise.
691 * linker.c: Likewise.
692 * mach-o-i386.c: Likewise.
693 * mach-o-target.c: Likewise.
694 * mach-o.c: Likewise.
695 * mach-o.h: Likewise.
697 * opncls.c: Likewise.
699 * pe-x86_64.c: Likewise.
700 * peXXigen.c: Likewise.
701 * pef-traceback.h: Likewise.
702 * pei-x86_64.c: Likewise.
703 * peicode.h: Likewise.
704 * plugin.c: Likewise.
706 * riscix.c: Likewise.
707 * section.c: Likewise.
710 * tekhex.c: Likewise.
711 * ticoff.h: Likewise.
712 * vaxbsd.c: Likewise.
713 * xcofflink.c: Likewise.
714 * xtensa-isa.c: Likewise.
716 2013-01-10 Will Newton <will.newton@imgtec.com>
718 * Makefile.am: Add Meta.
719 * Makefile.in: Regenerate.
720 * archures.c (bfd_mach_metag): New.
721 * bfd-in2.h: Regenerate.
722 * config.bfd: Add Meta.
723 * configure: Regenerate.
724 * configure.in: Add Meta.
725 * cpu-metag.c: New file.
726 * elf-bfd.h: Add Meta.
727 * elf32-metag.c: New file.
728 * elf32-metag.h: New file.
729 * libbfd.h: Regenerate.
730 * reloc.c: Add Meta relocations.
731 * targets.c: Add Meta.
733 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
735 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
736 (elfcore_write_aarch_hw_break): Likewise.
737 (elfcore_write_aarch_hw_watch): Likewise.
738 * elf.c (elfcore_grok_aarch_tls): New function.
739 (elfcore_grok_aarch_hw_break): Likewise.
740 (elfcore_grok_aarch_hw_watch): Likewise.
741 (elfcore_grok_note): Call the new functions to handle the
743 (elfcore_write_aarch_tls): New function.
744 (elfcore_write_aarch_hw_break): Likewise.
745 (elfcore_write_aarch_hw_watch): Likewise.
746 (elfcore_write_register_note): Call the new functions to handle the
747 corresponding pseudo sections.
749 2013-01-07 Tom Tromey <tromey@redhat.com>
751 * section.c (_bfd_std_section): Rename from std_section.
752 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
753 (STD_SECTION): Update.
754 * bfd-in2.h: Rebuild.
756 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
758 * archures.c (bfd_mach_mips5900): Define.
759 * bfd-in2.h: Regenerate.
760 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
761 * cpu-mips.c: Add support for MIPS r5900.
762 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
764 2013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
765 Nick Clifton <nickc@redhat.com>
767 * elflink.c (get_value): Prevent the use of an undefined shift
768 operation. Add sanity checks.
770 2013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
772 * config.bfd (cr16*-*-uclinux*): New target support.
775 For older changes see ChangeLog-2012
777 Copyright (C) 2013 Free Software Foundation, Inc.
779 Copying and distribution of this file, with or without modification,
780 are permitted in any medium without royalty provided the copyright
781 notice and this notice are preserved.
787 version-control: never