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