1 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
3 * configure: Regenerated.
5 2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
7 * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
9 2015-07-22 Alan Modra <amodra@gmail.com>
11 * readelf.c (dump_relocations): Show MIN_INT addends as negative.
13 2015-07-20 Alan Modra <amodra@gmail.com>
15 * doc/Makefile.in: Regenerate.
17 2015-07-16 Alan Modra <amodra@gmail.com>
20 * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
21 (get_64bit_dynamic_section): Likewise.
23 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
25 * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
27 * doc/binutils.texi: Change --compress-debug-sections and
28 --compress-debug-sections=zlib to zlib-gabi.
30 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
33 * objcopy.c (setup_section): Call bfd_convert_section_size
34 to get the output section size.
35 (copy_section): Get the section size from the output section
36 and call bfd_get_full_section_contents to convert section
39 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
41 * readelf.c (dump_section_as_strings): Warn unsupported compress
42 type and corrupted compressed section.
43 (dump_section_as_bytes): Likewise.
44 (load_specific_debug_section): Likewise.
46 2015-07-09 Catherine Moore <clm@codesourcery.com>
48 * readelf.c (print_mips_fp_abi_value): Handle
49 Val_GNU_MIPS_ABI_FP_NAN2008.
51 2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
53 * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
55 2015-06-22 Nick Clifton <nickc@redhat.com>
57 * objdump.c (disassemble_bytes): Set the stop_vma field in the
58 disassemble_info structure when disassembling code sections with
60 * doc/binutils.texi (objdump): Document the discrepancy between -d
63 2015-06-05 Nick Clifton <nickc@redhat.com>
65 * dwarf.c (read_debug_line_header): Use reloc_at to detect
66 incomplete .debug_line headers
68 2015-05-29 Roland McGrath <mcgrathr@google.com>
70 * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
71 GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
73 2015-05-29 Stephen Kitt <steve@sk2.org>
75 * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
76 (main): Fail if the output file specified by the -z option cannot
79 2015-05-18 Nick Clifton <nickc@redhat.com>
82 * ia64-unwind.c (unw_decode): Add end parameter. Pass parameter
83 on to decode functions.
84 (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
85 (UNW_DEC_SPILL_MASK): Add end parameter. Check that unw_rlen does
86 not take us beyond the end of the buffer.
87 * ia64-unwind.h (unw_decode): Update prototype.
88 * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
90 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
92 * readelf.c (dump_section_as_strings): Change pointers from
93 char * to unsigned char *.
95 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
98 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
100 2015-05-15 Nick Clifton <nickc@redhat.com>
102 * readelf.c (options): Add "decompress".
103 (usage): Mention -z/--decompress.
104 (parse_args): Handle -z.
105 (uncompress_section_contents): Move to earlier in the file.
106 (dump_section_as_strings): If requested, decompress the section
108 (dump_section_as_bytes): Likewise.
109 * doc/binutils.texi: Document the new option.
111 2015-05-14 Peter Bergner <bergner@vnet.ibm.com>
113 * MAINTAINERS: Add myself as PPC maintainer.
115 2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
117 * readelf.c (uncompress_section_contents): Add a parameter for
118 uncompressed size. Don't check the zlib header.
119 (load_specific_debug_section): Updated.
121 2015-05-15 Nick Clifton <nickc@redhat.com>
124 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
126 (struct dwarf_section_display): Change bitfield to boolean.
127 (reloc_at): Add prototype.
128 * dwarf.c (display_loc_list): Ignore list terminators if there are
130 (display_debug_loc): Issue a warning if there are relocs against
131 the .debug_loc section.
132 (display_displays): Initialise reloc_info and num_relocs fields.
133 * objdump.c (load_specific_debug_section): Initialise reloc_info
134 and num_relocs fields.
135 (reloc_at): New function.
136 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
138 (reloc_at): New function.
139 (apply_relocations): Add relocs_return and num_relocs_return
140 parameters. Fill them in with the loaded relocs if non-NULL.
141 (dump_section_as_bytes): Update call to apply_relocations.
142 (load_specific_debug_section): Initialise reloc_info and
145 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
147 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
149 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
151 * MAINTAINERS: Add myself as s390 and s390x maintainer.
153 2015-05-12 Stephen Kitt <steve@sk2.org>
155 * dlltool.c (main): Accept -t as an abbreviation for
158 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
160 * dwarf.c (dwarf_regnames_iamcu): New.
161 (init_dwarf_regnames_iamcu): Likewise.
162 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
163 * dwarf.h (init_dwarf_regnames_iamcu): New.
164 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
167 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
169 * elfedit.c (enum elfclass): New.
170 (input_elf_class): Change type to enum elfclass.
171 (output_elf_class): New.
172 (elf_class): Change return type to enum elfclass. Support EM_386
174 (update_elf_header): Check if input and output ELF classes match.
175 (elf_machine): Support EM_386 and EM_IAMCU.
176 (main): Update input_elf_class. Set output_elf_class.
177 * doc/binutils.texi: Update elfedit.
179 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
181 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
182 * readelf.c (guess_is_rela): Likewise.
183 (dump_relocations): Likewise.
184 (get_machine_name): Likewise.
185 (get_elf_section_flags): Likewise.
186 (process_section_headers): Likewise.
187 (is_32bit_abs_reloc): Likewise.
188 (is_32bit_pcrel_reloc): Likewise.
190 2015-04-30 Nick Clifton <nickc@redhat.com>
192 * readelf.c (get_machine_flags): Add description of MeP flags.
194 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
196 * readelf.c (display_s390_gnu_attribute): New function.
197 (process_s390_specific): New function.
198 (process_arch_specific): Call process_s390_specific.
200 2015-04-24 Nick Clifton <nickc@redhat.com>
203 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
204 * readelf.c (uncompress_section_contents): Zero initialise the
207 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
210 * objcopy.c (setup_section): Copy compress status.
212 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
215 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
217 2015-04-14 Nick Clifton <nickc@redhat.com>
219 * readelf.c (target_specific_reloc_handling): Add code to handle
222 2015-04-13 Doug Evans <dje@google.com>
225 * readelf.c (printable_section_name): Constify sec argument.
226 (apply_relocations): Ditto. New arg "size". All callers updated.
227 (load_specific_debug_section): Constify sec argument.
228 Remove side-effect of modifying sec->sh_size.
230 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
232 * objcopy.c (do_debug_sections): Use bit patterns.
233 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
234 and compress_gabi_zlib on non-ELF input.
235 (copy_file): Don't check non-ELF input here.
237 2015-04-09 Nick Clifton <nickc@redhat.com>
239 * readelf.c (get_machine_flags): Report the setting of the string
242 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
244 * objcopy.c (do_debug_sections): Add compress_zlib,
245 compress_gnu_zlib and compress_gabi_zlib.
246 (copy_options): Use optional_argument on compress-debug-sections.
247 (copy_usage): Update --compress-debug-sections.
248 (copy_file): Handle compress_zlib, compress_gnu_zlib and
251 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
252 * doc/binutils.texi: Document
253 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
255 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
257 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
258 --interleave[=<number>].
260 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
262 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
263 (get_compression_header): New.
264 (process_section_headers): Dump compression header if needed.
265 (uncompress_section_contents): Don't free compressed_buffer here.
266 (load_specific_debug_section): Free the compressed buffer, update
267 the section buffer and the section size if uncompress is
270 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
272 * configure: Regenerated.
274 2015-04-02 Mike Frysinger <vapier@gentoo.org>
276 * MAINTAINERS: Update my e-mail address.
278 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
280 * configure: Regenerated.
282 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
284 * configure.ac: Revert the AM_ZLIB change.
285 * Makefile.in: Regenerated.
286 * aclocal.m4: Likewise.
287 * configure: Likewise.
289 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
291 * Makefile.am (ZLIB): New.
293 (AM_CFLAGS): Add $(ZLIBINC).
294 (readelf_LDADD): Add $(ZLIB).
295 * configure.ac (AM_ZLIB): Removed.
296 (zlibdir): New. AC_SUBST.
298 Add --with-system-zlib.
299 * Makefile.in: Regenerated.
300 * config.in: Likewise.
301 * configure: Likewise.
303 2015-03-19 Nick Clifton <nickc@redhat.com>
305 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
307 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
308 Nick Clifton <nickc@redhat.com>
311 * doc/binutils.texi: Note that when objcopy compresses debug
312 sections the compression is only performed if it makes the section
315 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
318 * readelf.c (parse_args): Move nothing to do warning to ...
321 2015-03-10 Nick Clifton <nickc@redhat.com>
324 * readelf.c (parse_args): Enhance check for nothing to do by
325 accounting for the --wide option.
328 * objcopy.c (copy_object): Avoid calling fatal as that does not
329 allow the parent to clean up temporary files.
331 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
334 * readelf.c: Remove support for ELF_ARM_HASENTRY.
336 2015-03-05 Nick Clifton <nickc@redhat.com>
339 * doc/binutils.texi (objcopy): Extend description of
340 --add-gnu-debuglink option to explain that the separate debug info
341 file must exist. Add a description of what to do if the debug
342 info file is built in one place but then installed into a separate
345 2015-03-05 Nick Clifton <nickc@redhat.com>
348 * dlltool.c (temp_file_to_remove): New local array.
349 (unlink_temp_files): New functions - unlinks any file in the
350 temp_file_to_remove array, unless dotdeltemps is set.
351 (gen_exp_file): Add temp files to array.
352 (make_head): Likewise.
353 (make_delay_head): Likewise.
354 (make_tail): Likewise.
355 (gen_lib_file): Call unlink_temp_files.
357 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
359 * objcopy.c (update_sections): New list.
360 (command_line_switch): Add OPTION_UPDATE_SECTION.
361 (copy_options): Add update-section.
362 (copy_usage): Document new option.
363 (is_update_section): New function.
364 (is_strip_section_1): Add check for attempt to update and remove
366 (copy_object): Update size and content of requested sections.
367 (skip_section): Don't copy for updated sections.
368 (copy_main): Handle --update-section.
369 * doc/binutils.texi (objcopy): Add description of --update-section
371 * NEWS: Mention --update-section option.
373 2015-02-26 Nick Clifton <nickc@redhat.com>
376 * coffgrok.c (do_type): Check for an out of range tag index.
377 Check for integer overflow computing array dimension.
378 (do_define): Likewise.
380 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
382 * objcopy.c (init_section_add): Rename optarg to arg in order to
383 avoid shadowing a global variable.
385 2015-02-26 Nick Clifton <nickc@redhat.com>
388 * resrc.c (write_rc_messagetable): Tighten check for invalid
391 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
392 sanitizer by simplifying address difference calculation.
393 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
394 order to avoid arithmetic overflows.
395 (frame_display_row): Cast cfa_offset before printing it.
396 (display_debug_frames): Likewise.
397 Check for an unexpected segment size.
398 Chnage type of 'l' local to dwarf_vma and cast it back to an int
400 (process_cu_tu_index): Tighten check for an invalid ncols value.
401 * readelf.c (process_corefile_note_segment): Check for
402 inote.descdata extending beyond the end of the section.
403 (process_v850_notes): Likewise.
405 2015-02-26 Terry Guo <terry.guo@arm.com>
407 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
410 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
412 * objcopy.c (init_section_add): New function.
413 (section_add_load_file): New function.
414 (copy_main): Make use of new functions.
416 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
418 * od-elf32_avr.c: Add elf32-avr.h include.
419 (OPT_AVRPROP): Define.
420 (options[]): Add 'avr-prop' entry.
421 (elf32_avr_help): Add avr-prop help text.
422 (elf32_avr_dump_avr_prop): New function.
423 (elf32_avr_dump): Add check for avr-prop.
425 2015-02-24 Nick Clifton <nickc@redhat.com>
427 * readelf.c (get_machine_flags): Remove deprecated V850 machine
429 (get_v850_section_type_name): New function. Handles V850 special
431 (get_section_type_name): Add support for V850.
432 (get_v850_elf_note_type): New function. Returns the name of a
434 (print_v850_note): New function. Prints a V850 note.
435 (process_v850_notes): New function. Prints V850 notes.
436 (process_note_sections): Add support for V850.
438 2015-02-24 Mike Frysinger <vapier@gentoo.org>
441 * readelf.c (process_symbol_table): Declare chained. Increment it
442 in every loop. Abort when chained is larger than nchains. Move
443 error check outside of chain loop.
445 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
447 * readelf.c (find_symbol_for_address): Use a binary search to
448 speed up symbol location. Skip check for function symbol type.
449 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
450 list of function symbols.
451 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
452 pass them to find_symbol_for_address.
453 (dump_hppa_unwind): Likewise.
454 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
455 (dump_arm_unwind): Initialise the funtab and nfuns fields.
457 2015-02-24 Nick Clifton <nickc@redhat.com>
459 * objdump.c (dump_section): Extend the warning message displayed
460 when a section cannot be loaded.
462 2015-02-21 Mike Frysinger <vapier@gentoo.org>
464 * readelf.c (process_program_headers): Add newline to warning
467 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
469 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
472 2015-02-13 Nick Clifton <nickc@redhat.com>
475 * dwarf.c (read_leb128): Fix test for shift becoming too large.
477 * coffgrok.c (do_define): Add check for type size overflow.
478 * srconv.c (walk_tree_sfile): Check that enough sections are
479 available before parsing.
483 * dwarf.c (display_debug_aranges): Add check for an excessive
485 (process_cu_tu_index): Check for a row * columns sum being too
488 2015-02-13 Alan Modra <amodra@gmail.com>
490 * dwarf.c: Formatting, whitespace.
491 (process_debug_info): Style fix.
493 2015-02-11 Nick Clifton <nickc@redhat.com>
495 * rl78-decode.opc: Add 'a' attribute to instructions that support
497 * rl78-decode.c: Regenerate.
498 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
501 2015-02-11 Nick Clifton <nickc@redhat.com>
504 * dwarf.c (display_debug_pubnames_worker): Work around compiler
505 bug checking address ranges.
506 (display_debug_frames): Likewise.
507 (display_gdb_index): Likewise.
508 (process_cu_tu_index): Add range check on the ncols value.
510 2015-02-10 Nick Clifton <nickc@redhat.com>
513 * dwarf.c (eh_addr_size): Use an unsigned type.
514 (size_of_encoded_value): Return an unsigned type.
515 (read_leb128): Break if the shift becomes too big.
516 (process_extended_line_op): Do not read the address if the length
518 (read_cie): Warn and fail if the pointer size or segment size are
520 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
521 structure definition.
522 (DWARF2_External_PubNames): Likewise.
523 (DWARF2_External_CompUnit): Likewise.
524 (DWARF2_External_ARange): Likewise.
525 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
527 (eh_addr_size): Update prototype.
530 * dwarf.c (process_debug_info): Zero the debug information array
531 since correct initialisation cannot be relied upon.
532 (process_cu_tu_index): Improve range checks.
535 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
537 * readelf.c (dump_relocations): Handle printing offsets which are
539 (process_corefile_note_segment): Add range check of the namesz
542 2015-02-09 Mark Wielaard <mjw@redhat.com>
544 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
545 and DW_LANG_Fortran08.
547 2015-02-06 Nick Clifton <nickc@redhat.com>
550 * dwarf.c (display_debug_frames): Fix range checks to work on
551 32-bit binaries complied on a 64-bit host.
554 * dwarf.c (xcmalloc): Fail if the arguments are too big.
555 (xcrealloc): Likewise.
556 (xcalloc2): Likewise.
557 * readelf.c (process_mips_specific): Fail if an option has an
560 2015-02-05 Alan Modra <amodra@gmail.com>
563 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
565 2015-02-04 Nick Clifton <nickc@redhat.com>
568 * dwarf.c (read_and_display_attr_value): Test for a block length
569 being so long that it wraps around to before the start of the block.
570 (process_debug_info): Test for section_begin wrapping around to
571 before the start of the section.
572 (display_gdb_index): Test for num_cus being so large that the end
573 address wraps around to before the start of the section.
574 (process_cu_tu_index): Test for j being so large that the section
575 index pool wraps around to before the start of the section.
577 2015-02-03 Nick Clifton <nickc@redhat.com>
580 * dwarf.c (process_debug_info): Add range check.
581 (display_debug_pubnames_worker): Likewise.
582 (display_gdb_index): Fix range check.
583 (process_cu_tu_index): Add range check.
584 * readelf.c (get_data): Change parameter types from size_t to
585 bfd_size_type. Add checks for loss of accuracy when casting from
586 bfd_size_type to size_t.
587 (get_dynamic_data): Likewise.
588 (process_section_groups): Limit number of error messages.
590 2015-02-03 Nick Clifton <nickc@redhat.com>
593 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
595 2015-01-28 James Bowman <james.bowman@ftdichip.com>
597 * readelf.c: Add FT32 support.
599 2015-01-27 Nick Clifton <nickc@redhat.com>
602 * dlltool.c (identify_search_archive): If the last archive was the
603 same as the current archive, terminate the loop.
605 * addr2line.c (slurp_symtab): If the symcount is zero, free the
606 symbol table pointer.
608 * rcparse.y: Add checks to avoid integer divide by zero.
609 * rescoff.c (read_coff_rsrc): Add check on the size of the
611 (read_coff_res_dir): Add check on the nesting level.
612 Check for resource names overrunning the buffer.
613 * resrc.c (write_rc_messagetable): Update formatting.
614 Add check of 'elen' being zero.
616 2015-01-23 Nick Clifton <nickc@redhat.com>
618 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
619 by recent delta, when compiling on for a 32-bit host.
621 2015-01-21 Nick Clifton <nickc@redhat.com>
624 * addr2line.c (main): Call bfd_set_error_program_name.
625 * ar.c (main): Likewise.
626 * coffdump.c (main): Likewise.
627 * cxxfilt.c (main): Likewise.
628 * dlltool.c (main): Likewise.
629 * nlmconv.c (main): Likewise.
630 * nm.c (main): Likewise.
631 * objdump.c (main): Likewise.
632 * size.c (main): Likewise.
633 * srconv.c (main): Likewise.
634 * strings.c (main): Likewise.
635 * sysdump.c (main): Likewise.
636 * windmc.c (main): Likewise.
637 * windres.c (main): Likewise.
638 * objcopy.c (main): Likewise.
639 (copy_relocations_in_section): Check for relocs without associated
642 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
644 * MAINTAINERS: Add self to ARM maintainers list.
646 2015-01-21 Nick Clifton <nickc@redhat.com>
649 * coffgrok.c (do_type): Check that computed ref exists.
650 (doit): Add range checks when computing section for scope.
652 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
654 * dwarf.c (process_debug_info): Properly check abbrev size.
656 2015-01-12 Nick Clifton <nickc@redhat.com>
659 * dwarf.c (process_debug_info): Check for abbrev_base being larger
660 than the section size.
661 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
663 (xcalloc2): New function. Like xcalloc, but checks for overflow.
664 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
665 array. Check for an address_base that is too large.
667 * dwarf.h (xcalloc2): Prototype.
669 2015-01-12 Alan Modra <amodra@gmail.com>
671 * prdbg.c (print_debugging_info): Don't use void* for function
673 * budbg.h (print_debugging_info): Update prototype.
675 2015-01-08 Nick Clifton <nickc@redhat.com>
678 * ojcopy.c (copy_object): Free the symbol table if no symbols
680 (copy_file): Use bfd_close_all_done to close files that could not
683 * sysdump.c (getINT): Fail if reading off the end of the buffer.
684 Replace call to abort with a call to fatal.
685 (getCHARS): Prevetn reading off the end of the buffer.
687 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
689 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
690 range before applying a reloc.
692 2015-01-07 Nick Clifton <nickc@redhat.com>
695 * dlltool.c (scan_obj_file): Break loop if the last archive
696 displayed matches the current archive.
698 * objdump.c (display_any_bfd): Add a depth limit to nested archive
699 display in order to avoid infinite loops.
700 * srconv.c: Replace calls to abort with calls to fatal with an
703 2015-01-06 Nick Clifton <nickc@redhat.com>
706 * coffdump.c (dump_coff_section): Check for a symbol being
707 available before printing its name.
708 (main): Check the return value from coff_grok.
709 * coffgrok.c: Reformat and tidy.
710 Add range checks to most functions.
711 (coff_grok): Return NULL if the input bfd is not in a COFF
713 * coffgrok.h: Reformat and tidy.
714 (struct coff_section): Change the nrelocs field to unsigned.
715 * srconv.c (main): Check the return value from coff_grok.
717 2015-01-05 Nick Clifton <nickc@redhat.com>
720 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
721 help initialize the info.elfinfo field.
722 (print_size_symbols): Add 'synth_count' parameter. Use it to set
723 the is_synthetic parameter when calling print_symbol.
724 (print_symbols): Likewise.
725 (display_rel_file): Pass synth_count to printing function.
726 (display_archive): Break loop if the last archive displayed
727 matches the current archive.
728 * size.c (display_archive): Likewise.
730 2015-01-05 Nick Clifton <nickc@redhat.com>
733 * dwarf.c (alloc_num_debug_info_entries): New variable.
734 (process_debug_info): Set it. Use it to avoid displaying
735 attributes for which there is no info.
736 (display_debug_abbrev): Check that the debug_info_entry index is
737 valid before using it.
738 (display_loc_list_dwo): Likewise.
739 (process_cu_tu_index): Add range check for an overlarge dw_sect
741 (free_debug_memory): Reset alloc_num_debug_info_entries.
742 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
744 (dynamic_section_mips_val): Warn if the timestamp is invalid.
745 (print_mips_got_entry): Add a data_end parameter. Warn if a read
746 would go beyond the end of the data, and return an error value.
747 (process_mips_specific): Do not read options from beyond the end
749 Correct code to display optional data at the end of an option.
750 Warn if there are too many GOT symbols.
751 Update calls to print_mips_got_entry, and handle error returns.
753 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
756 * doc/binutils.texi (dlltool): Correct description of --kill-at
759 2015-01-01 Alan Modra <amodra@gmail.com>
761 * version.c (print_version): Just print current year.
763 2015-01-01 Alan Modra <amodra@gmail.com>
765 Update year range in copyright notice of all files.
767 For older changes see ChangeLog-2014
769 Copyright (C) 2015 Free Software Foundation, Inc.
771 Copying and distribution of this file, with or without modification,
772 are permitted in any medium without royalty provided the copyright
773 notice and this notice are preserved.
779 version-control: never