bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
170a8295
YZ
12013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
2
3 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
4 288 to 272.
5
619a703e
AM
62013-02-08 Alan Modra <amodra@gmail.com>
7
8 PR binutils/15106
9 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
10 * elf.c (elf_find_function): Revert last change. Use new
11 tdata field rather than static vars for cache.
12
02acbe22
L
132013-02-07 H.J. Lu <hongjiu.lu@intel.com>
14
15 PR ld/15107
16 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
17 symbol is defined in regular object.
18
1965d5f2
AM
192013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
20
21 PR binutils/15106
22 * elf.c (elf_find_function): Don't cache if symbols change.
23
dafbc74d
AM
242013-02-07 Alan Modra <amodra@gmail.com>
25
26 PR binutils/14873
27 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
28 copy attributes from or to non-ELF.
29
20e52bd2
L
302013-02-06 H.J. Lu <hongjiu.lu@intel.com>
31
32 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
33 for non-zero TLS symbol.
34 (elf_i386_relocate_section): Don't resolve size relocation against
35 non-zero TLS symbol.
36 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
37 pc_count for non-zero TLS symbol.
38 (elf_x86_64_relocate_section): Don't resolve size relocation
39 against non-zero TLS symbol.
40
36591ba1 412013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 42 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
43
44 Based on patches from Altera Corporation.
45
46 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
47 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
48 (BFD_BACKENDS): Add elf32-nios2.lo.
49 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
50 * Makefile.in: Regenerated.
51 * configure.in: Add entries for bfd_elf32_bignios2_vec and
52 bfd_elf32_littlenios2_vec.
53 * configure: Regenerated.
54 * config.bfd: Add cases for nios2.
55 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
56 (bfd_mach_nios2): Define.
57 (bfd_nios2_arch): Declare.
58 (bfd_archures_list): Add bfd_nios2_arch.
59 * targets.c (bfd_elf32_bignios2_vec): Declare.
60 (bfd_elf32_littlenios2_vec): Declare.
61 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
62 bfd_elf32_littlenios2_vec.
63 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
64 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
65 * bfd-in2.h: Regenerated.
66 * libbfd.h: Regenerated.
67 * cpu-nios2.c: New file.
68 * elf32-nios2.c: New file.
69
ca6b5f82
AM
702013-02-06 Alan Modra <amodra@gmail.com>
71
72 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
73 stubs in stub_bfd.
74
37ba9f93
AM
752013-02-06 Alan Modra <amodra@gmail.com>
76
77 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
78 * Makefile.in: Regenerate.
79
70a38d42
SDJ
802013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
81 Pedro Alves <palves@redhat.com>
82
83 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
84 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
85 declaration.
86 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
87 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
88 * elf-linux-psinfo.h: New file.
89 * elf.c: Include elf-linux-psinfo.h.
90 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
91 New functions.
92 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
93 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
94 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
95 (elfcore_write_ppc_linux_prpsinfo32): New function.
96
5ee43bc4
TG
972013-02-04 Tristan Gingold <gingold@adacore.com>
98
99 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
100 start address.
101
0cadb185
AM
1022013-02-04 Alan Modra <amodra@gmail.com>
103
104 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
105 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
106 * Makefile.in: Regenerate.
107 * po/SRC-POTFILES.in: Regenerate.
108
5d42dfb5
AM
1092013-02-04 Alan Modra <amodra@gmail.com>
110
111 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
112 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
113
c57da1a7
AM
1142013-02-01 Alan Modra <amodra@gmail.com>
115
116 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
117 clears def_regular.
118
c0fd7846
TG
1192013-01-31 Tristan Gingold <gingold@adacore.com>
120
121 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
122 earlier. Fix status checking of bfd_mach_o_scan_start_address.
123 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
124
b45b6908
AM
1252013-01-31 Alan Modra <amodra@gmail.com>
126 David S. Miller <davem@davemloft.net>
127
128 PR ld/15056
129 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
130 references to __tls_get_addr.
131 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
132 vtinherit and vtentry reloc handling too.
133 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
134
bcaa2f82
AM
1352013-01-31 Alan Modra <amodra@gmail.com>
136
137 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
138
22aa0c7e
AM
1392013-01-31 Alan Modra <amodra@gmail.com>
140
141 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
142
bc30df16
AM
1432013-01-28 Alan Modra <amodra@gmail.com>
144
145 * elf64-ppc.c: Use %T to print symbols names and remove redundant
146 "relocation" in error messages throughout file.
147 (ppc64_elf_relocate_section): Remove sibling call error message,
148 replace with "call lacks nop". Specially report errors for
149 branches to function entry points via OPD lookup and branches
150 to stubs. Remove NULL symbol handling now done by %T.
151
89d7b8aa
AM
1522013-01-28 Alan Modra <amodra@gmail.com>
153
154 * archive.c (bfd_generic_archive_p): Return target and keep
155 ardata on partial matches.
156 * format.c (bfd_check_format_matches): Adjust for above
157 change. Remove bfd_error_file_ambiguously_recognized dead
158 code.
159
c9ba0c87
AM
1602013-01-26 Alan Modra <amodra@gmail.com>
161
162 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
163 bfd_preserve_finish): Move to..
164 * format.c: ..here, splitting out..
165 (bfd_reinit): ..this. New function.
166 (bfd_check_format_matches): Use bfd_preserve_save/restore to
167 keep bfd state for a match.
168 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
169 * elfcore.h (elf_core_file_p): Likewise.
170 * mach-o.c (bfd_mach_o_header_p): Likewise.
171 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
172 * xsym.c (bfd_sym_object_p): Likewise.
173 * mmo.c (mmo_scan): Clear abfd->symcount.
174 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
175 * section.c (bfd_section_list_clear): Clear section_htab.count.
176 * bfd-in2.h: Regenerate.
177
d79dcc73
NC
1782013-01-25 Michael Schewe <michael.schewe@gmx.net>
179
180 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
181 second reloc, make sure that the reloc potentially exists first.
182
78c8d46c
NC
1832013-01-24 Nick Clifton <nickc@redhat.com>
184
185 * archures.c: Add bfd_mach_v850e3v5.
186 * bfd-in2.h: Regenerate.
187 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
188 * cpu-v850_rh850.c: Likewise.
189 * elf32-v850.c: Add support for v850e3v5 architecture.
190
1a18f0ae
NC
1912013-01-23 Markos Chandras <markos.chandras@imgtec.com>
192
193 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
194
f65a9e53
AM
1952013-01-23 Leif Ekblad <leif@rdos.net>
196
197 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
198
3bea1fcb
L
1992013-01-18 H.J. Lu <hongjiu.lu@intel.com>
200
201 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
202 non-zero TLS symbol.
203 (elf_i386_relocate_section): Resolve size relocation against
204 non-zero TLS symbol.
205 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
206 for non-zero TLS symbol.
207 (elf_x86_64_relocate_section): Resolve size relocation against
208 non-zero TLS symbol.
209
b1b00fcc
MF
2102013-01-18 Mike Frysinger <vapier@gentoo.org>
211
212 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
213 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
214 true.
215
06a6a421
L
2162013-01-17 H.J. Lu <hongjiu.lu@intel.com>
217
218 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
219 PC-relative relocation.
220 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
221 as PC-relative relocation.
222
6a3e1bae
L
2232013-01-16 H.J. Lu <hongjiu.lu@intel.com>
224
225 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
226 check.
227 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
228
229 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
230 and R_X86_64_SIZE64 check.
231 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
232 nor R_X86_64_SIZE64.
233
1788fc08
L
2342013-01-16 H.J. Lu <hongjiu.lu@intel.com>
235
236 * bfd-in2.h: Regenerated.
237 * libbfd.h: Likewise.
238
239 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
240 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
241 (elf_i386_check_relocs): Handle R_386_SIZE32.
242 (elf_i386_gc_sweep_hook): Likewise.
243 (elf_i386_relocate_section): Likewise.
244
245 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
246 and R_X86_64_SIZE64 entries.
247 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
248 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
249 (elf_x86_64_reloc_name_lookup): Likewise.
250 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
251 R_X86_64_SIZE64.
252 (elf_x86_64_gc_sweep_hook): Likewise.
253 (elf_x86_64_relocate_section): Likewise.
254
255 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
256 BFD_RELOC_SIZE64.
257
1e536451
L
2582013-01-15 H.J. Lu <hongjiu.lu@intel.com>
259
260 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
261 with R_X86_64_RELATIVE64.
262
77bf820f
NC
2632013-01-15 Nick Clifton <nickc@redhat.com>
264
265 * elf32-msp430.c: Fix spelling typo.
266
e2458743
AM
2672013-01-15 Alan Modra <amodra@gmail.com>
268
269 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
270 plt-thread-safe.
271
405bf443
AM
2722013-01-14 Alan Modra <amodra@gmail.com>
273
274 PR binutils/14813
275 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
276 (memory_bclose): Likewise. Return 0 on success.
277 * cache.c (cache_bclose): Likewise.
278 * opncls.c (opncls_bclose, bfd_close): Likewise.
279 * vms-lib.c (vms_lib_bclose): Likewise.
280 * libbfd.h: Regenerate.
281
ee659f1f
AM
2822013-01-13 Alan Modra <amodra@gmail.com>
283
284 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
285 Add ref_dynamic_nonweak.
286 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
287 (_bfd_elf_merge_symbol): Don't call above function. Move
288 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
289 clear dynamic_def.
290 (elf_link_add_object_symbols): Delete redundant "override" test.
291 Don't set dynamic_def here.
292 (elf_link_output_extsym): Update.
293
68c4a57e
L
2942013-01-12 H.J. Lu <hongjiu.lu@intel.com>
295
296 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
297 normal and TLS symbol access.
298 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
299
02be4619
AM
3002013-01-12 Alan Modra <amodra@gmail.com>
301
302 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
303 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
304 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
305
a4542f1b
AM
3062013-01-12 Alan Modra <amodra@gmail.com>
307
308 PR ld/12549
309 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
310 (_bfd_elf_strtab_clear_all_refs): Define.
311 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
312 (_bfd_elf_strtab_clear_all_refs): Delete.
313 * elflink.c (elf_link_add_object_symbols): Clear out added
314 strtab refs. Correct handling of warning common symbols.
315
68ffbac6
L
3162013-01-10 H.J. Lu <hongjiu.lu@intel.com>
317
318 * aout0.c: Remove trailing white spaces.
319 * archive.c: Likewise.
320 * archures.c: Likewise.
321 * bfd-in.h: Likewise.
322 * bfd-in2.h: Likewise.
323 * coff-alpha.c: Likewise.
324 * coff-i860.c: Likewise.
325 * coff-mips.c: Likewise.
326 * coff-ppc.c: Likewise.
327 * coff-tic80.c: Likewise.
328 * coff-x86_64.c: Likewise.
329 * coff-z80.c: Likewise.
330 * coffcode.h: Likewise.
331 * coffgen.c: Likewise.
332 * cofflink.c: Likewise.
333 * compress.c: Likewise.
334 * corefile.c: Likewise.
335 * cpu-arm.c: Likewise.
336 * cpu-avr.c: Likewise.
337 * cpu-bfin.c: Likewise.
338 * cpu-cr16.c: Likewise.
339 * cpu-cr16c.c: Likewise.
340 * cpu-crx.c: Likewise.
341 * cpu-h8300.c: Likewise.
342 * cpu-i386.c: Likewise.
343 * cpu-lm32.c: Likewise.
344 * cpu-m68k.c: Likewise.
345 * cpu-moxie.c: Likewise.
346 * cpu-msp430.c: Likewise.
347 * cpu-sh.c: Likewise.
348 * cpu-xc16x.c: Likewise.
349 * dwarf2.c: Likewise.
350 * ecofflink.c: Likewise.
351 * ecoffswap.h: Likewise.
352 * elf-ifunc.c: Likewise.
353 * elf-m10300.c: Likewise.
354 * elf-vxworks.c: Likewise.
355 * elf32-avr.c: Likewise.
356 * elf32-avr.h: Likewise.
357 * elf32-cr16.c: Likewise.
358 * elf32-cr16c.c: Likewise.
359 * elf32-cris.c: Likewise.
360 * elf32-crx.c: Likewise.
361 * elf32-frv.c: Likewise.
362 * elf32-hppa.c: Likewise.
363 * elf32-i860.c: Likewise.
364 * elf32-ip2k.c: Likewise.
365 * elf32-iq2000.c: Likewise.
366 * elf32-m32c.c: Likewise.
367 * elf32-m68hc1x.c: Likewise.
368 * elf32-msp430.c: Likewise.
369 * elf32-mt.c: Likewise.
370 * elf32-ppc.c: Likewise.
371 * elf32-rl78.c: Likewise.
372 * elf32-s390.c: Likewise.
373 * elf32-score.h: Likewise.
374 * elf32-sh-symbian.c: Likewise.
375 * elf32-sh.c: Likewise.
376 * elf32-spu.c: Likewise.
377 * elf32-tic6x.c: Likewise.
378 * elf32-v850.c: Likewise.
379 * elf32-xc16x.c: Likewise.
380 * elf32-xtensa.c: Likewise.
381 * elf64-alpha.c: Likewise.
382 * elf64-hppa.c: Likewise.
383 * elf64-ppc.c: Likewise.
384 * elf64-s390.c: Likewise.
385 * elfcore.h: Likewise.
386 * elflink.c: Likewise.
387 * elfxx-mips.c: Likewise.
388 * elfxx-sparc.c: Likewise.
389 * elfxx-tilegx.c: Likewise.
390 * ieee.c: Likewise.
391 * libcoff.h: Likewise.
392 * libpei.h: Likewise.
393 * libxcoff.h: Likewise.
394 * linker.c: Likewise.
395 * mach-o-i386.c: Likewise.
396 * mach-o-target.c: Likewise.
397 * mach-o.c: Likewise.
398 * mach-o.h: Likewise.
399 * mmo.c: Likewise.
400 * opncls.c: Likewise.
401 * pdp11.c: Likewise.
402 * pe-x86_64.c: Likewise.
403 * peXXigen.c: Likewise.
404 * pef-traceback.h: Likewise.
405 * pei-x86_64.c: Likewise.
406 * peicode.h: Likewise.
407 * plugin.c: Likewise.
408 * reloc.c: Likewise.
409 * riscix.c: Likewise.
410 * section.c: Likewise.
411 * som.c: Likewise.
412 * syms.c: Likewise.
413 * tekhex.c: Likewise.
414 * ticoff.h: Likewise.
415 * vaxbsd.c: Likewise.
416 * xcofflink.c: Likewise.
417 * xtensa-isa.c: Likewise.
418
a3c62988
NC
4192013-01-10 Will Newton <will.newton@imgtec.com>
420
421 * Makefile.am: Add Meta.
422 * Makefile.in: Regenerate.
423 * archures.c (bfd_mach_metag): New.
424 * bfd-in2.h: Regenerate.
425 * config.bfd: Add Meta.
426 * configure: Regenerate.
427 * configure.in: Add Meta.
428 * cpu-metag.c: New file.
429 * elf-bfd.h: Add Meta.
430 * elf32-metag.c: New file.
431 * elf32-metag.h: New file.
432 * libbfd.h: Regenerate.
433 * reloc.c: Add Meta relocations.
434 * targets.c: Add Meta.
435
652451f8
YZ
4362013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
437
438 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
439 (elfcore_write_aarch_hw_break): Likewise.
440 (elfcore_write_aarch_hw_watch): Likewise.
441 * elf.c (elfcore_grok_aarch_tls): New function.
442 (elfcore_grok_aarch_hw_break): Likewise.
443 (elfcore_grok_aarch_hw_watch): Likewise.
444 (elfcore_grok_note): Call the new functions to handle the
445 corresponding notes.
446 (elfcore_write_aarch_tls): New function.
447 (elfcore_write_aarch_hw_break): Likewise.
448 (elfcore_write_aarch_hw_watch): Likewise.
449 (elfcore_write_register_note): Call the new functions to handle the
450 corresponding pseudo sections.
451
45a466b5
TT
4522013-01-07 Tom Tromey <tromey@redhat.com>
453
454 * section.c (_bfd_std_section): Rename from std_section.
455 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
456 (STD_SECTION): Update.
457 * bfd-in2.h: Rebuild.
458
e407c74b
NC
4592013-01-04 Juergen Urban <JuergenUrban@gmx.de>
460
461 * archures.c (bfd_mach_mips5900): Define.
462 * bfd-in2.h: Regenerate.
463 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
464 * cpu-mips.c: Add support for MIPS r5900.
465 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
466
9b239e0e
NC
4672013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
468 Nick Clifton <nickc@redhat.com>
469
470 * elflink.c (get_value): Prevent the use of an undefined shift
471 operation. Add sanity checks.
472
bab4becb 4732013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 474
bab4becb 475 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 476
9911c0fc 477
bab4becb 478For older changes see ChangeLog-2012
56882138 479\f
bab4becb 480Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
481
482Copying and distribution of this file, with or without modification,
483are permitted in any medium without royalty provided the copyright
484notice and this notice are preserved.
485
56882138
AM
486Local Variables:
487mode: change-log
488left-margin: 8
489fill-column: 74
490version-control: never
491End:
This page took 0.637825 seconds and 4 git commands to generate.