0f11a7333a306012cc01a60de4ee7a0f5af368c5
[external/binutils.git] / binutils / ChangeLog
1 2016-02-12  H.J. Lu  <hongjiu.lu@intel.com>
2
3         Backport from master
4         2016-02-12  H.J. Lu  <hongjiu.lu@intel.com>
5
6         * doc/binutils.texi: Fix a typo.
7
8 2016-01-25  Tristan Gingold  <gingold@adacore.com>
9
10         * configure: Regenerate.
11
12 2016-01-25  Tristan Gingold  <gingold@adacore.com>
13
14         * configure: Regenerate.
15
16 2016-01-18  Alan Modra  <amodra@gmail.com>
17
18         * configure: Regenerate.
19
20 2015-12-10  Alan Modra  <amodra@gmail.com>
21
22         Apply from master.
23         2015-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
24         * dwarf.c (is_max_address): New function.
25         (display_loc_list): Remove out of date comment, use
26         is_max_address.
27         (display_debug_ranges): Likewise.
28
29 2015-11-25  Tejas Belagod  <tejas.belagod@arm.com>
30
31         Backport from mainline:
32         2015-11-20  Ronald Hoogenboom  <hoogenboom30@zonnet.nl>
33
34         * objcopy.c (parse_symflags): Use xstrndup in place of strndup.
35         (copy_main): Likewise.
36
37 2015-11-20  Nick Clifton  <nickc@redhat.com>
38
39         * po/ca.po: New Catalan translation.
40         * configure.ac (ALL_LINGUAS): Add ca.
41         * configure: Regenerate.
42
43 2015-11-13  Tristan Gingold  <gingold@adacore.com>
44
45         * configure: Regenerate.
46
47 2015-11-13  Tristan Gingold  <gingold@adacore.com>
48
49         * configure: Regenerate.
50
51 2015-11-13  Tristan Gingold  <gingold@adacore.com>
52
53         * NEWS: Add marker for 2.26.
54
55 2015-11-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
56
57         * dwarf.c (read_leb128): Fix left shift of negative value.
58
59 2015-11-03  Alan Modra  <amodra@gmail.com>
60
61         * readelf (process_version_sections): Check DT_VERNEED and
62         DT_VERDEF for all symbols.  Report "*both*" should a symbol
63         have both a verneed and verdef.
64         (get_symbol_version_string): Reduce indentation by early
65         exits.  Don't use SHT_NOBITS heuristic to detect case where a
66         defined symbol has a verneed entry.
67
68 2015-10-30  Nick Clifton  <nickc@redhat.com>
69
70         * po/zh_CN.po: Updated (simplified) Chinese translation.
71
72 2015-10-27  Stephen Fisher  <sfisher@panix.com>
73
74         * binutils.c (process_netbsd_elf_note): New function.
75         (process_note): Call the new function for NetBSD core notes.
76
77 2015-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
78
79         * objcopy.c (setup_section): Don't omit bfd_copy_private_bfd_data
80         call when extract_symbol.
81
82 2015-10-21  Ronald Hoogenboom  <rhoogenboom@irdeto.com>
83
84         PR binutils/19104
85         * objcopy.c (command_line_switch): Add OPTION_ADD_SYMBOL.
86         (copy_options): Add add-symbol.
87         (copy_usage): Likewise.
88         (parse_symflags): New function.
89         (need_sym_before): New function.
90         (create_new_symbol): New function.
91         (filter_symbols): Add code to insert new symbols.
92         (copy_main): Process OPTION_ADD_SYMBOL.
93         * doc/binutils.texi: Document new feature.
94         * NEWS: Add note about the new feature.
95
96 2015-10-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
97
98         PR binutils/19147
99         * readelf.c (print_core_note): Fix off-by-one bug.
100
101 2015-10-15  Alan Modra  <amodra@gmail.com>
102
103         * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data
104         call when extract_symbol.
105
106 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
107
108         * od-elf32_avr.c (elf32_avr_dump_avr_prop): Fix printing of align
109         specific data, fix formatting for align and org data.
110
111 2015-09-01  Claudiu Zissulescu  <claziss@synopsys.com>
112             Cupertino Miranda  <cmiranda@synopsys.com>
113
114         * readelf.c (get_machine_name): Remove A5 reference. Add ARCompact
115         and ARCv2.
116         (get_machine_flags): Handle EM_ARCV2 and EM_ARCOMPACT.
117         (guess_is_rela): Likewise.
118         (dump_relocations): Likewise.
119         (is_32bit_abs_reloc): Likewise.
120         (is_16bit_abs_reloc): Likewise.
121         (is_none_reloc): Likewise.
122         * NEWS: Mention the new feature.
123
124 2015-09-29  Andrew Stubbs  <ams@codesourcery.com>
125             H.J. Lu  <hongjiu.lu@intel.com>
126
127         PR binutils/19020
128         * objcopy.c (copy_object): Don't adjust the output section size
129         when copying from input sections.
130         (copy_section): Use input section size for the copy.  Get the
131         updated section size from bfd_convert_section_contents.
132
133 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
134
135         PR binutils/19005
136         * objcopy.c (copy_object): Adjust the output section size to
137         skip gap fills between sections when copying from input sections
138         to output sections.
139
140 2015-09-28  Nick Clifton  <nickc@redhat.com>
141
142         * po/fr.po: Updated French translation.
143
144 2015-09-25  James Bowman  <james.bowman@ftdichip.com>
145
146         * ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.
147
148 2015-09-23  Nick Clifton  <nickc@redhat.com>
149
150         PR binutils/15835
151         * readelf.c (struct elf_section_list): New structure.
152         (symtab_shndx_hdr): Replace with symtab_shndx_list.
153         (get_32bit_elf_symbols): Scan for a symbol index table matching
154         the symbol table in use.
155         (get_64bit_elf_symbols): Likewise.
156         (process_section_headers): Handle multiple symbol index sections.
157
158 2015-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
159
160         * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
161
162 2015-09-10  Erik Ackermann  <kurterikackermann@gmail.com>
163
164         * strings.c: Add -s/--output-separator option to specify custom
165         separator string.
166         * NEWS: Mention the new feature.
167         * doc/binutils.text (strings): Document the new command line
168         option.
169
170 2015-09-09  Nick Clifton  <nickc@redhat.com>
171
172         * doc/binutils.texi (ar): Remove bogus sentance concerning thin
173         archives and invalid paths.
174
175 2015-09-03  Nick Clifton  <nickc@redhat.com>
176
177         PR binutils/18879
178         * readelf.c (get_unwind_section_word): Check for negative offsets
179         and very small sections.
180         (dump_arm_unwind): Warn if the table offset is too large.
181
182 2015-08-28  H.J. Lu  <hongjiu.lu@intel.com>
183
184         * Makefile.am (TOOL_PROGS): Add readelf.
185         * Makefile.in: Regenerated.
186
187 2015-08-24  Yaakov Selkowitz  <yselkowi@redhat.com>
188
189         * configure: Regenerate.
190
191 2015-08-17  Alan Modra  <amodra@gmail.com>
192
193         * configure: Regenerate.
194
195 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
196
197         * objcopy.c (is_specified_symbol_predicate): Don't stop at first
198         match.  Non-match rules set found to FALSE.
199
200 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
201
202         * configure: Regenerate.
203
204 2015-08-05  Nick Clifton  <nickc@redhat.com>
205
206         * doc/binutils.texi: Document that the --only-keep-debug option
207         to strip and objcopy preserves the section headers of stripped
208         sections.
209
210 2015-08-04  Yuriy M. Kaminskiy"  <yumkam@gmail.com>
211             Tyler Hicks  <tyhicks@canonical.com>
212
213         PR binutils/18750
214         * readelf.c (process_mips_specific): Fix incorrect escape
215         sequence handling.
216
217 2015-08-04  Nick Clifton  <nickc@redhat.com>
218
219         * ar.c (extract_file): Free cbuf if the path is invalid.
220
221 2015-07-27  H.J. Lu  <hongjiu.lu@intel.com>
222
223         * configure: Regenerated.
224
225 2015-07-24  H.J. Lu  <hongjiu.lu@intel.com>
226
227         * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
228
229 2015-07-22  Alan Modra  <amodra@gmail.com>
230
231         * readelf.c (dump_relocations): Show MIN_INT addends as negative.
232
233 2015-07-20  Alan Modra  <amodra@gmail.com>
234
235         * doc/Makefile.in: Regenerate.
236
237 2015-07-16  Alan Modra  <amodra@gmail.com>
238
239         PR binutils/18672
240         * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
241         (get_64bit_dynamic_section): Likewise.
242
243 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
244
245         * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
246         zlib-gnu.
247         * doc/binutils.texi: Change --compress-debug-sections and
248         --compress-debug-sections=zlib to zlib-gabi.
249
250 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
251
252          PR binutils/18656
253          * objcopy.c (setup_section): Call bfd_convert_section_size
254          to get the output section size.
255          (copy_section): Get the section size from the output section
256          and call bfd_get_full_section_contents to convert section
257          contents for output.
258
259 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
260
261         * readelf.c (dump_section_as_strings): Warn unsupported compress
262         type and corrupted compressed section.
263         (dump_section_as_bytes): Likewise.
264         (load_specific_debug_section): Likewise.
265
266 2015-07-09  Catherine Moore  <clm@codesourcery.com>
267
268         * readelf.c (print_mips_fp_abi_value): Handle
269         Val_GNU_MIPS_ABI_FP_NAN2008.
270
271 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
272
273         * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
274
275 2015-06-22  Nick Clifton  <nickc@redhat.com>
276
277         * objdump.c (disassemble_bytes): Set the stop_vma field in the
278         disassemble_info structure when disassembling code sections with
279         -d.
280         * doc/binutils.texi (objdump): Document the discrepancy between -d
281         and -D.
282
283 2015-06-05  Nick Clifton  <nickc@redhat.com>
284
285         * dwarf.c (read_debug_line_header): Use reloc_at to detect
286         incomplete .debug_line headers
287
288 2015-05-29  Roland McGrath  <mcgrathr@google.com>
289
290         * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
291         GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
292
293 2015-05-29  Stephen Kitt  <steve@sk2.org>
294
295         * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
296         (main): Fail if the output file specified by the -z option cannot
297         be opened.
298
299 2015-05-18  Nick Clifton  <nickc@redhat.com>
300
301         PR binutils/18420
302         * ia64-unwind.c (unw_decode): Add end parameter.  Pass parameter
303         on to decode functions.
304         (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
305         (UNW_DEC_SPILL_MASK): Add end parameter.  Check that unw_rlen does
306         not take us beyond the end of the buffer.
307         * ia64-unwind.h (unw_decode): Update prototype.
308         * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
309
310 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
311
312         * readelf.c (dump_section_as_strings): Change pointers from
313         char * to unsigned char *.
314
315 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
316
317         PR binutis/18386
318         * doc/binutils.texi: Document -Mamd64 and -Mintel64.
319
320 2015-05-15  Nick Clifton  <nickc@redhat.com>
321
322         * readelf.c (options): Add "decompress".
323         (usage): Mention -z/--decompress.
324         (parse_args): Handle -z.
325         (uncompress_section_contents): Move to earlier in the file.
326         (dump_section_as_strings): If requested, decompress the section
327         before dumping.
328         (dump_section_as_bytes): Likewise.
329         * doc/binutils.texi: Document the new option.
330
331 2015-05-14  Peter Bergner  <bergner@vnet.ibm.com>
332
333         * MAINTAINERS: Add myself as PPC maintainer.
334
335 2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
336
337         * readelf.c (uncompress_section_contents): Add a parameter for
338         uncompressed size.  Don't check the zlib header.
339         (load_specific_debug_section): Updated.
340
341 2015-05-15  Nick Clifton  <nickc@redhat.com>
342
343         PR binutils/18374
344         * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
345         fields.
346         (struct dwarf_section_display): Change bitfield to boolean.
347         (reloc_at): Add prototype.
348         * dwarf.c (display_loc_list): Ignore list terminators if there are
349         relocs against them.
350         (display_debug_loc): Issue a warning if there are relocs against
351         the .debug_loc section.
352         (display_displays): Initialise reloc_info and num_relocs fields.
353         * objdump.c (load_specific_debug_section): Initialise reloc_info
354         and num_relocs fields.
355         (reloc_at): New function.
356         * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
357         reloc.
358         (reloc_at): New function.
359         (apply_relocations): Add relocs_return and num_relocs_return
360         parameters.  Fill them in with the loaded relocs if non-NULL.
361         (dump_section_as_bytes): Update call to apply_relocations.
362         (load_specific_debug_section): Initialise reloc_info and
363         num_relocs fields.
364
365 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
366
367         * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
368
369 2015-05-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
370
371         * MAINTAINERS: Add myself as s390 and s390x maintainer.
372
373 2015-05-12  Stephen Kitt  <steve@sk2.org>
374
375         * dlltool.c (main): Accept -t as an abbreviation for
376         --temp-prefix.
377
378 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
379
380         * dwarf.c (dwarf_regnames_iamcu): New.
381         (init_dwarf_regnames_iamcu): Likewise.
382         (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
383         * dwarf.h (init_dwarf_regnames_iamcu): New.
384         * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
385         bfd_arch_iamcu.
386
387 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
388
389         * elfedit.c (enum elfclass): New.
390         (input_elf_class): Change type to enum elfclass.
391         (output_elf_class): New.
392         (elf_class): Change return type to enum elfclass.  Support EM_386
393         and EM_IAMCU.
394         (update_elf_header): Check if input and output ELF classes match.
395         (elf_machine): Support EM_386 and EM_IAMCU.
396         (main): Update input_elf_class.  Set output_elf_class.
397         * doc/binutils.texi: Update elfedit.
398
399 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
400
401         * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
402         * readelf.c (guess_is_rela): Likewise.
403         (dump_relocations): Likewise.
404         (get_machine_name): Likewise.
405         (get_elf_section_flags): Likewise.
406         (process_section_headers): Likewise.
407         (is_32bit_abs_reloc): Likewise.
408         (is_32bit_pcrel_reloc): Likewise.
409
410 2015-04-30  Nick Clifton  <nickc@redhat.com>
411
412         * readelf.c (get_machine_flags): Add description of MeP flags.
413
414 2015-04-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
415
416         * readelf.c (display_s390_gnu_attribute): New function.
417         (process_s390_specific): New function.
418         (process_arch_specific): Call process_s390_specific.
419
420 2015-04-24  Nick Clifton  <nickc@redhat.com>
421
422         PR 18313
423         * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
424         * readelf.c (uncompress_section_contents): Zero initialise the
425         zstream structure.
426
427 2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
428
429         PR binutils/18209
430         * objcopy.c (setup_section): Copy compress status.
431
432 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
433
434         * NEWS: Mention
435         --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
436
437 2015-04-14  Nick Clifton  <nickc@redhat.com>
438
439         * readelf.c (target_specific_reloc_handling): Add code to handle
440         RL78 complex relocs.
441
442 2015-04-13  Doug Evans  <dje@google.com>
443
444         PR binutils/18218
445         * readelf.c (printable_section_name): Constify sec argument.
446         (apply_relocations): Ditto.  New arg "size".  All callers updated.
447         (load_specific_debug_section): Constify sec argument.
448         Remove side-effect of modifying sec->sh_size.
449
450 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
451
452         * objcopy.c (do_debug_sections): Use bit patterns.
453         (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
454         and compress_gabi_zlib on non-ELF input.
455         (copy_file): Don't check non-ELF input here.
456
457 2015-04-09  Nick Clifton  <nickc@redhat.com>
458
459         * readelf.c (get_machine_flags): Report the setting of the string
460         insn using bits.
461
462 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
463
464         * objcopy.c (do_debug_sections): Add compress_zlib,
465         compress_gnu_zlib and compress_gabi_zlib.
466         (copy_options): Use optional_argument on compress-debug-sections.
467         (copy_usage): Update --compress-debug-sections.
468         (copy_file): Handle compress_zlib, compress_gnu_zlib and
469         compress_gabi_zlib.
470         (copy_main): Handle
471         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
472         * doc/binutils.texi: Document
473         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
474
475 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
476
477         * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
478         --interleave[=<number>].
479
480 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
481
482         * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
483         (get_compression_header): New.
484         (process_section_headers): Dump compression header if needed.
485         (uncompress_section_contents): Don't free compressed_buffer here.
486         (load_specific_debug_section): Free the compressed buffer, update
487         the section buffer and the section size if uncompress is
488         successful.
489
490 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
491
492         * configure: Regenerated.
493
494 2015-04-02  Mike Frysinger  <vapier@gentoo.org>
495
496         * MAINTAINERS: Update my e-mail address.
497
498 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
499
500         * configure: Regenerated.
501
502 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
503
504         * configure.ac: Revert the AM_ZLIB change.
505         * Makefile.in: Regenerated.
506         * aclocal.m4: Likewise.
507         * configure: Likewise.
508
509 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
510
511         * Makefile.am (ZLIB): New.
512         (ZLIBINC): Likewise.
513         (AM_CFLAGS): Add $(ZLIBINC).
514         (readelf_LDADD): Add $(ZLIB).
515         * configure.ac (AM_ZLIB): Removed.
516         (zlibdir): New.  AC_SUBST.
517         (zlibinc): Likewise.
518         Add --with-system-zlib.
519         * Makefile.in: Regenerated.
520         * config.in: Likewise.
521         * configure: Likewise.
522
523 2015-03-19  Nick Clifton  <nickc@redhat.com>
524
525         * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
526
527 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
528             Nick Clifton  <nickc@redhat.com>
529
530         PR binutils/18087
531         * doc/binutils.texi: Note that when objcopy compresses debug
532         sections the compression is only performed if it makes the section
533         smaller.
534
535 2015-03-10  H.J. Lu  <hongjiu.lu@intel.com>
536
537         PR binutils/18101
538         * readelf.c (parse_args): Move nothing to do warning to ...
539         (main): Here.
540
541 2015-03-10  Nick Clifton  <nickc@redhat.com>
542
543         PR binutils/18101
544         * readelf.c (parse_args): Enhance check for nothing to do by
545         accounting for the --wide option.
546
547         PR binutils/17636
548         * objcopy.c (copy_object): Avoid calling fatal as that does not
549         allow the parent to clean up temporary files.
550
551 2015-03-10  Yuri Gribov  <y.gribov@samsung.arm>
552
553         PR ld/16572
554         * readelf.c: Remove support for ELF_ARM_HASENTRY.
555
556 2015-03-05  Nick Clifton  <nickc@redhat.com>
557
558         PR binutils/18064
559         * doc/binutils.texi (objcopy): Extend description of
560         --add-gnu-debuglink option to explain that the separate debug info
561         file must exist.  Add a description of what to do if the debug
562         info file is built in one place but then installed into a separate
563         location.
564
565 2015-03-05  Nick Clifton  <nickc@redhat.com>
566
567         PR binutils/17994
568         * dlltool.c (temp_file_to_remove): New local array.
569         (unlink_temp_files): New functions - unlinks any file in the
570         temp_file_to_remove array, unless dotdeltemps is set.
571         (gen_exp_file): Add temp files to array.
572         (make_head): Likewise.
573         (make_delay_head): Likewise.
574         (make_tail): Likewise.
575         (gen_lib_file): Call unlink_temp_files.
576
577 2015-02-28  Andrew Burgess  <andrew.burgess@embecosm.com>
578
579         * objcopy.c (update_sections): New list.
580         (command_line_switch): Add OPTION_UPDATE_SECTION.
581         (copy_options): Add update-section.
582         (copy_usage): Document new option.
583         (is_update_section): New function.
584         (is_strip_section_1): Add check for attempt to update and remove
585         the same section.
586         (copy_object): Update size and content of requested sections.
587         (skip_section): Don't copy for updated sections.
588         (copy_main): Handle --update-section.
589         * doc/binutils.texi (objcopy): Add description of --update-section
590         option.
591         * NEWS: Mention --update-section option.
592
593 2015-02-26  Nick Clifton  <nickc@redhat.com>
594
595         PR binutils/17512
596         * coffgrok.c (do_type): Check for an out of range tag index.
597         Check for integer overflow computing array dimension.
598         (do_define): Likewise.
599
600 2015-02-26  Andrew Burgess  <andrew.burgess@embecosm.com>
601
602         * objcopy.c (init_section_add): Rename optarg to arg in order to
603         avoid shadowing a global variable.
604
605 2015-02-26  Nick Clifton  <nickc@redhat.com>
606
607         PR binutils/17512
608         * resrc.c (write_rc_messagetable): Tighten check for invalid
609         message lengths.
610
611         * dwarf.c (display_debug_loc): Pacify the undefined behaviour
612         sanitizer by simplifying address difference calculation.
613         (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
614         order to avoid arithmetic overflows.
615         (frame_display_row): Cast cfa_offset before printing it.
616         (display_debug_frames): Likewise.
617         Check for an unexpected segment size.
618         Chnage type of 'l' local to dwarf_vma and cast it back to an int
619         when printing.
620         (process_cu_tu_index): Tighten check for an invalid ncols value.
621         * readelf.c (process_corefile_note_segment): Check for
622         inote.descdata extending beyond the end of the section.
623         (process_v850_notes): Likewise.
624
625 2015-02-26  Terry Guo  <terry.guo@arm.com>
626
627         * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
628         display it.
629
630 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
631
632         * objcopy.c (init_section_add): New function.
633         (section_add_load_file): New function.
634         (copy_main): Make use of new functions.
635
636 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
637
638         * od-elf32_avr.c: Add elf32-avr.h include.
639         (OPT_AVRPROP): Define.
640         (options[]): Add 'avr-prop' entry.
641         (elf32_avr_help): Add avr-prop help text.
642         (elf32_avr_dump_avr_prop): New function.
643         (elf32_avr_dump): Add check for avr-prop.
644
645 2015-02-24  Nick Clifton  <nickc@redhat.com>
646
647         * readelf.c (get_machine_flags): Remove deprecated V850 machine
648         flags.
649         (get_v850_section_type_name): New function.  Handles V850 special
650         sections.
651         (get_section_type_name): Add support for V850.
652         (get_v850_elf_note_type): New function.  Returns the name of a
653         V850 note.
654         (print_v850_note): New function.  Prints a V850 note.
655         (process_v850_notes): New function.  Prints V850 notes.
656         (process_note_sections): Add support for V850.
657
658 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
659
660         PR binutils/17531
661         * readelf.c (process_symbol_table): Declare chained.  Increment it
662         in every loop.  Abort when chained is larger than nchains.  Move
663         error check outside of chain loop.
664
665 2015-02-24  Dmitry Antipov  <dantipov@nvidia.com>
666
667         * readelf.c (find_symbol_for_address): Use a binary search to
668         speed up symbol location.  Skip check for function symbol type.
669         (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
670         list of function symbols.
671         (dump_ia64_unwind): Initialise the funtab and nfuns fields and
672         pass them to find_symbol_for_address.
673         (dump_hppa_unwind): Likewise.
674         (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
675         (dump_arm_unwind): Initialise the funtab and nfuns fields.
676
677 2015-02-24  Nick Clifton  <nickc@redhat.com>
678
679         * objdump.c (dump_section): Extend the warning message displayed
680         when a section cannot be loaded.
681
682 2015-02-21  Mike Frysinger  <vapier@gentoo.org>
683
684         * readelf.c (process_program_headers): Add newline to warning
685         message.
686
687 2015-02-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
688
689         * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
690         NT_S390_VXRS_HIGH.
691
692 2015-02-13  Nick Clifton  <nickc@redhat.com>
693
694         PR binutils/17512
695         * dwarf.c (read_leb128): Fix test for shift becoming too large.
696
697         * coffgrok.c (do_define): Add check for type size overflow.
698         * srconv.c (walk_tree_sfile): Check that enough sections are
699         available before parsing.
700         (prescan): Likewise.
701
702         PR binutils/17531
703         * dwarf.c (display_debug_aranges): Add check for an excessive
704         ar_length value.
705         (process_cu_tu_index): Check for a row * columns sum being too
706         large.
707
708 2015-02-13  Alan Modra  <amodra@gmail.com>
709
710         * dwarf.c: Formatting, whitespace.
711         (process_debug_info): Style fix.
712
713 2015-02-11  Nick Clifton  <nickc@redhat.com>
714
715         * rl78-decode.opc: Add 'a' attribute to instructions that support
716         [HL+0] addressing.
717         * rl78-decode.c: Regenerate.
718         * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
719         addresses.
720
721 2015-02-11  Nick Clifton  <nickc@redhat.com>
722
723         PR binutils/17531
724         * dwarf.c (display_debug_pubnames_worker): Work around compiler
725         bug checking address ranges.
726         (display_debug_frames): Likewise.
727         (display_gdb_index): Likewise.
728         (process_cu_tu_index): Add range check on the ncols value.
729
730 2015-02-10  Nick Clifton  <nickc@redhat.com>
731
732         PR binutils/17512
733         * dwarf.c (eh_addr_size): Use an unsigned type.
734         (size_of_encoded_value): Return an unsigned type.
735         (read_leb128): Break if the shift becomes too big.
736         (process_extended_line_op): Do not read the address if the length
737         is too long.
738         (read_cie): Warn and fail if the pointer size or segment size are
739         too big.
740         * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
741         structure definition.
742         (DWARF2_External_PubNames): Likewise.
743         (DWARF2_External_CompUnit): Likewise.
744         (DWARF2_External_ARange): Likewise.
745         (DWARF2_Internal_LineInfo): Use dwarf_vma type for
746         li_prologue_length.
747         (eh_addr_size): Update prototype.
748
749         PR binutils/17531
750         * dwarf.c (process_debug_info): Zero the debug information array
751         since correct initialisation cannot be relied upon.
752         (process_cu_tu_index): Improve range checks.
753
754         PR binutils/17531
755         * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
756         offset.
757         * readelf.c (dump_relocations): Handle printing offsets which are
758         MIN_INT.
759         (process_corefile_note_segment): Add range check of the namesz
760         field.
761
762 2015-02-09  Mark Wielaard  <mjw@redhat.com>
763
764         * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
765         and DW_LANG_Fortran08.
766
767 2015-02-06  Nick Clifton  <nickc@redhat.com>
768
769         PR binutils/17512
770         * dwarf.c (display_debug_frames): Fix range checks to work on
771         32-bit binaries complied on a 64-bit host.
772
773         PR binutils/17531
774         * dwarf.c (xcmalloc): Fail if the arguments are too big.
775         (xcrealloc): Likewise.
776         (xcalloc2): Likewise.
777         * readelf.c (process_mips_specific): Fail if an option has an
778         invalid size.
779
780 2015-02-05  Alan Modra  <amodra@gmail.com>
781
782         PR binutils/17926
783         * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
784
785 2015-02-04  Nick Clifton  <nickc@redhat.com>
786
787         PR binutils/17531
788         * dwarf.c (read_and_display_attr_value): Test for a block length
789         being so long that it wraps around to before the start of the block.
790         (process_debug_info): Test for section_begin wrapping around to
791         before the start of the section.
792         (display_gdb_index): Test for num_cus being so large that the end
793         address wraps around to before the start of the section.
794         (process_cu_tu_index): Test for j being so large that the section
795         index pool wraps around to before the start of the section.
796
797 2015-02-03  Nick Clifton  <nickc@redhat.com>
798
799         PR binutils/17531
800         * dwarf.c (process_debug_info): Add range check.
801         (display_debug_pubnames_worker): Likewise.
802         (display_gdb_index): Fix range check.
803         (process_cu_tu_index): Add range check.
804         * readelf.c (get_data): Change parameter types from size_t to
805         bfd_size_type.  Add checks for loss of accuracy when casting from
806         bfd_size_type to size_t.
807         (get_dynamic_data): Likewise.
808         (process_section_groups): Limit number of error messages.
809
810 2015-02-03  Nick Clifton  <nickc@redhat.com>
811
812         PR binutils/17512
813         * objdump.c (display_any_bfd): Fail if archives nest too deeply.
814
815 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
816
817         * readelf.c: Add FT32 support.
818
819 2015-01-27  Nick Clifton  <nickc@redhat.com>
820
821         PR binutils/17512
822         * dlltool.c (identify_search_archive): If the last archive was the
823         same as the current archive, terminate the loop.
824
825         * addr2line.c (slurp_symtab): If the symcount is zero, free the
826         symbol table pointer.
827
828         * rcparse.y: Add checks to avoid integer divide by zero.
829         * rescoff.c (read_coff_rsrc): Add check on the size of the
830         resource section.
831         (read_coff_res_dir): Add check on the nesting level.
832         Check for resource names overrunning the buffer.
833         * resrc.c (write_rc_messagetable): Update formatting.
834         Add check of 'elen' being zero.
835
836 2015-01-23  Nick Clifton  <nickc@redhat.com>
837
838         * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
839         by recent delta, when compiling on for a 32-bit host.
840
841 2015-01-21  Nick Clifton  <nickc@redhat.com>
842
843         PR binutils/17512
844         * addr2line.c (main): Call bfd_set_error_program_name.
845         * ar.c (main): Likewise.
846         * coffdump.c (main): Likewise.
847         * cxxfilt.c (main): Likewise.
848         * dlltool.c (main): Likewise.
849         * nlmconv.c (main): Likewise.
850         * nm.c (main): Likewise.
851         * objdump.c (main): Likewise.
852         * size.c (main): Likewise.
853         * srconv.c (main): Likewise.
854         * strings.c (main): Likewise.
855         * sysdump.c (main): Likewise.
856         * windmc.c (main): Likewise.
857         * windres.c (main): Likewise.
858         * objcopy.c (main): Likewise.
859         (copy_relocations_in_section): Check for relocs without associated
860         symbol pointers.
861
862 2015-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
863
864         * MAINTAINERS: Add self to ARM maintainers list.
865
866 2015-01-21  Nick Clifton  <nickc@redhat.com>
867
868         PR binutils/17512
869         * coffgrok.c (do_type): Check that computed ref exists.
870         (doit): Add range checks when computing section for scope.
871
872 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
873
874         * dwarf.c (process_debug_info): Properly check abbrev size.
875
876 2015-01-12  Nick Clifton  <nickc@redhat.com>
877
878         PR binutils/17531
879         * dwarf.c (process_debug_info): Check for abbrev_base being larger
880         than the section size.
881         (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
882         arrays.
883         (xcalloc2): New function.  Like xcalloc, but checks for overflow.
884         (display_debug_addr): Use xcalloc to allocate the debug_addr_info
885         array.  Check for an address_base that is too large.
886
887         * dwarf.h (xcalloc2): Prototype.
888
889 2015-01-12  Alan Modra  <amodra@gmail.com>
890
891         * prdbg.c (print_debugging_info): Don't use void* for function
892         pointer param.
893         * budbg.h (print_debugging_info): Update prototype.
894
895 2015-01-08  Nick Clifton  <nickc@redhat.com>
896
897         PR binutils/17512
898         * ojcopy.c (copy_object): Free the symbol table if no symbols
899         could be loaded.
900         (copy_file): Use bfd_close_all_done to close files that could not
901         be copied.
902
903         * sysdump.c (getINT): Fail if reading off the end of the buffer.
904         Replace call to abort with a call to fatal.
905         (getCHARS): Prevetn reading off the end of the buffer.
906
907         * nlmconv.c (i386_mangle_relocs): Skip relocs without an
908         associated symbol.
909         (powerpc_mangle_relocs): Skip unrecognised relocs.  Check address
910         range before applying a reloc.
911
912 2015-01-07  Nick Clifton  <nickc@redhat.com>
913
914         PR binutils/17512
915         * dlltool.c (scan_obj_file): Break loop if the last archive
916         displayed matches the current archive.
917
918         * objdump.c (display_any_bfd): Add a depth limit to nested archive
919         display in order to avoid infinite loops.
920         * srconv.c: Replace calls to abort with calls to fatal with an
921         error message.
922
923 2015-01-06  Nick Clifton  <nickc@redhat.com>
924
925         PR binutils/17512
926         * coffdump.c (dump_coff_section): Check for a symbol being
927         available before printing its name.
928         (main): Check the return value from coff_grok.
929         * coffgrok.c: Reformat and tidy.
930         Add range checks to most functions.
931         (coff_grok): Return NULL if the input bfd is not in a COFF
932         format.
933         * coffgrok.h: Reformat and tidy.
934         (struct coff_section): Change the nrelocs field to unsigned.
935         * srconv.c (main): Check the return value from coff_grok.
936
937 2015-01-05  Nick Clifton  <nickc@redhat.com>
938
939         PR binutils/17512
940         * nm.c (print_symbol): Add 'is_synthetic' parameter.  Use it to
941         help initialize the info.elfinfo field.
942         (print_size_symbols): Add 'synth_count' parameter.  Use it to set
943         the is_synthetic parameter when calling print_symbol.
944         (print_symbols): Likewise.
945         (display_rel_file): Pass synth_count to printing function.
946         (display_archive): Break loop if the last archive displayed
947         matches the current archive.
948         * size.c (display_archive): Likewise.
949
950 2015-01-05  Nick Clifton  <nickc@redhat.com>
951
952         PR binutils/17531
953         * dwarf.c (alloc_num_debug_info_entries): New variable.
954         (process_debug_info): Set it.  Use it to avoid displaying
955         attributes for which there is no info.
956         (display_debug_abbrev): Check that the debug_info_entry index is
957         valid before using it.
958         (display_loc_list_dwo): Likewise.
959         (process_cu_tu_index): Add range check for an overlarge dw_sect
960         value.
961         (free_debug_memory): Reset alloc_num_debug_info_entries.
962         * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
963         be indentified.
964         (dynamic_section_mips_val): Warn if the timestamp is invalid.
965         (print_mips_got_entry): Add a data_end parameter.  Warn if a read
966         would go beyond the end of the data, and return an error value.
967         (process_mips_specific): Do not read options from beyond the end
968         of the section.
969         Correct code to display optional data at the end of an option.
970         Warn if there are too many GOT symbols.
971         Update calls to print_mips_got_entry, and handle error returns.
972
973 2015-01-05  Daniel Klauer  <daniel.c.klauer@web.de>
974
975         PR binutils/17489
976         * doc/binutils.texi (dlltool): Correct description of --kill-at
977         option.
978
979 2015-01-01  Alan Modra  <amodra@gmail.com>
980
981         * version.c (print_version): Just print current year.
982
983 2015-01-01  Alan Modra  <amodra@gmail.com>
984
985         Update year range in copyright notice of all files.
986
987 For older changes see ChangeLog-2014
988 \f
989 Copyright (C) 2015 Free Software Foundation, Inc.
990
991 Copying and distribution of this file, with or without modification,
992 are permitted in any medium without royalty provided the copyright
993 notice and this notice are preserved.
994
995 Local Variables:
996 mode: change-log
997 left-margin: 8
998 fill-column: 74
999 version-control: never
1000 End: