1 2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
4 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
6 2015-05-15 Nick Clifton <nickc@redhat.com>
8 * readelf.c (options): Add "decompress".
9 (usage): Mention -z/--decompress.
10 (parse_args): Handle -z.
11 (uncompress_section_contents): Move to earlier in the file.
12 (dump_section_as_strings): If requested, decompress the section
14 (dump_section_as_bytes): Likewise.
15 * doc/binutils.texi: Document the new option.
17 2015-05-14 Peter Bergner <bergner@vnet.ibm.com>
19 * MAINTAINERS: Add myself as PPC maintainer.
21 2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
23 * readelf.c (uncompress_section_contents): Add a parameter for
24 uncompressed size. Don't check the zlib header.
25 (load_specific_debug_section): Updated.
27 2015-05-15 Nick Clifton <nickc@redhat.com>
30 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
32 (struct dwarf_section_display): Change bitfield to boolean.
33 (reloc_at): Add prototype.
34 * dwarf.c (display_loc_list): Ignore list terminators if there are
36 (display_debug_loc): Issue a warning if there are relocs against
37 the .debug_loc section.
38 (display_displays): Initialise reloc_info and num_relocs fields.
39 * objdump.c (load_specific_debug_section): Initialise reloc_info
40 and num_relocs fields.
41 (reloc_at): New function.
42 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
44 (reloc_at): New function.
45 (apply_relocations): Add relocs_return and num_relocs_return
46 parameters. Fill them in with the loaded relocs if non-NULL.
47 (dump_section_as_bytes): Update call to apply_relocations.
48 (load_specific_debug_section): Initialise reloc_info and
51 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
53 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
55 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
57 * MAINTAINERS: Add myself as s390 and s390x maintainer.
59 2015-05-12 Stephen Kitt <steve@sk2.org>
61 * dlltool.c (main): Accept -t as an abbreviation for
64 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
66 * dwarf.c (dwarf_regnames_iamcu): New.
67 (init_dwarf_regnames_iamcu): Likewise.
68 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
69 * dwarf.h (init_dwarf_regnames_iamcu): New.
70 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
73 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
75 * elfedit.c (enum elfclass): New.
76 (input_elf_class): Change type to enum elfclass.
77 (output_elf_class): New.
78 (elf_class): Change return type to enum elfclass. Support EM_386
80 (update_elf_header): Check if input and output ELF classes match.
81 (elf_machine): Support EM_386 and EM_IAMCU.
82 (main): Update input_elf_class. Set output_elf_class.
83 * doc/binutils.texi: Update elfedit.
85 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
87 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
88 * readelf.c (guess_is_rela): Likewise.
89 (dump_relocations): Likewise.
90 (get_machine_name): Likewise.
91 (get_elf_section_flags): Likewise.
92 (process_section_headers): Likewise.
93 (is_32bit_abs_reloc): Likewise.
94 (is_32bit_pcrel_reloc): Likewise.
96 2015-04-30 Nick Clifton <nickc@redhat.com>
98 * readelf.c (get_machine_flags): Add description of MeP flags.
100 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
102 * readelf.c (display_s390_gnu_attribute): New function.
103 (process_s390_specific): New function.
104 (process_arch_specific): Call process_s390_specific.
106 2015-04-24 Nick Clifton <nickc@redhat.com>
109 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
110 * readelf.c (uncompress_section_contents): Zero initialise the
113 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
116 * objcopy.c (setup_section): Copy compress status.
118 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
121 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
123 2015-04-14 Nick Clifton <nickc@redhat.com>
125 * readelf.c (target_specific_reloc_handling): Add code to handle
128 2015-04-13 Doug Evans <dje@google.com>
131 * readelf.c (printable_section_name): Constify sec argument.
132 (apply_relocations): Ditto. New arg "size". All callers updated.
133 (load_specific_debug_section): Constify sec argument.
134 Remove side-effect of modifying sec->sh_size.
136 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
138 * objcopy.c (do_debug_sections): Use bit patterns.
139 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
140 and compress_gabi_zlib on non-ELF input.
141 (copy_file): Don't check non-ELF input here.
143 2015-04-09 Nick Clifton <nickc@redhat.com>
145 * readelf.c (get_machine_flags): Report the setting of the string
148 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
150 * objcopy.c (do_debug_sections): Add compress_zlib,
151 compress_gnu_zlib and compress_gabi_zlib.
152 (copy_options): Use optional_argument on compress-debug-sections.
153 (copy_usage): Update --compress-debug-sections.
154 (copy_file): Handle compress_zlib, compress_gnu_zlib and
157 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
158 * doc/binutils.texi: Document
159 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
161 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
163 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
164 --interleave[=<number>].
166 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
168 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
169 (get_compression_header): New.
170 (process_section_headers): Dump compression header if needed.
171 (uncompress_section_contents): Don't free compressed_buffer here.
172 (load_specific_debug_section): Free the compressed buffer, update
173 the section buffer and the section size if uncompress is
176 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
178 * configure: Regenerated.
180 2015-04-02 Mike Frysinger <vapier@gentoo.org>
182 * MAINTAINERS: Update my e-mail address.
184 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
186 * configure: Regenerated.
188 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
190 * configure.ac: Revert the AM_ZLIB change.
191 * Makefile.in: Regenerated.
192 * aclocal.m4: Likewise.
193 * configure: Likewise.
195 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
197 * Makefile.am (ZLIB): New.
199 (AM_CFLAGS): Add $(ZLIBINC).
200 (readelf_LDADD): Add $(ZLIB).
201 * configure.ac (AM_ZLIB): Removed.
202 (zlibdir): New. AC_SUBST.
204 Add --with-system-zlib.
205 * Makefile.in: Regenerated.
206 * config.in: Likewise.
207 * configure: Likewise.
209 2015-03-19 Nick Clifton <nickc@redhat.com>
211 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
213 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
214 Nick Clifton <nickc@redhat.com>
217 * doc/binutils.texi: Note that when objcopy compresses debug
218 sections the compression is only performed if it makes the section
221 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
224 * readelf.c (parse_args): Move nothing to do warning to ...
227 2015-03-10 Nick Clifton <nickc@redhat.com>
230 * readelf.c (parse_args): Enhance check for nothing to do by
231 accounting for the --wide option.
234 * objcopy.c (copy_object): Avoid calling fatal as that does not
235 allow the parent to clean up temporary files.
237 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
240 * readelf.c: Remove support for ELF_ARM_HASENTRY.
242 2015-03-05 Nick Clifton <nickc@redhat.com>
245 * doc/binutils.texi (objcopy): Extend description of
246 --add-gnu-debuglink option to explain that the separate debug info
247 file must exist. Add a description of what to do if the debug
248 info file is built in one place but then installed into a separate
251 2015-03-05 Nick Clifton <nickc@redhat.com>
254 * dlltool.c (temp_file_to_remove): New local array.
255 (unlink_temp_files): New functions - unlinks any file in the
256 temp_file_to_remove array, unless dotdeltemps is set.
257 (gen_exp_file): Add temp files to array.
258 (make_head): Likewise.
259 (make_delay_head): Likewise.
260 (make_tail): Likewise.
261 (gen_lib_file): Call unlink_temp_files.
263 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
265 * objcopy.c (update_sections): New list.
266 (command_line_switch): Add OPTION_UPDATE_SECTION.
267 (copy_options): Add update-section.
268 (copy_usage): Document new option.
269 (is_update_section): New function.
270 (is_strip_section_1): Add check for attempt to update and remove
272 (copy_object): Update size and content of requested sections.
273 (skip_section): Don't copy for updated sections.
274 (copy_main): Handle --update-section.
275 * doc/binutils.texi (objcopy): Add description of --update-section
277 * NEWS: Mention --update-section option.
279 2015-02-26 Nick Clifton <nickc@redhat.com>
282 * coffgrok.c (do_type): Check for an out of range tag index.
283 Check for integer overflow computing array dimension.
284 (do_define): Likewise.
286 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
288 * objcopy.c (init_section_add): Rename optarg to arg in order to
289 avoid shadowing a global variable.
291 2015-02-26 Nick Clifton <nickc@redhat.com>
294 * resrc.c (write_rc_messagetable): Tighten check for invalid
297 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
298 sanitizer by simplifying address difference calculation.
299 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
300 order to avoid arithmetic overflows.
301 (frame_display_row): Cast cfa_offset before printing it.
302 (display_debug_frames): Likewise.
303 Check for an unexpected segment size.
304 Chnage type of 'l' local to dwarf_vma and cast it back to an int
306 (process_cu_tu_index): Tighten check for an invalid ncols value.
307 * readelf.c (process_corefile_note_segment): Check for
308 inote.descdata extending beyond the end of the section.
309 (process_v850_notes): Likewise.
311 2015-02-26 Terry Guo <terry.guo@arm.com>
313 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
316 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
318 * objcopy.c (init_section_add): New function.
319 (section_add_load_file): New function.
320 (copy_main): Make use of new functions.
322 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
324 * od-elf32_avr.c: Add elf32-avr.h include.
325 (OPT_AVRPROP): Define.
326 (options[]): Add 'avr-prop' entry.
327 (elf32_avr_help): Add avr-prop help text.
328 (elf32_avr_dump_avr_prop): New function.
329 (elf32_avr_dump): Add check for avr-prop.
331 2015-02-24 Nick Clifton <nickc@redhat.com>
333 * readelf.c (get_machine_flags): Remove deprecated V850 machine
335 (get_v850_section_type_name): New function. Handles V850 special
337 (get_section_type_name): Add support for V850.
338 (get_v850_elf_note_type): New function. Returns the name of a
340 (print_v850_note): New function. Prints a V850 note.
341 (process_v850_notes): New function. Prints V850 notes.
342 (process_note_sections): Add support for V850.
344 2015-02-24 Mike Frysinger <vapier@gentoo.org>
347 * readelf.c (process_symbol_table): Declare chained. Increment it
348 in every loop. Abort when chained is larger than nchains. Move
349 error check outside of chain loop.
351 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
353 * readelf.c (find_symbol_for_address): Use a binary search to
354 speed up symbol location. Skip check for function symbol type.
355 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
356 list of function symbols.
357 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
358 pass them to find_symbol_for_address.
359 (dump_hppa_unwind): Likewise.
360 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
361 (dump_arm_unwind): Initialise the funtab and nfuns fields.
363 2015-02-24 Nick Clifton <nickc@redhat.com>
365 * objdump.c (dump_section): Extend the warning message displayed
366 when a section cannot be loaded.
368 2015-02-21 Mike Frysinger <vapier@gentoo.org>
370 * readelf.c (process_program_headers): Add newline to warning
373 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
375 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
378 2015-02-13 Nick Clifton <nickc@redhat.com>
381 * dwarf.c (read_leb128): Fix test for shift becoming too large.
383 * coffgrok.c (do_define): Add check for type size overflow.
384 * srconv.c (walk_tree_sfile): Check that enough sections are
385 available before parsing.
389 * dwarf.c (display_debug_aranges): Add check for an excessive
391 (process_cu_tu_index): Check for a row * columns sum being too
394 2015-02-13 Alan Modra <amodra@gmail.com>
396 * dwarf.c: Formatting, whitespace.
397 (process_debug_info): Style fix.
399 2015-02-11 Nick Clifton <nickc@redhat.com>
401 * rl78-decode.opc: Add 'a' attribute to instructions that support
403 * rl78-decode.c: Regenerate.
404 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
407 2015-02-11 Nick Clifton <nickc@redhat.com>
410 * dwarf.c (display_debug_pubnames_worker): Work around compiler
411 bug checking address ranges.
412 (display_debug_frames): Likewise.
413 (display_gdb_index): Likewise.
414 (process_cu_tu_index): Add range check on the ncols value.
416 2015-02-10 Nick Clifton <nickc@redhat.com>
419 * dwarf.c (eh_addr_size): Use an unsigned type.
420 (size_of_encoded_value): Return an unsigned type.
421 (read_leb128): Break if the shift becomes too big.
422 (process_extended_line_op): Do not read the address if the length
424 (read_cie): Warn and fail if the pointer size or segment size are
426 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
427 structure definition.
428 (DWARF2_External_PubNames): Likewise.
429 (DWARF2_External_CompUnit): Likewise.
430 (DWARF2_External_ARange): Likewise.
431 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
433 (eh_addr_size): Update prototype.
436 * dwarf.c (process_debug_info): Zero the debug information array
437 since correct initialisation cannot be relied upon.
438 (process_cu_tu_index): Improve range checks.
441 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
443 * readelf.c (dump_relocations): Handle printing offsets which are
445 (process_corefile_note_segment): Add range check of the namesz
448 2015-02-09 Mark Wielaard <mjw@redhat.com>
450 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
451 and DW_LANG_Fortran08.
453 2015-02-06 Nick Clifton <nickc@redhat.com>
456 * dwarf.c (display_debug_frames): Fix range checks to work on
457 32-bit binaries complied on a 64-bit host.
460 * dwarf.c (xcmalloc): Fail if the arguments are too big.
461 (xcrealloc): Likewise.
462 (xcalloc2): Likewise.
463 * readelf.c (process_mips_specific): Fail if an option has an
466 2015-02-05 Alan Modra <amodra@gmail.com>
469 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
471 2015-02-04 Nick Clifton <nickc@redhat.com>
474 * dwarf.c (read_and_display_attr_value): Test for a block length
475 being so long that it wraps around to before the start of the block.
476 (process_debug_info): Test for section_begin wrapping around to
477 before the start of the section.
478 (display_gdb_index): Test for num_cus being so large that the end
479 address wraps around to before the start of the section.
480 (process_cu_tu_index): Test for j being so large that the section
481 index pool wraps around to before the start of the section.
483 2015-02-03 Nick Clifton <nickc@redhat.com>
486 * dwarf.c (process_debug_info): Add range check.
487 (display_debug_pubnames_worker): Likewise.
488 (display_gdb_index): Fix range check.
489 (process_cu_tu_index): Add range check.
490 * readelf.c (get_data): Change parameter types from size_t to
491 bfd_size_type. Add checks for loss of accuracy when casting from
492 bfd_size_type to size_t.
493 (get_dynamic_data): Likewise.
494 (process_section_groups): Limit number of error messages.
496 2015-02-03 Nick Clifton <nickc@redhat.com>
499 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
501 2015-01-28 James Bowman <james.bowman@ftdichip.com>
503 * readelf.c: Add FT32 support.
505 2015-01-27 Nick Clifton <nickc@redhat.com>
508 * dlltool.c (identify_search_archive): If the last archive was the
509 same as the current archive, terminate the loop.
511 * addr2line.c (slurp_symtab): If the symcount is zero, free the
512 symbol table pointer.
514 * rcparse.y: Add checks to avoid integer divide by zero.
515 * rescoff.c (read_coff_rsrc): Add check on the size of the
517 (read_coff_res_dir): Add check on the nesting level.
518 Check for resource names overrunning the buffer.
519 * resrc.c (write_rc_messagetable): Update formatting.
520 Add check of 'elen' being zero.
522 2015-01-23 Nick Clifton <nickc@redhat.com>
524 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
525 by recent delta, when compiling on for a 32-bit host.
527 2015-01-21 Nick Clifton <nickc@redhat.com>
530 * addr2line.c (main): Call bfd_set_error_program_name.
531 * ar.c (main): Likewise.
532 * coffdump.c (main): Likewise.
533 * cxxfilt.c (main): Likewise.
534 * dlltool.c (main): Likewise.
535 * nlmconv.c (main): Likewise.
536 * nm.c (main): Likewise.
537 * objdump.c (main): Likewise.
538 * size.c (main): Likewise.
539 * srconv.c (main): Likewise.
540 * strings.c (main): Likewise.
541 * sysdump.c (main): Likewise.
542 * windmc.c (main): Likewise.
543 * windres.c (main): Likewise.
544 * objcopy.c (main): Likewise.
545 (copy_relocations_in_section): Check for relocs without associated
548 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
550 * MAINTAINERS: Add self to ARM maintainers list.
552 2015-01-21 Nick Clifton <nickc@redhat.com>
555 * coffgrok.c (do_type): Check that computed ref exists.
556 (doit): Add range checks when computing section for scope.
558 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
560 * dwarf.c (process_debug_info): Properly check abbrev size.
562 2015-01-12 Nick Clifton <nickc@redhat.com>
565 * dwarf.c (process_debug_info): Check for abbrev_base being larger
566 than the section size.
567 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
569 (xcalloc2): New function. Like xcalloc, but checks for overflow.
570 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
571 array. Check for an address_base that is too large.
573 * dwarf.h (xcalloc2): Prototype.
575 2015-01-12 Alan Modra <amodra@gmail.com>
577 * prdbg.c (print_debugging_info): Don't use void* for function
579 * budbg.h (print_debugging_info): Update prototype.
581 2015-01-08 Nick Clifton <nickc@redhat.com>
584 * ojcopy.c (copy_object): Free the symbol table if no symbols
586 (copy_file): Use bfd_close_all_done to close files that could not
589 * sysdump.c (getINT): Fail if reading off the end of the buffer.
590 Replace call to abort with a call to fatal.
591 (getCHARS): Prevetn reading off the end of the buffer.
593 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
595 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
596 range before applying a reloc.
598 2015-01-07 Nick Clifton <nickc@redhat.com>
601 * dlltool.c (scan_obj_file): Break loop if the last archive
602 displayed matches the current archive.
604 * objdump.c (display_any_bfd): Add a depth limit to nested archive
605 display in order to avoid infinite loops.
606 * srconv.c: Replace calls to abort with calls to fatal with an
609 2015-01-06 Nick Clifton <nickc@redhat.com>
612 * coffdump.c (dump_coff_section): Check for a symbol being
613 available before printing its name.
614 (main): Check the return value from coff_grok.
615 * coffgrok.c: Reformat and tidy.
616 Add range checks to most functions.
617 (coff_grok): Return NULL if the input bfd is not in a COFF
619 * coffgrok.h: Reformat and tidy.
620 (struct coff_section): Change the nrelocs field to unsigned.
621 * srconv.c (main): Check the return value from coff_grok.
623 2015-01-05 Nick Clifton <nickc@redhat.com>
626 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
627 help initialize the info.elfinfo field.
628 (print_size_symbols): Add 'synth_count' parameter. Use it to set
629 the is_synthetic parameter when calling print_symbol.
630 (print_symbols): Likewise.
631 (display_rel_file): Pass synth_count to printing function.
632 (display_archive): Break loop if the last archive displayed
633 matches the current archive.
634 * size.c (display_archive): Likewise.
636 2015-01-05 Nick Clifton <nickc@redhat.com>
639 * dwarf.c (alloc_num_debug_info_entries): New variable.
640 (process_debug_info): Set it. Use it to avoid displaying
641 attributes for which there is no info.
642 (display_debug_abbrev): Check that the debug_info_entry index is
643 valid before using it.
644 (display_loc_list_dwo): Likewise.
645 (process_cu_tu_index): Add range check for an overlarge dw_sect
647 (free_debug_memory): Reset alloc_num_debug_info_entries.
648 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
650 (dynamic_section_mips_val): Warn if the timestamp is invalid.
651 (print_mips_got_entry): Add a data_end parameter. Warn if a read
652 would go beyond the end of the data, and return an error value.
653 (process_mips_specific): Do not read options from beyond the end
655 Correct code to display optional data at the end of an option.
656 Warn if there are too many GOT symbols.
657 Update calls to print_mips_got_entry, and handle error returns.
659 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
662 * doc/binutils.texi (dlltool): Correct description of --kill-at
665 2015-01-01 Alan Modra <amodra@gmail.com>
667 * version.c (print_version): Just print current year.
669 2015-01-01 Alan Modra <amodra@gmail.com>
671 Update year range in copyright notice of all files.
673 For older changes see ChangeLog-2014
675 Copyright (C) 2015 Free Software Foundation, Inc.
677 Copying and distribution of this file, with or without modification,
678 are permitted in any medium without royalty provided the copyright
679 notice and this notice are preserved.
685 version-control: never