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