1 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
4 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
6 * doc/binutils.texi: Fix a typo.
8 2016-01-25 Tristan Gingold <gingold@adacore.com>
10 * configure: Regenerate.
12 2016-01-25 Tristan Gingold <gingold@adacore.com>
14 * configure: Regenerate.
16 2016-01-18 Alan Modra <amodra@gmail.com>
18 * configure: Regenerate.
20 2015-12-10 Alan Modra <amodra@gmail.com>
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
27 (display_debug_ranges): Likewise.
29 2015-11-25 Tejas Belagod <tejas.belagod@arm.com>
31 Backport from mainline:
32 2015-11-20 Ronald Hoogenboom <hoogenboom30@zonnet.nl>
34 * objcopy.c (parse_symflags): Use xstrndup in place of strndup.
35 (copy_main): Likewise.
37 2015-11-20 Nick Clifton <nickc@redhat.com>
39 * po/ca.po: New Catalan translation.
40 * configure.ac (ALL_LINGUAS): Add ca.
41 * configure: Regenerate.
43 2015-11-13 Tristan Gingold <gingold@adacore.com>
45 * configure: Regenerate.
47 2015-11-13 Tristan Gingold <gingold@adacore.com>
49 * configure: Regenerate.
51 2015-11-13 Tristan Gingold <gingold@adacore.com>
53 * NEWS: Add marker for 2.26.
55 2015-11-09 Dominik Vogt <vogt@linux.vnet.ibm.com>
57 * dwarf.c (read_leb128): Fix left shift of negative value.
59 2015-11-03 Alan Modra <amodra@gmail.com>
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.
68 2015-10-30 Nick Clifton <nickc@redhat.com>
70 * po/zh_CN.po: Updated (simplified) Chinese translation.
72 2015-10-27 Stephen Fisher <sfisher@panix.com>
74 * binutils.c (process_netbsd_elf_note): New function.
75 (process_note): Call the new function for NetBSD core notes.
77 2015-10-22 Hans-Peter Nilsson <hp@bitrange.com>
79 * objcopy.c (setup_section): Don't omit bfd_copy_private_bfd_data
80 call when extract_symbol.
82 2015-10-21 Ronald Hoogenboom <rhoogenboom@irdeto.com>
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.
96 2015-10-18 Paul Pluzhnikov <ppluzhnikov@google.com>
99 * readelf.c (print_core_note): Fix off-by-one bug.
101 2015-10-15 Alan Modra <amodra@gmail.com>
103 * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data
104 call when extract_symbol.
106 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
108 * od-elf32_avr.c (elf32_avr_dump_avr_prop): Fix printing of align
109 specific data, fix formatting for align and org data.
111 2015-09-01 Claudiu Zissulescu <claziss@synopsys.com>
112 Cupertino Miranda <cmiranda@synopsys.com>
114 * readelf.c (get_machine_name): Remove A5 reference. Add ARCompact
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.
124 2015-09-29 Andrew Stubbs <ams@codesourcery.com>
125 H.J. Lu <hongjiu.lu@intel.com>
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.
133 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
136 * objcopy.c (copy_object): Adjust the output section size to
137 skip gap fills between sections when copying from input sections
140 2015-09-28 Nick Clifton <nickc@redhat.com>
142 * po/fr.po: Updated French translation.
144 2015-09-25 James Bowman <james.bowman@ftdichip.com>
146 * ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.
148 2015-09-23 Nick Clifton <nickc@redhat.com>
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.
158 2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
160 * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
162 2015-09-10 Erik Ackermann <kurterikackermann@gmail.com>
164 * strings.c: Add -s/--output-separator option to specify custom
166 * NEWS: Mention the new feature.
167 * doc/binutils.text (strings): Document the new command line
170 2015-09-09 Nick Clifton <nickc@redhat.com>
172 * doc/binutils.texi (ar): Remove bogus sentance concerning thin
173 archives and invalid paths.
175 2015-09-03 Nick Clifton <nickc@redhat.com>
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.
182 2015-08-28 H.J. Lu <hongjiu.lu@intel.com>
184 * Makefile.am (TOOL_PROGS): Add readelf.
185 * Makefile.in: Regenerated.
187 2015-08-24 Yaakov Selkowitz <yselkowi@redhat.com>
189 * configure: Regenerate.
191 2015-08-17 Alan Modra <amodra@gmail.com>
193 * configure: Regenerate.
195 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
197 * objcopy.c (is_specified_symbol_predicate): Don't stop at first
198 match. Non-match rules set found to FALSE.
200 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
202 * configure: Regenerate.
204 2015-08-05 Nick Clifton <nickc@redhat.com>
206 * doc/binutils.texi: Document that the --only-keep-debug option
207 to strip and objcopy preserves the section headers of stripped
210 2015-08-04 Yuriy M. Kaminskiy" <yumkam@gmail.com>
211 Tyler Hicks <tyhicks@canonical.com>
214 * readelf.c (process_mips_specific): Fix incorrect escape
217 2015-08-04 Nick Clifton <nickc@redhat.com>
219 * ar.c (extract_file): Free cbuf if the path is invalid.
221 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
223 * configure: Regenerated.
225 2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
227 * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
229 2015-07-22 Alan Modra <amodra@gmail.com>
231 * readelf.c (dump_relocations): Show MIN_INT addends as negative.
233 2015-07-20 Alan Modra <amodra@gmail.com>
235 * doc/Makefile.in: Regenerate.
237 2015-07-16 Alan Modra <amodra@gmail.com>
240 * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
241 (get_64bit_dynamic_section): Likewise.
243 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
245 * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
247 * doc/binutils.texi: Change --compress-debug-sections and
248 --compress-debug-sections=zlib to zlib-gabi.
250 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
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
259 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
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.
266 2015-07-09 Catherine Moore <clm@codesourcery.com>
268 * readelf.c (print_mips_fp_abi_value): Handle
269 Val_GNU_MIPS_ABI_FP_NAN2008.
271 2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
273 * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
275 2015-06-22 Nick Clifton <nickc@redhat.com>
277 * objdump.c (disassemble_bytes): Set the stop_vma field in the
278 disassemble_info structure when disassembling code sections with
280 * doc/binutils.texi (objdump): Document the discrepancy between -d
283 2015-06-05 Nick Clifton <nickc@redhat.com>
285 * dwarf.c (read_debug_line_header): Use reloc_at to detect
286 incomplete .debug_line headers
288 2015-05-29 Roland McGrath <mcgrathr@google.com>
290 * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
291 GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
293 2015-05-29 Stephen Kitt <steve@sk2.org>
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
299 2015-05-18 Nick Clifton <nickc@redhat.com>
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.
310 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
312 * readelf.c (dump_section_as_strings): Change pointers from
313 char * to unsigned char *.
315 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
318 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
320 2015-05-15 Nick Clifton <nickc@redhat.com>
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
328 (dump_section_as_bytes): Likewise.
329 * doc/binutils.texi: Document the new option.
331 2015-05-14 Peter Bergner <bergner@vnet.ibm.com>
333 * MAINTAINERS: Add myself as PPC maintainer.
335 2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
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.
341 2015-05-15 Nick Clifton <nickc@redhat.com>
344 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
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
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
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
365 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
367 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
369 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
371 * MAINTAINERS: Add myself as s390 and s390x maintainer.
373 2015-05-12 Stephen Kitt <steve@sk2.org>
375 * dlltool.c (main): Accept -t as an abbreviation for
378 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
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
387 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
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
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.
399 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
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.
410 2015-04-30 Nick Clifton <nickc@redhat.com>
412 * readelf.c (get_machine_flags): Add description of MeP flags.
414 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
416 * readelf.c (display_s390_gnu_attribute): New function.
417 (process_s390_specific): New function.
418 (process_arch_specific): Call process_s390_specific.
420 2015-04-24 Nick Clifton <nickc@redhat.com>
423 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
424 * readelf.c (uncompress_section_contents): Zero initialise the
427 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
430 * objcopy.c (setup_section): Copy compress status.
432 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
435 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
437 2015-04-14 Nick Clifton <nickc@redhat.com>
439 * readelf.c (target_specific_reloc_handling): Add code to handle
442 2015-04-13 Doug Evans <dje@google.com>
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.
450 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
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.
457 2015-04-09 Nick Clifton <nickc@redhat.com>
459 * readelf.c (get_machine_flags): Report the setting of the string
462 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
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
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}.
475 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
477 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
478 --interleave[=<number>].
480 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
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
490 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
492 * configure: Regenerated.
494 2015-04-02 Mike Frysinger <vapier@gentoo.org>
496 * MAINTAINERS: Update my e-mail address.
498 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
500 * configure: Regenerated.
502 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
504 * configure.ac: Revert the AM_ZLIB change.
505 * Makefile.in: Regenerated.
506 * aclocal.m4: Likewise.
507 * configure: Likewise.
509 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
511 * Makefile.am (ZLIB): New.
513 (AM_CFLAGS): Add $(ZLIBINC).
514 (readelf_LDADD): Add $(ZLIB).
515 * configure.ac (AM_ZLIB): Removed.
516 (zlibdir): New. AC_SUBST.
518 Add --with-system-zlib.
519 * Makefile.in: Regenerated.
520 * config.in: Likewise.
521 * configure: Likewise.
523 2015-03-19 Nick Clifton <nickc@redhat.com>
525 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
527 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
528 Nick Clifton <nickc@redhat.com>
531 * doc/binutils.texi: Note that when objcopy compresses debug
532 sections the compression is only performed if it makes the section
535 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
538 * readelf.c (parse_args): Move nothing to do warning to ...
541 2015-03-10 Nick Clifton <nickc@redhat.com>
544 * readelf.c (parse_args): Enhance check for nothing to do by
545 accounting for the --wide option.
548 * objcopy.c (copy_object): Avoid calling fatal as that does not
549 allow the parent to clean up temporary files.
551 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
554 * readelf.c: Remove support for ELF_ARM_HASENTRY.
556 2015-03-05 Nick Clifton <nickc@redhat.com>
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
565 2015-03-05 Nick Clifton <nickc@redhat.com>
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.
577 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
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
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
591 * NEWS: Mention --update-section option.
593 2015-02-26 Nick Clifton <nickc@redhat.com>
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.
600 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
602 * objcopy.c (init_section_add): Rename optarg to arg in order to
603 avoid shadowing a global variable.
605 2015-02-26 Nick Clifton <nickc@redhat.com>
608 * resrc.c (write_rc_messagetable): Tighten check for invalid
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
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.
625 2015-02-26 Terry Guo <terry.guo@arm.com>
627 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
630 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
632 * objcopy.c (init_section_add): New function.
633 (section_add_load_file): New function.
634 (copy_main): Make use of new functions.
636 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
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.
645 2015-02-24 Nick Clifton <nickc@redhat.com>
647 * readelf.c (get_machine_flags): Remove deprecated V850 machine
649 (get_v850_section_type_name): New function. Handles V850 special
651 (get_section_type_name): Add support for V850.
652 (get_v850_elf_note_type): New function. Returns the name of a
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.
658 2015-02-24 Mike Frysinger <vapier@gentoo.org>
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.
665 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
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.
677 2015-02-24 Nick Clifton <nickc@redhat.com>
679 * objdump.c (dump_section): Extend the warning message displayed
680 when a section cannot be loaded.
682 2015-02-21 Mike Frysinger <vapier@gentoo.org>
684 * readelf.c (process_program_headers): Add newline to warning
687 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
689 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
692 2015-02-13 Nick Clifton <nickc@redhat.com>
695 * dwarf.c (read_leb128): Fix test for shift becoming too large.
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.
703 * dwarf.c (display_debug_aranges): Add check for an excessive
705 (process_cu_tu_index): Check for a row * columns sum being too
708 2015-02-13 Alan Modra <amodra@gmail.com>
710 * dwarf.c: Formatting, whitespace.
711 (process_debug_info): Style fix.
713 2015-02-11 Nick Clifton <nickc@redhat.com>
715 * rl78-decode.opc: Add 'a' attribute to instructions that support
717 * rl78-decode.c: Regenerate.
718 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
721 2015-02-11 Nick Clifton <nickc@redhat.com>
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.
730 2015-02-10 Nick Clifton <nickc@redhat.com>
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
738 (read_cie): Warn and fail if the pointer size or segment size are
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
747 (eh_addr_size): Update prototype.
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.
755 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
757 * readelf.c (dump_relocations): Handle printing offsets which are
759 (process_corefile_note_segment): Add range check of the namesz
762 2015-02-09 Mark Wielaard <mjw@redhat.com>
764 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
765 and DW_LANG_Fortran08.
767 2015-02-06 Nick Clifton <nickc@redhat.com>
770 * dwarf.c (display_debug_frames): Fix range checks to work on
771 32-bit binaries complied on a 64-bit host.
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
780 2015-02-05 Alan Modra <amodra@gmail.com>
783 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
785 2015-02-04 Nick Clifton <nickc@redhat.com>
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.
797 2015-02-03 Nick Clifton <nickc@redhat.com>
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.
810 2015-02-03 Nick Clifton <nickc@redhat.com>
813 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
815 2015-01-28 James Bowman <james.bowman@ftdichip.com>
817 * readelf.c: Add FT32 support.
819 2015-01-27 Nick Clifton <nickc@redhat.com>
822 * dlltool.c (identify_search_archive): If the last archive was the
823 same as the current archive, terminate the loop.
825 * addr2line.c (slurp_symtab): If the symcount is zero, free the
826 symbol table pointer.
828 * rcparse.y: Add checks to avoid integer divide by zero.
829 * rescoff.c (read_coff_rsrc): Add check on the size of the
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.
836 2015-01-23 Nick Clifton <nickc@redhat.com>
838 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
839 by recent delta, when compiling on for a 32-bit host.
841 2015-01-21 Nick Clifton <nickc@redhat.com>
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
862 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
864 * MAINTAINERS: Add self to ARM maintainers list.
866 2015-01-21 Nick Clifton <nickc@redhat.com>
869 * coffgrok.c (do_type): Check that computed ref exists.
870 (doit): Add range checks when computing section for scope.
872 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
874 * dwarf.c (process_debug_info): Properly check abbrev size.
876 2015-01-12 Nick Clifton <nickc@redhat.com>
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
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.
887 * dwarf.h (xcalloc2): Prototype.
889 2015-01-12 Alan Modra <amodra@gmail.com>
891 * prdbg.c (print_debugging_info): Don't use void* for function
893 * budbg.h (print_debugging_info): Update prototype.
895 2015-01-08 Nick Clifton <nickc@redhat.com>
898 * ojcopy.c (copy_object): Free the symbol table if no symbols
900 (copy_file): Use bfd_close_all_done to close files that could not
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.
907 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
909 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
910 range before applying a reloc.
912 2015-01-07 Nick Clifton <nickc@redhat.com>
915 * dlltool.c (scan_obj_file): Break loop if the last archive
916 displayed matches the current archive.
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
923 2015-01-06 Nick Clifton <nickc@redhat.com>
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
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.
937 2015-01-05 Nick Clifton <nickc@redhat.com>
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.
950 2015-01-05 Nick Clifton <nickc@redhat.com>
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
961 (free_debug_memory): Reset alloc_num_debug_info_entries.
962 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
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
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.
973 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
976 * doc/binutils.texi (dlltool): Correct description of --kill-at
979 2015-01-01 Alan Modra <amodra@gmail.com>
981 * version.c (print_version): Just print current year.
983 2015-01-01 Alan Modra <amodra@gmail.com>
985 Update year range in copyright notice of all files.
987 For older changes see ChangeLog-2014
989 Copyright (C) 2015 Free Software Foundation, Inc.
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.
999 version-control: never