1 2015-09-25 James Bowman <james.bowman@ftdichip.com>
3 * ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.
5 2015-09-23 Nick Clifton <nickc@redhat.com>
8 * readelf.c (struct elf_section_list): New structure.
9 (symtab_shndx_hdr): Replace with symtab_shndx_list.
10 (get_32bit_elf_symbols): Scan for a symbol index table matching
11 the symbol table in use.
12 (get_64bit_elf_symbols): Likewise.
13 (process_section_headers): Handle multiple symbol index sections.
15 2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17 * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
19 2015-09-10 Erik Ackermann <kurterikackermann@gmail.com>
21 * strings.c: Add -s/--output-separator option to specify custom
23 * NEWS: Mention the new feature.
24 * doc/binutils.text (strings): Document the new command line
27 2015-09-09 Nick Clifton <nickc@redhat.com>
29 * doc/binutils.texi (ar): Remove bogus sentance concerning thin
30 archives and invalid paths.
32 2015-09-03 Nick Clifton <nickc@redhat.com>
35 * readelf.c (get_unwind_section_word): Check for negative offsets
36 and very small sections.
37 (dump_arm_unwind): Warn if the table offset is too large.
39 2015-08-28 H.J. Lu <hongjiu.lu@intel.com>
41 * Makefile.am (TOOL_PROGS): Add readelf.
42 * Makefile.in: Regenerated.
44 2015-08-24 Yaakov Selkowitz <yselkowi@redhat.com>
46 * configure: Regenerate.
48 2015-08-17 Alan Modra <amodra@gmail.com>
50 * configure: Regenerate.
52 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
54 * objcopy.c (is_specified_symbol_predicate): Don't stop at first
55 match. Non-match rules set found to FALSE.
57 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
59 * configure: Regenerate.
61 2015-08-05 Nick Clifton <nickc@redhat.com>
63 * doc/binutils.texi: Document that the --only-keep-debug option
64 to strip and objcopy preserves the section headers of stripped
67 2015-08-04 Yuriy M. Kaminskiy" <yumkam@gmail.com>
68 Tyler Hicks <tyhicks@canonical.com>
71 * readelf.c (process_mips_specific): Fix incorrect escape
74 2015-08-04 Nick Clifton <nickc@redhat.com>
76 * ar.c (extract_file): Free cbuf if the path is invalid.
78 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
80 * configure: Regenerated.
82 2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
84 * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
86 2015-07-22 Alan Modra <amodra@gmail.com>
88 * readelf.c (dump_relocations): Show MIN_INT addends as negative.
90 2015-07-20 Alan Modra <amodra@gmail.com>
92 * doc/Makefile.in: Regenerate.
94 2015-07-16 Alan Modra <amodra@gmail.com>
97 * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
98 (get_64bit_dynamic_section): Likewise.
100 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
102 * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
104 * doc/binutils.texi: Change --compress-debug-sections and
105 --compress-debug-sections=zlib to zlib-gabi.
107 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
110 * objcopy.c (setup_section): Call bfd_convert_section_size
111 to get the output section size.
112 (copy_section): Get the section size from the output section
113 and call bfd_get_full_section_contents to convert section
116 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
118 * readelf.c (dump_section_as_strings): Warn unsupported compress
119 type and corrupted compressed section.
120 (dump_section_as_bytes): Likewise.
121 (load_specific_debug_section): Likewise.
123 2015-07-09 Catherine Moore <clm@codesourcery.com>
125 * readelf.c (print_mips_fp_abi_value): Handle
126 Val_GNU_MIPS_ABI_FP_NAN2008.
128 2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
130 * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
132 2015-06-22 Nick Clifton <nickc@redhat.com>
134 * objdump.c (disassemble_bytes): Set the stop_vma field in the
135 disassemble_info structure when disassembling code sections with
137 * doc/binutils.texi (objdump): Document the discrepancy between -d
140 2015-06-05 Nick Clifton <nickc@redhat.com>
142 * dwarf.c (read_debug_line_header): Use reloc_at to detect
143 incomplete .debug_line headers
145 2015-05-29 Roland McGrath <mcgrathr@google.com>
147 * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
148 GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
150 2015-05-29 Stephen Kitt <steve@sk2.org>
152 * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
153 (main): Fail if the output file specified by the -z option cannot
156 2015-05-18 Nick Clifton <nickc@redhat.com>
159 * ia64-unwind.c (unw_decode): Add end parameter. Pass parameter
160 on to decode functions.
161 (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
162 (UNW_DEC_SPILL_MASK): Add end parameter. Check that unw_rlen does
163 not take us beyond the end of the buffer.
164 * ia64-unwind.h (unw_decode): Update prototype.
165 * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
167 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
169 * readelf.c (dump_section_as_strings): Change pointers from
170 char * to unsigned char *.
172 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
175 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
177 2015-05-15 Nick Clifton <nickc@redhat.com>
179 * readelf.c (options): Add "decompress".
180 (usage): Mention -z/--decompress.
181 (parse_args): Handle -z.
182 (uncompress_section_contents): Move to earlier in the file.
183 (dump_section_as_strings): If requested, decompress the section
185 (dump_section_as_bytes): Likewise.
186 * doc/binutils.texi: Document the new option.
188 2015-05-14 Peter Bergner <bergner@vnet.ibm.com>
190 * MAINTAINERS: Add myself as PPC maintainer.
192 2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
194 * readelf.c (uncompress_section_contents): Add a parameter for
195 uncompressed size. Don't check the zlib header.
196 (load_specific_debug_section): Updated.
198 2015-05-15 Nick Clifton <nickc@redhat.com>
201 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
203 (struct dwarf_section_display): Change bitfield to boolean.
204 (reloc_at): Add prototype.
205 * dwarf.c (display_loc_list): Ignore list terminators if there are
207 (display_debug_loc): Issue a warning if there are relocs against
208 the .debug_loc section.
209 (display_displays): Initialise reloc_info and num_relocs fields.
210 * objdump.c (load_specific_debug_section): Initialise reloc_info
211 and num_relocs fields.
212 (reloc_at): New function.
213 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
215 (reloc_at): New function.
216 (apply_relocations): Add relocs_return and num_relocs_return
217 parameters. Fill them in with the loaded relocs if non-NULL.
218 (dump_section_as_bytes): Update call to apply_relocations.
219 (load_specific_debug_section): Initialise reloc_info and
222 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
224 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
226 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
228 * MAINTAINERS: Add myself as s390 and s390x maintainer.
230 2015-05-12 Stephen Kitt <steve@sk2.org>
232 * dlltool.c (main): Accept -t as an abbreviation for
235 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
237 * dwarf.c (dwarf_regnames_iamcu): New.
238 (init_dwarf_regnames_iamcu): Likewise.
239 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
240 * dwarf.h (init_dwarf_regnames_iamcu): New.
241 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
244 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
246 * elfedit.c (enum elfclass): New.
247 (input_elf_class): Change type to enum elfclass.
248 (output_elf_class): New.
249 (elf_class): Change return type to enum elfclass. Support EM_386
251 (update_elf_header): Check if input and output ELF classes match.
252 (elf_machine): Support EM_386 and EM_IAMCU.
253 (main): Update input_elf_class. Set output_elf_class.
254 * doc/binutils.texi: Update elfedit.
256 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
258 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
259 * readelf.c (guess_is_rela): Likewise.
260 (dump_relocations): Likewise.
261 (get_machine_name): Likewise.
262 (get_elf_section_flags): Likewise.
263 (process_section_headers): Likewise.
264 (is_32bit_abs_reloc): Likewise.
265 (is_32bit_pcrel_reloc): Likewise.
267 2015-04-30 Nick Clifton <nickc@redhat.com>
269 * readelf.c (get_machine_flags): Add description of MeP flags.
271 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
273 * readelf.c (display_s390_gnu_attribute): New function.
274 (process_s390_specific): New function.
275 (process_arch_specific): Call process_s390_specific.
277 2015-04-24 Nick Clifton <nickc@redhat.com>
280 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
281 * readelf.c (uncompress_section_contents): Zero initialise the
284 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
287 * objcopy.c (setup_section): Copy compress status.
289 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
292 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
294 2015-04-14 Nick Clifton <nickc@redhat.com>
296 * readelf.c (target_specific_reloc_handling): Add code to handle
299 2015-04-13 Doug Evans <dje@google.com>
302 * readelf.c (printable_section_name): Constify sec argument.
303 (apply_relocations): Ditto. New arg "size". All callers updated.
304 (load_specific_debug_section): Constify sec argument.
305 Remove side-effect of modifying sec->sh_size.
307 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
309 * objcopy.c (do_debug_sections): Use bit patterns.
310 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
311 and compress_gabi_zlib on non-ELF input.
312 (copy_file): Don't check non-ELF input here.
314 2015-04-09 Nick Clifton <nickc@redhat.com>
316 * readelf.c (get_machine_flags): Report the setting of the string
319 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
321 * objcopy.c (do_debug_sections): Add compress_zlib,
322 compress_gnu_zlib and compress_gabi_zlib.
323 (copy_options): Use optional_argument on compress-debug-sections.
324 (copy_usage): Update --compress-debug-sections.
325 (copy_file): Handle compress_zlib, compress_gnu_zlib and
328 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
329 * doc/binutils.texi: Document
330 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
332 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
334 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
335 --interleave[=<number>].
337 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
339 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
340 (get_compression_header): New.
341 (process_section_headers): Dump compression header if needed.
342 (uncompress_section_contents): Don't free compressed_buffer here.
343 (load_specific_debug_section): Free the compressed buffer, update
344 the section buffer and the section size if uncompress is
347 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
349 * configure: Regenerated.
351 2015-04-02 Mike Frysinger <vapier@gentoo.org>
353 * MAINTAINERS: Update my e-mail address.
355 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
357 * configure: Regenerated.
359 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
361 * configure.ac: Revert the AM_ZLIB change.
362 * Makefile.in: Regenerated.
363 * aclocal.m4: Likewise.
364 * configure: Likewise.
366 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
368 * Makefile.am (ZLIB): New.
370 (AM_CFLAGS): Add $(ZLIBINC).
371 (readelf_LDADD): Add $(ZLIB).
372 * configure.ac (AM_ZLIB): Removed.
373 (zlibdir): New. AC_SUBST.
375 Add --with-system-zlib.
376 * Makefile.in: Regenerated.
377 * config.in: Likewise.
378 * configure: Likewise.
380 2015-03-19 Nick Clifton <nickc@redhat.com>
382 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
384 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
385 Nick Clifton <nickc@redhat.com>
388 * doc/binutils.texi: Note that when objcopy compresses debug
389 sections the compression is only performed if it makes the section
392 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
395 * readelf.c (parse_args): Move nothing to do warning to ...
398 2015-03-10 Nick Clifton <nickc@redhat.com>
401 * readelf.c (parse_args): Enhance check for nothing to do by
402 accounting for the --wide option.
405 * objcopy.c (copy_object): Avoid calling fatal as that does not
406 allow the parent to clean up temporary files.
408 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
411 * readelf.c: Remove support for ELF_ARM_HASENTRY.
413 2015-03-05 Nick Clifton <nickc@redhat.com>
416 * doc/binutils.texi (objcopy): Extend description of
417 --add-gnu-debuglink option to explain that the separate debug info
418 file must exist. Add a description of what to do if the debug
419 info file is built in one place but then installed into a separate
422 2015-03-05 Nick Clifton <nickc@redhat.com>
425 * dlltool.c (temp_file_to_remove): New local array.
426 (unlink_temp_files): New functions - unlinks any file in the
427 temp_file_to_remove array, unless dotdeltemps is set.
428 (gen_exp_file): Add temp files to array.
429 (make_head): Likewise.
430 (make_delay_head): Likewise.
431 (make_tail): Likewise.
432 (gen_lib_file): Call unlink_temp_files.
434 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
436 * objcopy.c (update_sections): New list.
437 (command_line_switch): Add OPTION_UPDATE_SECTION.
438 (copy_options): Add update-section.
439 (copy_usage): Document new option.
440 (is_update_section): New function.
441 (is_strip_section_1): Add check for attempt to update and remove
443 (copy_object): Update size and content of requested sections.
444 (skip_section): Don't copy for updated sections.
445 (copy_main): Handle --update-section.
446 * doc/binutils.texi (objcopy): Add description of --update-section
448 * NEWS: Mention --update-section option.
450 2015-02-26 Nick Clifton <nickc@redhat.com>
453 * coffgrok.c (do_type): Check for an out of range tag index.
454 Check for integer overflow computing array dimension.
455 (do_define): Likewise.
457 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
459 * objcopy.c (init_section_add): Rename optarg to arg in order to
460 avoid shadowing a global variable.
462 2015-02-26 Nick Clifton <nickc@redhat.com>
465 * resrc.c (write_rc_messagetable): Tighten check for invalid
468 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
469 sanitizer by simplifying address difference calculation.
470 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
471 order to avoid arithmetic overflows.
472 (frame_display_row): Cast cfa_offset before printing it.
473 (display_debug_frames): Likewise.
474 Check for an unexpected segment size.
475 Chnage type of 'l' local to dwarf_vma and cast it back to an int
477 (process_cu_tu_index): Tighten check for an invalid ncols value.
478 * readelf.c (process_corefile_note_segment): Check for
479 inote.descdata extending beyond the end of the section.
480 (process_v850_notes): Likewise.
482 2015-02-26 Terry Guo <terry.guo@arm.com>
484 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
487 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
489 * objcopy.c (init_section_add): New function.
490 (section_add_load_file): New function.
491 (copy_main): Make use of new functions.
493 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
495 * od-elf32_avr.c: Add elf32-avr.h include.
496 (OPT_AVRPROP): Define.
497 (options[]): Add 'avr-prop' entry.
498 (elf32_avr_help): Add avr-prop help text.
499 (elf32_avr_dump_avr_prop): New function.
500 (elf32_avr_dump): Add check for avr-prop.
502 2015-02-24 Nick Clifton <nickc@redhat.com>
504 * readelf.c (get_machine_flags): Remove deprecated V850 machine
506 (get_v850_section_type_name): New function. Handles V850 special
508 (get_section_type_name): Add support for V850.
509 (get_v850_elf_note_type): New function. Returns the name of a
511 (print_v850_note): New function. Prints a V850 note.
512 (process_v850_notes): New function. Prints V850 notes.
513 (process_note_sections): Add support for V850.
515 2015-02-24 Mike Frysinger <vapier@gentoo.org>
518 * readelf.c (process_symbol_table): Declare chained. Increment it
519 in every loop. Abort when chained is larger than nchains. Move
520 error check outside of chain loop.
522 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
524 * readelf.c (find_symbol_for_address): Use a binary search to
525 speed up symbol location. Skip check for function symbol type.
526 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
527 list of function symbols.
528 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
529 pass them to find_symbol_for_address.
530 (dump_hppa_unwind): Likewise.
531 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
532 (dump_arm_unwind): Initialise the funtab and nfuns fields.
534 2015-02-24 Nick Clifton <nickc@redhat.com>
536 * objdump.c (dump_section): Extend the warning message displayed
537 when a section cannot be loaded.
539 2015-02-21 Mike Frysinger <vapier@gentoo.org>
541 * readelf.c (process_program_headers): Add newline to warning
544 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
546 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
549 2015-02-13 Nick Clifton <nickc@redhat.com>
552 * dwarf.c (read_leb128): Fix test for shift becoming too large.
554 * coffgrok.c (do_define): Add check for type size overflow.
555 * srconv.c (walk_tree_sfile): Check that enough sections are
556 available before parsing.
560 * dwarf.c (display_debug_aranges): Add check for an excessive
562 (process_cu_tu_index): Check for a row * columns sum being too
565 2015-02-13 Alan Modra <amodra@gmail.com>
567 * dwarf.c: Formatting, whitespace.
568 (process_debug_info): Style fix.
570 2015-02-11 Nick Clifton <nickc@redhat.com>
572 * rl78-decode.opc: Add 'a' attribute to instructions that support
574 * rl78-decode.c: Regenerate.
575 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
578 2015-02-11 Nick Clifton <nickc@redhat.com>
581 * dwarf.c (display_debug_pubnames_worker): Work around compiler
582 bug checking address ranges.
583 (display_debug_frames): Likewise.
584 (display_gdb_index): Likewise.
585 (process_cu_tu_index): Add range check on the ncols value.
587 2015-02-10 Nick Clifton <nickc@redhat.com>
590 * dwarf.c (eh_addr_size): Use an unsigned type.
591 (size_of_encoded_value): Return an unsigned type.
592 (read_leb128): Break if the shift becomes too big.
593 (process_extended_line_op): Do not read the address if the length
595 (read_cie): Warn and fail if the pointer size or segment size are
597 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
598 structure definition.
599 (DWARF2_External_PubNames): Likewise.
600 (DWARF2_External_CompUnit): Likewise.
601 (DWARF2_External_ARange): Likewise.
602 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
604 (eh_addr_size): Update prototype.
607 * dwarf.c (process_debug_info): Zero the debug information array
608 since correct initialisation cannot be relied upon.
609 (process_cu_tu_index): Improve range checks.
612 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
614 * readelf.c (dump_relocations): Handle printing offsets which are
616 (process_corefile_note_segment): Add range check of the namesz
619 2015-02-09 Mark Wielaard <mjw@redhat.com>
621 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
622 and DW_LANG_Fortran08.
624 2015-02-06 Nick Clifton <nickc@redhat.com>
627 * dwarf.c (display_debug_frames): Fix range checks to work on
628 32-bit binaries complied on a 64-bit host.
631 * dwarf.c (xcmalloc): Fail if the arguments are too big.
632 (xcrealloc): Likewise.
633 (xcalloc2): Likewise.
634 * readelf.c (process_mips_specific): Fail if an option has an
637 2015-02-05 Alan Modra <amodra@gmail.com>
640 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
642 2015-02-04 Nick Clifton <nickc@redhat.com>
645 * dwarf.c (read_and_display_attr_value): Test for a block length
646 being so long that it wraps around to before the start of the block.
647 (process_debug_info): Test for section_begin wrapping around to
648 before the start of the section.
649 (display_gdb_index): Test for num_cus being so large that the end
650 address wraps around to before the start of the section.
651 (process_cu_tu_index): Test for j being so large that the section
652 index pool wraps around to before the start of the section.
654 2015-02-03 Nick Clifton <nickc@redhat.com>
657 * dwarf.c (process_debug_info): Add range check.
658 (display_debug_pubnames_worker): Likewise.
659 (display_gdb_index): Fix range check.
660 (process_cu_tu_index): Add range check.
661 * readelf.c (get_data): Change parameter types from size_t to
662 bfd_size_type. Add checks for loss of accuracy when casting from
663 bfd_size_type to size_t.
664 (get_dynamic_data): Likewise.
665 (process_section_groups): Limit number of error messages.
667 2015-02-03 Nick Clifton <nickc@redhat.com>
670 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
672 2015-01-28 James Bowman <james.bowman@ftdichip.com>
674 * readelf.c: Add FT32 support.
676 2015-01-27 Nick Clifton <nickc@redhat.com>
679 * dlltool.c (identify_search_archive): If the last archive was the
680 same as the current archive, terminate the loop.
682 * addr2line.c (slurp_symtab): If the symcount is zero, free the
683 symbol table pointer.
685 * rcparse.y: Add checks to avoid integer divide by zero.
686 * rescoff.c (read_coff_rsrc): Add check on the size of the
688 (read_coff_res_dir): Add check on the nesting level.
689 Check for resource names overrunning the buffer.
690 * resrc.c (write_rc_messagetable): Update formatting.
691 Add check of 'elen' being zero.
693 2015-01-23 Nick Clifton <nickc@redhat.com>
695 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
696 by recent delta, when compiling on for a 32-bit host.
698 2015-01-21 Nick Clifton <nickc@redhat.com>
701 * addr2line.c (main): Call bfd_set_error_program_name.
702 * ar.c (main): Likewise.
703 * coffdump.c (main): Likewise.
704 * cxxfilt.c (main): Likewise.
705 * dlltool.c (main): Likewise.
706 * nlmconv.c (main): Likewise.
707 * nm.c (main): Likewise.
708 * objdump.c (main): Likewise.
709 * size.c (main): Likewise.
710 * srconv.c (main): Likewise.
711 * strings.c (main): Likewise.
712 * sysdump.c (main): Likewise.
713 * windmc.c (main): Likewise.
714 * windres.c (main): Likewise.
715 * objcopy.c (main): Likewise.
716 (copy_relocations_in_section): Check for relocs without associated
719 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
721 * MAINTAINERS: Add self to ARM maintainers list.
723 2015-01-21 Nick Clifton <nickc@redhat.com>
726 * coffgrok.c (do_type): Check that computed ref exists.
727 (doit): Add range checks when computing section for scope.
729 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
731 * dwarf.c (process_debug_info): Properly check abbrev size.
733 2015-01-12 Nick Clifton <nickc@redhat.com>
736 * dwarf.c (process_debug_info): Check for abbrev_base being larger
737 than the section size.
738 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
740 (xcalloc2): New function. Like xcalloc, but checks for overflow.
741 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
742 array. Check for an address_base that is too large.
744 * dwarf.h (xcalloc2): Prototype.
746 2015-01-12 Alan Modra <amodra@gmail.com>
748 * prdbg.c (print_debugging_info): Don't use void* for function
750 * budbg.h (print_debugging_info): Update prototype.
752 2015-01-08 Nick Clifton <nickc@redhat.com>
755 * ojcopy.c (copy_object): Free the symbol table if no symbols
757 (copy_file): Use bfd_close_all_done to close files that could not
760 * sysdump.c (getINT): Fail if reading off the end of the buffer.
761 Replace call to abort with a call to fatal.
762 (getCHARS): Prevetn reading off the end of the buffer.
764 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
766 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
767 range before applying a reloc.
769 2015-01-07 Nick Clifton <nickc@redhat.com>
772 * dlltool.c (scan_obj_file): Break loop if the last archive
773 displayed matches the current archive.
775 * objdump.c (display_any_bfd): Add a depth limit to nested archive
776 display in order to avoid infinite loops.
777 * srconv.c: Replace calls to abort with calls to fatal with an
780 2015-01-06 Nick Clifton <nickc@redhat.com>
783 * coffdump.c (dump_coff_section): Check for a symbol being
784 available before printing its name.
785 (main): Check the return value from coff_grok.
786 * coffgrok.c: Reformat and tidy.
787 Add range checks to most functions.
788 (coff_grok): Return NULL if the input bfd is not in a COFF
790 * coffgrok.h: Reformat and tidy.
791 (struct coff_section): Change the nrelocs field to unsigned.
792 * srconv.c (main): Check the return value from coff_grok.
794 2015-01-05 Nick Clifton <nickc@redhat.com>
797 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
798 help initialize the info.elfinfo field.
799 (print_size_symbols): Add 'synth_count' parameter. Use it to set
800 the is_synthetic parameter when calling print_symbol.
801 (print_symbols): Likewise.
802 (display_rel_file): Pass synth_count to printing function.
803 (display_archive): Break loop if the last archive displayed
804 matches the current archive.
805 * size.c (display_archive): Likewise.
807 2015-01-05 Nick Clifton <nickc@redhat.com>
810 * dwarf.c (alloc_num_debug_info_entries): New variable.
811 (process_debug_info): Set it. Use it to avoid displaying
812 attributes for which there is no info.
813 (display_debug_abbrev): Check that the debug_info_entry index is
814 valid before using it.
815 (display_loc_list_dwo): Likewise.
816 (process_cu_tu_index): Add range check for an overlarge dw_sect
818 (free_debug_memory): Reset alloc_num_debug_info_entries.
819 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
821 (dynamic_section_mips_val): Warn if the timestamp is invalid.
822 (print_mips_got_entry): Add a data_end parameter. Warn if a read
823 would go beyond the end of the data, and return an error value.
824 (process_mips_specific): Do not read options from beyond the end
826 Correct code to display optional data at the end of an option.
827 Warn if there are too many GOT symbols.
828 Update calls to print_mips_got_entry, and handle error returns.
830 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
833 * doc/binutils.texi (dlltool): Correct description of --kill-at
836 2015-01-01 Alan Modra <amodra@gmail.com>
838 * version.c (print_version): Just print current year.
840 2015-01-01 Alan Modra <amodra@gmail.com>
842 Update year range in copyright notice of all files.
844 For older changes see ChangeLog-2014
846 Copyright (C) 2015 Free Software Foundation, Inc.
848 Copying and distribution of this file, with or without modification,
849 are permitted in any medium without royalty provided the copyright
850 notice and this notice are preserved.
856 version-control: never