1 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
3 * objcopy.c (is_specified_symbol_predicate): Don't stop at first
4 match. Non-match rules set found to FALSE.
6 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
8 * configure: Regenerate.
10 2015-08-05 Nick Clifton <nickc@redhat.com>
12 * doc/binutils.texi: Document that the --only-keep-debug option
13 to strip and objcopy preserves the section headers of stripped
16 2015-08-04 Yuriy M. Kaminskiy" <yumkam@gmail.com>
17 Tyler Hicks <tyhicks@canonical.com>
20 * readelf.c (process_mips_specific): Fix incorrect escape
23 2015-08-04 Nick Clifton <nickc@redhat.com>
25 * ar.c (extract_file): Free cbuf if the path is invalid.
27 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
29 * configure: Regenerated.
31 2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
33 * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
35 2015-07-22 Alan Modra <amodra@gmail.com>
37 * readelf.c (dump_relocations): Show MIN_INT addends as negative.
39 2015-07-20 Alan Modra <amodra@gmail.com>
41 * doc/Makefile.in: Regenerate.
43 2015-07-16 Alan Modra <amodra@gmail.com>
46 * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
47 (get_64bit_dynamic_section): Likewise.
49 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
51 * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
53 * doc/binutils.texi: Change --compress-debug-sections and
54 --compress-debug-sections=zlib to zlib-gabi.
56 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
59 * objcopy.c (setup_section): Call bfd_convert_section_size
60 to get the output section size.
61 (copy_section): Get the section size from the output section
62 and call bfd_get_full_section_contents to convert section
65 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
67 * readelf.c (dump_section_as_strings): Warn unsupported compress
68 type and corrupted compressed section.
69 (dump_section_as_bytes): Likewise.
70 (load_specific_debug_section): Likewise.
72 2015-07-09 Catherine Moore <clm@codesourcery.com>
74 * readelf.c (print_mips_fp_abi_value): Handle
75 Val_GNU_MIPS_ABI_FP_NAN2008.
77 2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
79 * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
81 2015-06-22 Nick Clifton <nickc@redhat.com>
83 * objdump.c (disassemble_bytes): Set the stop_vma field in the
84 disassemble_info structure when disassembling code sections with
86 * doc/binutils.texi (objdump): Document the discrepancy between -d
89 2015-06-05 Nick Clifton <nickc@redhat.com>
91 * dwarf.c (read_debug_line_header): Use reloc_at to detect
92 incomplete .debug_line headers
94 2015-05-29 Roland McGrath <mcgrathr@google.com>
96 * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
97 GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
99 2015-05-29 Stephen Kitt <steve@sk2.org>
101 * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
102 (main): Fail if the output file specified by the -z option cannot
105 2015-05-18 Nick Clifton <nickc@redhat.com>
108 * ia64-unwind.c (unw_decode): Add end parameter. Pass parameter
109 on to decode functions.
110 (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
111 (UNW_DEC_SPILL_MASK): Add end parameter. Check that unw_rlen does
112 not take us beyond the end of the buffer.
113 * ia64-unwind.h (unw_decode): Update prototype.
114 * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
116 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
118 * readelf.c (dump_section_as_strings): Change pointers from
119 char * to unsigned char *.
121 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
124 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
126 2015-05-15 Nick Clifton <nickc@redhat.com>
128 * readelf.c (options): Add "decompress".
129 (usage): Mention -z/--decompress.
130 (parse_args): Handle -z.
131 (uncompress_section_contents): Move to earlier in the file.
132 (dump_section_as_strings): If requested, decompress the section
134 (dump_section_as_bytes): Likewise.
135 * doc/binutils.texi: Document the new option.
137 2015-05-14 Peter Bergner <bergner@vnet.ibm.com>
139 * MAINTAINERS: Add myself as PPC maintainer.
141 2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
143 * readelf.c (uncompress_section_contents): Add a parameter for
144 uncompressed size. Don't check the zlib header.
145 (load_specific_debug_section): Updated.
147 2015-05-15 Nick Clifton <nickc@redhat.com>
150 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
152 (struct dwarf_section_display): Change bitfield to boolean.
153 (reloc_at): Add prototype.
154 * dwarf.c (display_loc_list): Ignore list terminators if there are
156 (display_debug_loc): Issue a warning if there are relocs against
157 the .debug_loc section.
158 (display_displays): Initialise reloc_info and num_relocs fields.
159 * objdump.c (load_specific_debug_section): Initialise reloc_info
160 and num_relocs fields.
161 (reloc_at): New function.
162 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
164 (reloc_at): New function.
165 (apply_relocations): Add relocs_return and num_relocs_return
166 parameters. Fill them in with the loaded relocs if non-NULL.
167 (dump_section_as_bytes): Update call to apply_relocations.
168 (load_specific_debug_section): Initialise reloc_info and
171 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
173 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
175 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
177 * MAINTAINERS: Add myself as s390 and s390x maintainer.
179 2015-05-12 Stephen Kitt <steve@sk2.org>
181 * dlltool.c (main): Accept -t as an abbreviation for
184 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
186 * dwarf.c (dwarf_regnames_iamcu): New.
187 (init_dwarf_regnames_iamcu): Likewise.
188 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
189 * dwarf.h (init_dwarf_regnames_iamcu): New.
190 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
193 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
195 * elfedit.c (enum elfclass): New.
196 (input_elf_class): Change type to enum elfclass.
197 (output_elf_class): New.
198 (elf_class): Change return type to enum elfclass. Support EM_386
200 (update_elf_header): Check if input and output ELF classes match.
201 (elf_machine): Support EM_386 and EM_IAMCU.
202 (main): Update input_elf_class. Set output_elf_class.
203 * doc/binutils.texi: Update elfedit.
205 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
207 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
208 * readelf.c (guess_is_rela): Likewise.
209 (dump_relocations): Likewise.
210 (get_machine_name): Likewise.
211 (get_elf_section_flags): Likewise.
212 (process_section_headers): Likewise.
213 (is_32bit_abs_reloc): Likewise.
214 (is_32bit_pcrel_reloc): Likewise.
216 2015-04-30 Nick Clifton <nickc@redhat.com>
218 * readelf.c (get_machine_flags): Add description of MeP flags.
220 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
222 * readelf.c (display_s390_gnu_attribute): New function.
223 (process_s390_specific): New function.
224 (process_arch_specific): Call process_s390_specific.
226 2015-04-24 Nick Clifton <nickc@redhat.com>
229 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
230 * readelf.c (uncompress_section_contents): Zero initialise the
233 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
236 * objcopy.c (setup_section): Copy compress status.
238 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
241 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
243 2015-04-14 Nick Clifton <nickc@redhat.com>
245 * readelf.c (target_specific_reloc_handling): Add code to handle
248 2015-04-13 Doug Evans <dje@google.com>
251 * readelf.c (printable_section_name): Constify sec argument.
252 (apply_relocations): Ditto. New arg "size". All callers updated.
253 (load_specific_debug_section): Constify sec argument.
254 Remove side-effect of modifying sec->sh_size.
256 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
258 * objcopy.c (do_debug_sections): Use bit patterns.
259 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
260 and compress_gabi_zlib on non-ELF input.
261 (copy_file): Don't check non-ELF input here.
263 2015-04-09 Nick Clifton <nickc@redhat.com>
265 * readelf.c (get_machine_flags): Report the setting of the string
268 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
270 * objcopy.c (do_debug_sections): Add compress_zlib,
271 compress_gnu_zlib and compress_gabi_zlib.
272 (copy_options): Use optional_argument on compress-debug-sections.
273 (copy_usage): Update --compress-debug-sections.
274 (copy_file): Handle compress_zlib, compress_gnu_zlib and
277 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
278 * doc/binutils.texi: Document
279 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
281 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
283 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
284 --interleave[=<number>].
286 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
288 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
289 (get_compression_header): New.
290 (process_section_headers): Dump compression header if needed.
291 (uncompress_section_contents): Don't free compressed_buffer here.
292 (load_specific_debug_section): Free the compressed buffer, update
293 the section buffer and the section size if uncompress is
296 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
298 * configure: Regenerated.
300 2015-04-02 Mike Frysinger <vapier@gentoo.org>
302 * MAINTAINERS: Update my e-mail address.
304 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
306 * configure: Regenerated.
308 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
310 * configure.ac: Revert the AM_ZLIB change.
311 * Makefile.in: Regenerated.
312 * aclocal.m4: Likewise.
313 * configure: Likewise.
315 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
317 * Makefile.am (ZLIB): New.
319 (AM_CFLAGS): Add $(ZLIBINC).
320 (readelf_LDADD): Add $(ZLIB).
321 * configure.ac (AM_ZLIB): Removed.
322 (zlibdir): New. AC_SUBST.
324 Add --with-system-zlib.
325 * Makefile.in: Regenerated.
326 * config.in: Likewise.
327 * configure: Likewise.
329 2015-03-19 Nick Clifton <nickc@redhat.com>
331 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
333 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
334 Nick Clifton <nickc@redhat.com>
337 * doc/binutils.texi: Note that when objcopy compresses debug
338 sections the compression is only performed if it makes the section
341 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
344 * readelf.c (parse_args): Move nothing to do warning to ...
347 2015-03-10 Nick Clifton <nickc@redhat.com>
350 * readelf.c (parse_args): Enhance check for nothing to do by
351 accounting for the --wide option.
354 * objcopy.c (copy_object): Avoid calling fatal as that does not
355 allow the parent to clean up temporary files.
357 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
360 * readelf.c: Remove support for ELF_ARM_HASENTRY.
362 2015-03-05 Nick Clifton <nickc@redhat.com>
365 * doc/binutils.texi (objcopy): Extend description of
366 --add-gnu-debuglink option to explain that the separate debug info
367 file must exist. Add a description of what to do if the debug
368 info file is built in one place but then installed into a separate
371 2015-03-05 Nick Clifton <nickc@redhat.com>
374 * dlltool.c (temp_file_to_remove): New local array.
375 (unlink_temp_files): New functions - unlinks any file in the
376 temp_file_to_remove array, unless dotdeltemps is set.
377 (gen_exp_file): Add temp files to array.
378 (make_head): Likewise.
379 (make_delay_head): Likewise.
380 (make_tail): Likewise.
381 (gen_lib_file): Call unlink_temp_files.
383 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
385 * objcopy.c (update_sections): New list.
386 (command_line_switch): Add OPTION_UPDATE_SECTION.
387 (copy_options): Add update-section.
388 (copy_usage): Document new option.
389 (is_update_section): New function.
390 (is_strip_section_1): Add check for attempt to update and remove
392 (copy_object): Update size and content of requested sections.
393 (skip_section): Don't copy for updated sections.
394 (copy_main): Handle --update-section.
395 * doc/binutils.texi (objcopy): Add description of --update-section
397 * NEWS: Mention --update-section option.
399 2015-02-26 Nick Clifton <nickc@redhat.com>
402 * coffgrok.c (do_type): Check for an out of range tag index.
403 Check for integer overflow computing array dimension.
404 (do_define): Likewise.
406 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
408 * objcopy.c (init_section_add): Rename optarg to arg in order to
409 avoid shadowing a global variable.
411 2015-02-26 Nick Clifton <nickc@redhat.com>
414 * resrc.c (write_rc_messagetable): Tighten check for invalid
417 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
418 sanitizer by simplifying address difference calculation.
419 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
420 order to avoid arithmetic overflows.
421 (frame_display_row): Cast cfa_offset before printing it.
422 (display_debug_frames): Likewise.
423 Check for an unexpected segment size.
424 Chnage type of 'l' local to dwarf_vma and cast it back to an int
426 (process_cu_tu_index): Tighten check for an invalid ncols value.
427 * readelf.c (process_corefile_note_segment): Check for
428 inote.descdata extending beyond the end of the section.
429 (process_v850_notes): Likewise.
431 2015-02-26 Terry Guo <terry.guo@arm.com>
433 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
436 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
438 * objcopy.c (init_section_add): New function.
439 (section_add_load_file): New function.
440 (copy_main): Make use of new functions.
442 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
444 * od-elf32_avr.c: Add elf32-avr.h include.
445 (OPT_AVRPROP): Define.
446 (options[]): Add 'avr-prop' entry.
447 (elf32_avr_help): Add avr-prop help text.
448 (elf32_avr_dump_avr_prop): New function.
449 (elf32_avr_dump): Add check for avr-prop.
451 2015-02-24 Nick Clifton <nickc@redhat.com>
453 * readelf.c (get_machine_flags): Remove deprecated V850 machine
455 (get_v850_section_type_name): New function. Handles V850 special
457 (get_section_type_name): Add support for V850.
458 (get_v850_elf_note_type): New function. Returns the name of a
460 (print_v850_note): New function. Prints a V850 note.
461 (process_v850_notes): New function. Prints V850 notes.
462 (process_note_sections): Add support for V850.
464 2015-02-24 Mike Frysinger <vapier@gentoo.org>
467 * readelf.c (process_symbol_table): Declare chained. Increment it
468 in every loop. Abort when chained is larger than nchains. Move
469 error check outside of chain loop.
471 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
473 * readelf.c (find_symbol_for_address): Use a binary search to
474 speed up symbol location. Skip check for function symbol type.
475 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
476 list of function symbols.
477 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
478 pass them to find_symbol_for_address.
479 (dump_hppa_unwind): Likewise.
480 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
481 (dump_arm_unwind): Initialise the funtab and nfuns fields.
483 2015-02-24 Nick Clifton <nickc@redhat.com>
485 * objdump.c (dump_section): Extend the warning message displayed
486 when a section cannot be loaded.
488 2015-02-21 Mike Frysinger <vapier@gentoo.org>
490 * readelf.c (process_program_headers): Add newline to warning
493 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
495 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
498 2015-02-13 Nick Clifton <nickc@redhat.com>
501 * dwarf.c (read_leb128): Fix test for shift becoming too large.
503 * coffgrok.c (do_define): Add check for type size overflow.
504 * srconv.c (walk_tree_sfile): Check that enough sections are
505 available before parsing.
509 * dwarf.c (display_debug_aranges): Add check for an excessive
511 (process_cu_tu_index): Check for a row * columns sum being too
514 2015-02-13 Alan Modra <amodra@gmail.com>
516 * dwarf.c: Formatting, whitespace.
517 (process_debug_info): Style fix.
519 2015-02-11 Nick Clifton <nickc@redhat.com>
521 * rl78-decode.opc: Add 'a' attribute to instructions that support
523 * rl78-decode.c: Regenerate.
524 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
527 2015-02-11 Nick Clifton <nickc@redhat.com>
530 * dwarf.c (display_debug_pubnames_worker): Work around compiler
531 bug checking address ranges.
532 (display_debug_frames): Likewise.
533 (display_gdb_index): Likewise.
534 (process_cu_tu_index): Add range check on the ncols value.
536 2015-02-10 Nick Clifton <nickc@redhat.com>
539 * dwarf.c (eh_addr_size): Use an unsigned type.
540 (size_of_encoded_value): Return an unsigned type.
541 (read_leb128): Break if the shift becomes too big.
542 (process_extended_line_op): Do not read the address if the length
544 (read_cie): Warn and fail if the pointer size or segment size are
546 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
547 structure definition.
548 (DWARF2_External_PubNames): Likewise.
549 (DWARF2_External_CompUnit): Likewise.
550 (DWARF2_External_ARange): Likewise.
551 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
553 (eh_addr_size): Update prototype.
556 * dwarf.c (process_debug_info): Zero the debug information array
557 since correct initialisation cannot be relied upon.
558 (process_cu_tu_index): Improve range checks.
561 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
563 * readelf.c (dump_relocations): Handle printing offsets which are
565 (process_corefile_note_segment): Add range check of the namesz
568 2015-02-09 Mark Wielaard <mjw@redhat.com>
570 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
571 and DW_LANG_Fortran08.
573 2015-02-06 Nick Clifton <nickc@redhat.com>
576 * dwarf.c (display_debug_frames): Fix range checks to work on
577 32-bit binaries complied on a 64-bit host.
580 * dwarf.c (xcmalloc): Fail if the arguments are too big.
581 (xcrealloc): Likewise.
582 (xcalloc2): Likewise.
583 * readelf.c (process_mips_specific): Fail if an option has an
586 2015-02-05 Alan Modra <amodra@gmail.com>
589 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
591 2015-02-04 Nick Clifton <nickc@redhat.com>
594 * dwarf.c (read_and_display_attr_value): Test for a block length
595 being so long that it wraps around to before the start of the block.
596 (process_debug_info): Test for section_begin wrapping around to
597 before the start of the section.
598 (display_gdb_index): Test for num_cus being so large that the end
599 address wraps around to before the start of the section.
600 (process_cu_tu_index): Test for j being so large that the section
601 index pool wraps around to before the start of the section.
603 2015-02-03 Nick Clifton <nickc@redhat.com>
606 * dwarf.c (process_debug_info): Add range check.
607 (display_debug_pubnames_worker): Likewise.
608 (display_gdb_index): Fix range check.
609 (process_cu_tu_index): Add range check.
610 * readelf.c (get_data): Change parameter types from size_t to
611 bfd_size_type. Add checks for loss of accuracy when casting from
612 bfd_size_type to size_t.
613 (get_dynamic_data): Likewise.
614 (process_section_groups): Limit number of error messages.
616 2015-02-03 Nick Clifton <nickc@redhat.com>
619 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
621 2015-01-28 James Bowman <james.bowman@ftdichip.com>
623 * readelf.c: Add FT32 support.
625 2015-01-27 Nick Clifton <nickc@redhat.com>
628 * dlltool.c (identify_search_archive): If the last archive was the
629 same as the current archive, terminate the loop.
631 * addr2line.c (slurp_symtab): If the symcount is zero, free the
632 symbol table pointer.
634 * rcparse.y: Add checks to avoid integer divide by zero.
635 * rescoff.c (read_coff_rsrc): Add check on the size of the
637 (read_coff_res_dir): Add check on the nesting level.
638 Check for resource names overrunning the buffer.
639 * resrc.c (write_rc_messagetable): Update formatting.
640 Add check of 'elen' being zero.
642 2015-01-23 Nick Clifton <nickc@redhat.com>
644 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
645 by recent delta, when compiling on for a 32-bit host.
647 2015-01-21 Nick Clifton <nickc@redhat.com>
650 * addr2line.c (main): Call bfd_set_error_program_name.
651 * ar.c (main): Likewise.
652 * coffdump.c (main): Likewise.
653 * cxxfilt.c (main): Likewise.
654 * dlltool.c (main): Likewise.
655 * nlmconv.c (main): Likewise.
656 * nm.c (main): Likewise.
657 * objdump.c (main): Likewise.
658 * size.c (main): Likewise.
659 * srconv.c (main): Likewise.
660 * strings.c (main): Likewise.
661 * sysdump.c (main): Likewise.
662 * windmc.c (main): Likewise.
663 * windres.c (main): Likewise.
664 * objcopy.c (main): Likewise.
665 (copy_relocations_in_section): Check for relocs without associated
668 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
670 * MAINTAINERS: Add self to ARM maintainers list.
672 2015-01-21 Nick Clifton <nickc@redhat.com>
675 * coffgrok.c (do_type): Check that computed ref exists.
676 (doit): Add range checks when computing section for scope.
678 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
680 * dwarf.c (process_debug_info): Properly check abbrev size.
682 2015-01-12 Nick Clifton <nickc@redhat.com>
685 * dwarf.c (process_debug_info): Check for abbrev_base being larger
686 than the section size.
687 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
689 (xcalloc2): New function. Like xcalloc, but checks for overflow.
690 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
691 array. Check for an address_base that is too large.
693 * dwarf.h (xcalloc2): Prototype.
695 2015-01-12 Alan Modra <amodra@gmail.com>
697 * prdbg.c (print_debugging_info): Don't use void* for function
699 * budbg.h (print_debugging_info): Update prototype.
701 2015-01-08 Nick Clifton <nickc@redhat.com>
704 * ojcopy.c (copy_object): Free the symbol table if no symbols
706 (copy_file): Use bfd_close_all_done to close files that could not
709 * sysdump.c (getINT): Fail if reading off the end of the buffer.
710 Replace call to abort with a call to fatal.
711 (getCHARS): Prevetn reading off the end of the buffer.
713 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
715 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
716 range before applying a reloc.
718 2015-01-07 Nick Clifton <nickc@redhat.com>
721 * dlltool.c (scan_obj_file): Break loop if the last archive
722 displayed matches the current archive.
724 * objdump.c (display_any_bfd): Add a depth limit to nested archive
725 display in order to avoid infinite loops.
726 * srconv.c: Replace calls to abort with calls to fatal with an
729 2015-01-06 Nick Clifton <nickc@redhat.com>
732 * coffdump.c (dump_coff_section): Check for a symbol being
733 available before printing its name.
734 (main): Check the return value from coff_grok.
735 * coffgrok.c: Reformat and tidy.
736 Add range checks to most functions.
737 (coff_grok): Return NULL if the input bfd is not in a COFF
739 * coffgrok.h: Reformat and tidy.
740 (struct coff_section): Change the nrelocs field to unsigned.
741 * srconv.c (main): Check the return value from coff_grok.
743 2015-01-05 Nick Clifton <nickc@redhat.com>
746 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
747 help initialize the info.elfinfo field.
748 (print_size_symbols): Add 'synth_count' parameter. Use it to set
749 the is_synthetic parameter when calling print_symbol.
750 (print_symbols): Likewise.
751 (display_rel_file): Pass synth_count to printing function.
752 (display_archive): Break loop if the last archive displayed
753 matches the current archive.
754 * size.c (display_archive): Likewise.
756 2015-01-05 Nick Clifton <nickc@redhat.com>
759 * dwarf.c (alloc_num_debug_info_entries): New variable.
760 (process_debug_info): Set it. Use it to avoid displaying
761 attributes for which there is no info.
762 (display_debug_abbrev): Check that the debug_info_entry index is
763 valid before using it.
764 (display_loc_list_dwo): Likewise.
765 (process_cu_tu_index): Add range check for an overlarge dw_sect
767 (free_debug_memory): Reset alloc_num_debug_info_entries.
768 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
770 (dynamic_section_mips_val): Warn if the timestamp is invalid.
771 (print_mips_got_entry): Add a data_end parameter. Warn if a read
772 would go beyond the end of the data, and return an error value.
773 (process_mips_specific): Do not read options from beyond the end
775 Correct code to display optional data at the end of an option.
776 Warn if there are too many GOT symbols.
777 Update calls to print_mips_got_entry, and handle error returns.
779 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
782 * doc/binutils.texi (dlltool): Correct description of --kill-at
785 2015-01-01 Alan Modra <amodra@gmail.com>
787 * version.c (print_version): Just print current year.
789 2015-01-01 Alan Modra <amodra@gmail.com>
791 Update year range in copyright notice of all files.
793 For older changes see ChangeLog-2014
795 Copyright (C) 2015 Free Software Foundation, Inc.
797 Copying and distribution of this file, with or without modification,
798 are permitted in any medium without royalty provided the copyright
799 notice and this notice are preserved.
805 version-control: never