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