1 2015-11-09 Dominik Vogt <vogt@linux.vnet.ibm.com>
3 * dwarf.c (read_leb128): Fix left shift of negative value.
5 2015-11-03 Alan Modra <amodra@gmail.com>
7 * readelf (process_version_sections): Check DT_VERNEED and
8 DT_VERDEF for all symbols. Report "*both*" should a symbol
9 have both a verneed and verdef.
10 (get_symbol_version_string): Reduce indentation by early
11 exits. Don't use SHT_NOBITS heuristic to detect case where a
12 defined symbol has a verneed entry.
14 2015-10-30 Nick Clifton <nickc@redhat.com>
16 * po/zh_CN.po: Updated (simplified) Chinese translation.
18 2015-10-27 Stephen Fisher <sfisher@panix.com>
20 * binutils.c (process_netbsd_elf_note): New function.
21 (process_note): Call the new function for NetBSD core notes.
23 2015-10-22 Hans-Peter Nilsson <hp@bitrange.com>
25 * objcopy.c (setup_section): Don't omit bfd_copy_private_bfd_data
26 call when extract_symbol.
28 2015-10-21 Ronald Hoogenboom <rhoogenboom@irdeto.com>
31 * objcopy.c (command_line_switch): Add OPTION_ADD_SYMBOL.
32 (copy_options): Add add-symbol.
33 (copy_usage): Likewise.
34 (parse_symflags): New function.
35 (need_sym_before): New function.
36 (create_new_symbol): New function.
37 (filter_symbols): Add code to insert new symbols.
38 (copy_main): Process OPTION_ADD_SYMBOL.
39 * doc/binutils.texi: Document new feature.
40 * NEWS: Add note about the new feature.
42 2015-10-18 Paul Pluzhnikov <ppluzhnikov@google.com>
45 * readelf.c (print_core_note): Fix off-by-one bug.
47 2015-10-15 Alan Modra <amodra@gmail.com>
49 * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data
50 call when extract_symbol.
52 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
54 * od-elf32_avr.c (elf32_avr_dump_avr_prop): Fix printing of align
55 specific data, fix formatting for align and org data.
57 2015-09-01 Claudiu Zissulescu <claziss@synopsys.com>
58 Cupertino Miranda <cmiranda@synopsys.com>
60 * readelf.c (get_machine_name): Remove A5 reference. Add ARCompact
62 (get_machine_flags): Handle EM_ARCV2 and EM_ARCOMPACT.
63 (guess_is_rela): Likewise.
64 (dump_relocations): Likewise.
65 (is_32bit_abs_reloc): Likewise.
66 (is_16bit_abs_reloc): Likewise.
67 (is_none_reloc): Likewise.
68 * NEWS: Mention the new feature.
70 2015-09-29 Andrew Stubbs <ams@codesourcery.com>
71 H.J. Lu <hongjiu.lu@intel.com>
74 * objcopy.c (copy_object): Don't adjust the output section size
75 when copying from input sections.
76 (copy_section): Use input section size for the copy. Get the
77 updated section size from bfd_convert_section_contents.
79 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
82 * objcopy.c (copy_object): Adjust the output section size to
83 skip gap fills between sections when copying from input sections
86 2015-09-28 Nick Clifton <nickc@redhat.com>
88 * po/fr.po: Updated French translation.
90 2015-09-25 James Bowman <james.bowman@ftdichip.com>
92 * ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.
94 2015-09-23 Nick Clifton <nickc@redhat.com>
97 * readelf.c (struct elf_section_list): New structure.
98 (symtab_shndx_hdr): Replace with symtab_shndx_list.
99 (get_32bit_elf_symbols): Scan for a symbol index table matching
100 the symbol table in use.
101 (get_64bit_elf_symbols): Likewise.
102 (process_section_headers): Handle multiple symbol index sections.
104 2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106 * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
108 2015-09-10 Erik Ackermann <kurterikackermann@gmail.com>
110 * strings.c: Add -s/--output-separator option to specify custom
112 * NEWS: Mention the new feature.
113 * doc/binutils.text (strings): Document the new command line
116 2015-09-09 Nick Clifton <nickc@redhat.com>
118 * doc/binutils.texi (ar): Remove bogus sentance concerning thin
119 archives and invalid paths.
121 2015-09-03 Nick Clifton <nickc@redhat.com>
124 * readelf.c (get_unwind_section_word): Check for negative offsets
125 and very small sections.
126 (dump_arm_unwind): Warn if the table offset is too large.
128 2015-08-28 H.J. Lu <hongjiu.lu@intel.com>
130 * Makefile.am (TOOL_PROGS): Add readelf.
131 * Makefile.in: Regenerated.
133 2015-08-24 Yaakov Selkowitz <yselkowi@redhat.com>
135 * configure: Regenerate.
137 2015-08-17 Alan Modra <amodra@gmail.com>
139 * configure: Regenerate.
141 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
143 * objcopy.c (is_specified_symbol_predicate): Don't stop at first
144 match. Non-match rules set found to FALSE.
146 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
148 * configure: Regenerate.
150 2015-08-05 Nick Clifton <nickc@redhat.com>
152 * doc/binutils.texi: Document that the --only-keep-debug option
153 to strip and objcopy preserves the section headers of stripped
156 2015-08-04 Yuriy M. Kaminskiy" <yumkam@gmail.com>
157 Tyler Hicks <tyhicks@canonical.com>
160 * readelf.c (process_mips_specific): Fix incorrect escape
163 2015-08-04 Nick Clifton <nickc@redhat.com>
165 * ar.c (extract_file): Free cbuf if the path is invalid.
167 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
169 * configure: Regenerated.
171 2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
173 * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
175 2015-07-22 Alan Modra <amodra@gmail.com>
177 * readelf.c (dump_relocations): Show MIN_INT addends as negative.
179 2015-07-20 Alan Modra <amodra@gmail.com>
181 * doc/Makefile.in: Regenerate.
183 2015-07-16 Alan Modra <amodra@gmail.com>
186 * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
187 (get_64bit_dynamic_section): Likewise.
189 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
191 * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
193 * doc/binutils.texi: Change --compress-debug-sections and
194 --compress-debug-sections=zlib to zlib-gabi.
196 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
199 * objcopy.c (setup_section): Call bfd_convert_section_size
200 to get the output section size.
201 (copy_section): Get the section size from the output section
202 and call bfd_get_full_section_contents to convert section
205 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
207 * readelf.c (dump_section_as_strings): Warn unsupported compress
208 type and corrupted compressed section.
209 (dump_section_as_bytes): Likewise.
210 (load_specific_debug_section): Likewise.
212 2015-07-09 Catherine Moore <clm@codesourcery.com>
214 * readelf.c (print_mips_fp_abi_value): Handle
215 Val_GNU_MIPS_ABI_FP_NAN2008.
217 2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
219 * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
221 2015-06-22 Nick Clifton <nickc@redhat.com>
223 * objdump.c (disassemble_bytes): Set the stop_vma field in the
224 disassemble_info structure when disassembling code sections with
226 * doc/binutils.texi (objdump): Document the discrepancy between -d
229 2015-06-05 Nick Clifton <nickc@redhat.com>
231 * dwarf.c (read_debug_line_header): Use reloc_at to detect
232 incomplete .debug_line headers
234 2015-05-29 Roland McGrath <mcgrathr@google.com>
236 * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
237 GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
239 2015-05-29 Stephen Kitt <steve@sk2.org>
241 * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
242 (main): Fail if the output file specified by the -z option cannot
245 2015-05-18 Nick Clifton <nickc@redhat.com>
248 * ia64-unwind.c (unw_decode): Add end parameter. Pass parameter
249 on to decode functions.
250 (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
251 (UNW_DEC_SPILL_MASK): Add end parameter. Check that unw_rlen does
252 not take us beyond the end of the buffer.
253 * ia64-unwind.h (unw_decode): Update prototype.
254 * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
256 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
258 * readelf.c (dump_section_as_strings): Change pointers from
259 char * to unsigned char *.
261 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
264 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
266 2015-05-15 Nick Clifton <nickc@redhat.com>
268 * readelf.c (options): Add "decompress".
269 (usage): Mention -z/--decompress.
270 (parse_args): Handle -z.
271 (uncompress_section_contents): Move to earlier in the file.
272 (dump_section_as_strings): If requested, decompress the section
274 (dump_section_as_bytes): Likewise.
275 * doc/binutils.texi: Document the new option.
277 2015-05-14 Peter Bergner <bergner@vnet.ibm.com>
279 * MAINTAINERS: Add myself as PPC maintainer.
281 2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
283 * readelf.c (uncompress_section_contents): Add a parameter for
284 uncompressed size. Don't check the zlib header.
285 (load_specific_debug_section): Updated.
287 2015-05-15 Nick Clifton <nickc@redhat.com>
290 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
292 (struct dwarf_section_display): Change bitfield to boolean.
293 (reloc_at): Add prototype.
294 * dwarf.c (display_loc_list): Ignore list terminators if there are
296 (display_debug_loc): Issue a warning if there are relocs against
297 the .debug_loc section.
298 (display_displays): Initialise reloc_info and num_relocs fields.
299 * objdump.c (load_specific_debug_section): Initialise reloc_info
300 and num_relocs fields.
301 (reloc_at): New function.
302 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
304 (reloc_at): New function.
305 (apply_relocations): Add relocs_return and num_relocs_return
306 parameters. Fill them in with the loaded relocs if non-NULL.
307 (dump_section_as_bytes): Update call to apply_relocations.
308 (load_specific_debug_section): Initialise reloc_info and
311 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
313 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
315 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
317 * MAINTAINERS: Add myself as s390 and s390x maintainer.
319 2015-05-12 Stephen Kitt <steve@sk2.org>
321 * dlltool.c (main): Accept -t as an abbreviation for
324 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
326 * dwarf.c (dwarf_regnames_iamcu): New.
327 (init_dwarf_regnames_iamcu): Likewise.
328 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
329 * dwarf.h (init_dwarf_regnames_iamcu): New.
330 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
333 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
335 * elfedit.c (enum elfclass): New.
336 (input_elf_class): Change type to enum elfclass.
337 (output_elf_class): New.
338 (elf_class): Change return type to enum elfclass. Support EM_386
340 (update_elf_header): Check if input and output ELF classes match.
341 (elf_machine): Support EM_386 and EM_IAMCU.
342 (main): Update input_elf_class. Set output_elf_class.
343 * doc/binutils.texi: Update elfedit.
345 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
347 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
348 * readelf.c (guess_is_rela): Likewise.
349 (dump_relocations): Likewise.
350 (get_machine_name): Likewise.
351 (get_elf_section_flags): Likewise.
352 (process_section_headers): Likewise.
353 (is_32bit_abs_reloc): Likewise.
354 (is_32bit_pcrel_reloc): Likewise.
356 2015-04-30 Nick Clifton <nickc@redhat.com>
358 * readelf.c (get_machine_flags): Add description of MeP flags.
360 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
362 * readelf.c (display_s390_gnu_attribute): New function.
363 (process_s390_specific): New function.
364 (process_arch_specific): Call process_s390_specific.
366 2015-04-24 Nick Clifton <nickc@redhat.com>
369 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
370 * readelf.c (uncompress_section_contents): Zero initialise the
373 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
376 * objcopy.c (setup_section): Copy compress status.
378 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
381 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
383 2015-04-14 Nick Clifton <nickc@redhat.com>
385 * readelf.c (target_specific_reloc_handling): Add code to handle
388 2015-04-13 Doug Evans <dje@google.com>
391 * readelf.c (printable_section_name): Constify sec argument.
392 (apply_relocations): Ditto. New arg "size". All callers updated.
393 (load_specific_debug_section): Constify sec argument.
394 Remove side-effect of modifying sec->sh_size.
396 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
398 * objcopy.c (do_debug_sections): Use bit patterns.
399 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
400 and compress_gabi_zlib on non-ELF input.
401 (copy_file): Don't check non-ELF input here.
403 2015-04-09 Nick Clifton <nickc@redhat.com>
405 * readelf.c (get_machine_flags): Report the setting of the string
408 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
410 * objcopy.c (do_debug_sections): Add compress_zlib,
411 compress_gnu_zlib and compress_gabi_zlib.
412 (copy_options): Use optional_argument on compress-debug-sections.
413 (copy_usage): Update --compress-debug-sections.
414 (copy_file): Handle compress_zlib, compress_gnu_zlib and
417 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
418 * doc/binutils.texi: Document
419 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
421 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
423 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
424 --interleave[=<number>].
426 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
428 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
429 (get_compression_header): New.
430 (process_section_headers): Dump compression header if needed.
431 (uncompress_section_contents): Don't free compressed_buffer here.
432 (load_specific_debug_section): Free the compressed buffer, update
433 the section buffer and the section size if uncompress is
436 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
438 * configure: Regenerated.
440 2015-04-02 Mike Frysinger <vapier@gentoo.org>
442 * MAINTAINERS: Update my e-mail address.
444 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
446 * configure: Regenerated.
448 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
450 * configure.ac: Revert the AM_ZLIB change.
451 * Makefile.in: Regenerated.
452 * aclocal.m4: Likewise.
453 * configure: Likewise.
455 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
457 * Makefile.am (ZLIB): New.
459 (AM_CFLAGS): Add $(ZLIBINC).
460 (readelf_LDADD): Add $(ZLIB).
461 * configure.ac (AM_ZLIB): Removed.
462 (zlibdir): New. AC_SUBST.
464 Add --with-system-zlib.
465 * Makefile.in: Regenerated.
466 * config.in: Likewise.
467 * configure: Likewise.
469 2015-03-19 Nick Clifton <nickc@redhat.com>
471 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
473 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
474 Nick Clifton <nickc@redhat.com>
477 * doc/binutils.texi: Note that when objcopy compresses debug
478 sections the compression is only performed if it makes the section
481 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
484 * readelf.c (parse_args): Move nothing to do warning to ...
487 2015-03-10 Nick Clifton <nickc@redhat.com>
490 * readelf.c (parse_args): Enhance check for nothing to do by
491 accounting for the --wide option.
494 * objcopy.c (copy_object): Avoid calling fatal as that does not
495 allow the parent to clean up temporary files.
497 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
500 * readelf.c: Remove support for ELF_ARM_HASENTRY.
502 2015-03-05 Nick Clifton <nickc@redhat.com>
505 * doc/binutils.texi (objcopy): Extend description of
506 --add-gnu-debuglink option to explain that the separate debug info
507 file must exist. Add a description of what to do if the debug
508 info file is built in one place but then installed into a separate
511 2015-03-05 Nick Clifton <nickc@redhat.com>
514 * dlltool.c (temp_file_to_remove): New local array.
515 (unlink_temp_files): New functions - unlinks any file in the
516 temp_file_to_remove array, unless dotdeltemps is set.
517 (gen_exp_file): Add temp files to array.
518 (make_head): Likewise.
519 (make_delay_head): Likewise.
520 (make_tail): Likewise.
521 (gen_lib_file): Call unlink_temp_files.
523 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
525 * objcopy.c (update_sections): New list.
526 (command_line_switch): Add OPTION_UPDATE_SECTION.
527 (copy_options): Add update-section.
528 (copy_usage): Document new option.
529 (is_update_section): New function.
530 (is_strip_section_1): Add check for attempt to update and remove
532 (copy_object): Update size and content of requested sections.
533 (skip_section): Don't copy for updated sections.
534 (copy_main): Handle --update-section.
535 * doc/binutils.texi (objcopy): Add description of --update-section
537 * NEWS: Mention --update-section option.
539 2015-02-26 Nick Clifton <nickc@redhat.com>
542 * coffgrok.c (do_type): Check for an out of range tag index.
543 Check for integer overflow computing array dimension.
544 (do_define): Likewise.
546 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
548 * objcopy.c (init_section_add): Rename optarg to arg in order to
549 avoid shadowing a global variable.
551 2015-02-26 Nick Clifton <nickc@redhat.com>
554 * resrc.c (write_rc_messagetable): Tighten check for invalid
557 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
558 sanitizer by simplifying address difference calculation.
559 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
560 order to avoid arithmetic overflows.
561 (frame_display_row): Cast cfa_offset before printing it.
562 (display_debug_frames): Likewise.
563 Check for an unexpected segment size.
564 Chnage type of 'l' local to dwarf_vma and cast it back to an int
566 (process_cu_tu_index): Tighten check for an invalid ncols value.
567 * readelf.c (process_corefile_note_segment): Check for
568 inote.descdata extending beyond the end of the section.
569 (process_v850_notes): Likewise.
571 2015-02-26 Terry Guo <terry.guo@arm.com>
573 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
576 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
578 * objcopy.c (init_section_add): New function.
579 (section_add_load_file): New function.
580 (copy_main): Make use of new functions.
582 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
584 * od-elf32_avr.c: Add elf32-avr.h include.
585 (OPT_AVRPROP): Define.
586 (options[]): Add 'avr-prop' entry.
587 (elf32_avr_help): Add avr-prop help text.
588 (elf32_avr_dump_avr_prop): New function.
589 (elf32_avr_dump): Add check for avr-prop.
591 2015-02-24 Nick Clifton <nickc@redhat.com>
593 * readelf.c (get_machine_flags): Remove deprecated V850 machine
595 (get_v850_section_type_name): New function. Handles V850 special
597 (get_section_type_name): Add support for V850.
598 (get_v850_elf_note_type): New function. Returns the name of a
600 (print_v850_note): New function. Prints a V850 note.
601 (process_v850_notes): New function. Prints V850 notes.
602 (process_note_sections): Add support for V850.
604 2015-02-24 Mike Frysinger <vapier@gentoo.org>
607 * readelf.c (process_symbol_table): Declare chained. Increment it
608 in every loop. Abort when chained is larger than nchains. Move
609 error check outside of chain loop.
611 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
613 * readelf.c (find_symbol_for_address): Use a binary search to
614 speed up symbol location. Skip check for function symbol type.
615 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
616 list of function symbols.
617 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
618 pass them to find_symbol_for_address.
619 (dump_hppa_unwind): Likewise.
620 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
621 (dump_arm_unwind): Initialise the funtab and nfuns fields.
623 2015-02-24 Nick Clifton <nickc@redhat.com>
625 * objdump.c (dump_section): Extend the warning message displayed
626 when a section cannot be loaded.
628 2015-02-21 Mike Frysinger <vapier@gentoo.org>
630 * readelf.c (process_program_headers): Add newline to warning
633 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
635 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
638 2015-02-13 Nick Clifton <nickc@redhat.com>
641 * dwarf.c (read_leb128): Fix test for shift becoming too large.
643 * coffgrok.c (do_define): Add check for type size overflow.
644 * srconv.c (walk_tree_sfile): Check that enough sections are
645 available before parsing.
649 * dwarf.c (display_debug_aranges): Add check for an excessive
651 (process_cu_tu_index): Check for a row * columns sum being too
654 2015-02-13 Alan Modra <amodra@gmail.com>
656 * dwarf.c: Formatting, whitespace.
657 (process_debug_info): Style fix.
659 2015-02-11 Nick Clifton <nickc@redhat.com>
661 * rl78-decode.opc: Add 'a' attribute to instructions that support
663 * rl78-decode.c: Regenerate.
664 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
667 2015-02-11 Nick Clifton <nickc@redhat.com>
670 * dwarf.c (display_debug_pubnames_worker): Work around compiler
671 bug checking address ranges.
672 (display_debug_frames): Likewise.
673 (display_gdb_index): Likewise.
674 (process_cu_tu_index): Add range check on the ncols value.
676 2015-02-10 Nick Clifton <nickc@redhat.com>
679 * dwarf.c (eh_addr_size): Use an unsigned type.
680 (size_of_encoded_value): Return an unsigned type.
681 (read_leb128): Break if the shift becomes too big.
682 (process_extended_line_op): Do not read the address if the length
684 (read_cie): Warn and fail if the pointer size or segment size are
686 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
687 structure definition.
688 (DWARF2_External_PubNames): Likewise.
689 (DWARF2_External_CompUnit): Likewise.
690 (DWARF2_External_ARange): Likewise.
691 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
693 (eh_addr_size): Update prototype.
696 * dwarf.c (process_debug_info): Zero the debug information array
697 since correct initialisation cannot be relied upon.
698 (process_cu_tu_index): Improve range checks.
701 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
703 * readelf.c (dump_relocations): Handle printing offsets which are
705 (process_corefile_note_segment): Add range check of the namesz
708 2015-02-09 Mark Wielaard <mjw@redhat.com>
710 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
711 and DW_LANG_Fortran08.
713 2015-02-06 Nick Clifton <nickc@redhat.com>
716 * dwarf.c (display_debug_frames): Fix range checks to work on
717 32-bit binaries complied on a 64-bit host.
720 * dwarf.c (xcmalloc): Fail if the arguments are too big.
721 (xcrealloc): Likewise.
722 (xcalloc2): Likewise.
723 * readelf.c (process_mips_specific): Fail if an option has an
726 2015-02-05 Alan Modra <amodra@gmail.com>
729 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
731 2015-02-04 Nick Clifton <nickc@redhat.com>
734 * dwarf.c (read_and_display_attr_value): Test for a block length
735 being so long that it wraps around to before the start of the block.
736 (process_debug_info): Test for section_begin wrapping around to
737 before the start of the section.
738 (display_gdb_index): Test for num_cus being so large that the end
739 address wraps around to before the start of the section.
740 (process_cu_tu_index): Test for j being so large that the section
741 index pool wraps around to before the start of the section.
743 2015-02-03 Nick Clifton <nickc@redhat.com>
746 * dwarf.c (process_debug_info): Add range check.
747 (display_debug_pubnames_worker): Likewise.
748 (display_gdb_index): Fix range check.
749 (process_cu_tu_index): Add range check.
750 * readelf.c (get_data): Change parameter types from size_t to
751 bfd_size_type. Add checks for loss of accuracy when casting from
752 bfd_size_type to size_t.
753 (get_dynamic_data): Likewise.
754 (process_section_groups): Limit number of error messages.
756 2015-02-03 Nick Clifton <nickc@redhat.com>
759 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
761 2015-01-28 James Bowman <james.bowman@ftdichip.com>
763 * readelf.c: Add FT32 support.
765 2015-01-27 Nick Clifton <nickc@redhat.com>
768 * dlltool.c (identify_search_archive): If the last archive was the
769 same as the current archive, terminate the loop.
771 * addr2line.c (slurp_symtab): If the symcount is zero, free the
772 symbol table pointer.
774 * rcparse.y: Add checks to avoid integer divide by zero.
775 * rescoff.c (read_coff_rsrc): Add check on the size of the
777 (read_coff_res_dir): Add check on the nesting level.
778 Check for resource names overrunning the buffer.
779 * resrc.c (write_rc_messagetable): Update formatting.
780 Add check of 'elen' being zero.
782 2015-01-23 Nick Clifton <nickc@redhat.com>
784 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
785 by recent delta, when compiling on for a 32-bit host.
787 2015-01-21 Nick Clifton <nickc@redhat.com>
790 * addr2line.c (main): Call bfd_set_error_program_name.
791 * ar.c (main): Likewise.
792 * coffdump.c (main): Likewise.
793 * cxxfilt.c (main): Likewise.
794 * dlltool.c (main): Likewise.
795 * nlmconv.c (main): Likewise.
796 * nm.c (main): Likewise.
797 * objdump.c (main): Likewise.
798 * size.c (main): Likewise.
799 * srconv.c (main): Likewise.
800 * strings.c (main): Likewise.
801 * sysdump.c (main): Likewise.
802 * windmc.c (main): Likewise.
803 * windres.c (main): Likewise.
804 * objcopy.c (main): Likewise.
805 (copy_relocations_in_section): Check for relocs without associated
808 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
810 * MAINTAINERS: Add self to ARM maintainers list.
812 2015-01-21 Nick Clifton <nickc@redhat.com>
815 * coffgrok.c (do_type): Check that computed ref exists.
816 (doit): Add range checks when computing section for scope.
818 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
820 * dwarf.c (process_debug_info): Properly check abbrev size.
822 2015-01-12 Nick Clifton <nickc@redhat.com>
825 * dwarf.c (process_debug_info): Check for abbrev_base being larger
826 than the section size.
827 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
829 (xcalloc2): New function. Like xcalloc, but checks for overflow.
830 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
831 array. Check for an address_base that is too large.
833 * dwarf.h (xcalloc2): Prototype.
835 2015-01-12 Alan Modra <amodra@gmail.com>
837 * prdbg.c (print_debugging_info): Don't use void* for function
839 * budbg.h (print_debugging_info): Update prototype.
841 2015-01-08 Nick Clifton <nickc@redhat.com>
844 * ojcopy.c (copy_object): Free the symbol table if no symbols
846 (copy_file): Use bfd_close_all_done to close files that could not
849 * sysdump.c (getINT): Fail if reading off the end of the buffer.
850 Replace call to abort with a call to fatal.
851 (getCHARS): Prevetn reading off the end of the buffer.
853 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
855 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
856 range before applying a reloc.
858 2015-01-07 Nick Clifton <nickc@redhat.com>
861 * dlltool.c (scan_obj_file): Break loop if the last archive
862 displayed matches the current archive.
864 * objdump.c (display_any_bfd): Add a depth limit to nested archive
865 display in order to avoid infinite loops.
866 * srconv.c: Replace calls to abort with calls to fatal with an
869 2015-01-06 Nick Clifton <nickc@redhat.com>
872 * coffdump.c (dump_coff_section): Check for a symbol being
873 available before printing its name.
874 (main): Check the return value from coff_grok.
875 * coffgrok.c: Reformat and tidy.
876 Add range checks to most functions.
877 (coff_grok): Return NULL if the input bfd is not in a COFF
879 * coffgrok.h: Reformat and tidy.
880 (struct coff_section): Change the nrelocs field to unsigned.
881 * srconv.c (main): Check the return value from coff_grok.
883 2015-01-05 Nick Clifton <nickc@redhat.com>
886 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
887 help initialize the info.elfinfo field.
888 (print_size_symbols): Add 'synth_count' parameter. Use it to set
889 the is_synthetic parameter when calling print_symbol.
890 (print_symbols): Likewise.
891 (display_rel_file): Pass synth_count to printing function.
892 (display_archive): Break loop if the last archive displayed
893 matches the current archive.
894 * size.c (display_archive): Likewise.
896 2015-01-05 Nick Clifton <nickc@redhat.com>
899 * dwarf.c (alloc_num_debug_info_entries): New variable.
900 (process_debug_info): Set it. Use it to avoid displaying
901 attributes for which there is no info.
902 (display_debug_abbrev): Check that the debug_info_entry index is
903 valid before using it.
904 (display_loc_list_dwo): Likewise.
905 (process_cu_tu_index): Add range check for an overlarge dw_sect
907 (free_debug_memory): Reset alloc_num_debug_info_entries.
908 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
910 (dynamic_section_mips_val): Warn if the timestamp is invalid.
911 (print_mips_got_entry): Add a data_end parameter. Warn if a read
912 would go beyond the end of the data, and return an error value.
913 (process_mips_specific): Do not read options from beyond the end
915 Correct code to display optional data at the end of an option.
916 Warn if there are too many GOT symbols.
917 Update calls to print_mips_got_entry, and handle error returns.
919 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
922 * doc/binutils.texi (dlltool): Correct description of --kill-at
925 2015-01-01 Alan Modra <amodra@gmail.com>
927 * version.c (print_version): Just print current year.
929 2015-01-01 Alan Modra <amodra@gmail.com>
931 Update year range in copyright notice of all files.
933 For older changes see ChangeLog-2014
935 Copyright (C) 2015 Free Software Foundation, Inc.
937 Copying and distribution of this file, with or without modification,
938 are permitted in any medium without royalty provided the copyright
939 notice and this notice are preserved.
945 version-control: never