1 2015-05-13 H.J. Lu <hongjiu.lu@intel.com>
3 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
5 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7 * MAINTAINERS: Add myself as s390 and s390x maintainer.
9 2015-05-12 Stephen Kitt <steve@sk2.org>
11 * dlltool.c (main): Accept -t as an abbreviation for
14 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
16 * dwarf.c (dwarf_regnames_iamcu): New.
17 (init_dwarf_regnames_iamcu): Likewise.
18 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
19 * dwarf.h (init_dwarf_regnames_iamcu): New.
20 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
23 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
25 * elfedit.c (enum elfclass): New.
26 (input_elf_class): Change type to enum elfclass.
27 (output_elf_class): New.
28 (elf_class): Change return type to enum elfclass. Support EM_386
30 (update_elf_header): Check if input and output ELF classes match.
31 (elf_machine): Support EM_386 and EM_IAMCU.
32 (main): Update input_elf_class. Set output_elf_class.
33 * doc/binutils.texi: Update elfedit.
35 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
37 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
38 * readelf.c (guess_is_rela): Likewise.
39 (dump_relocations): Likewise.
40 (get_machine_name): Likewise.
41 (get_elf_section_flags): Likewise.
42 (process_section_headers): Likewise.
43 (is_32bit_abs_reloc): Likewise.
44 (is_32bit_pcrel_reloc): Likewise.
46 2015-04-30 Nick Clifton <nickc@redhat.com>
48 * readelf.c (get_machine_flags): Add description of MeP flags.
50 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
52 * readelf.c (display_s390_gnu_attribute): New function.
53 (process_s390_specific): New function.
54 (process_arch_specific): Call process_s390_specific.
56 2015-04-24 Nick Clifton <nickc@redhat.com>
59 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
60 * readelf.c (uncompress_section_contents): Zero initialise the
63 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
66 * objcopy.c (setup_section): Copy compress status.
68 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
71 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
73 2015-04-14 Nick Clifton <nickc@redhat.com>
75 * readelf.c (target_specific_reloc_handling): Add code to handle
78 2015-04-13 Doug Evans <dje@google.com>
81 * readelf.c (printable_section_name): Constify sec argument.
82 (apply_relocations): Ditto. New arg "size". All callers updated.
83 (load_specific_debug_section): Constify sec argument.
84 Remove side-effect of modifying sec->sh_size.
86 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
88 * objcopy.c (do_debug_sections): Use bit patterns.
89 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
90 and compress_gabi_zlib on non-ELF input.
91 (copy_file): Don't check non-ELF input here.
93 2015-04-09 Nick Clifton <nickc@redhat.com>
95 * readelf.c (get_machine_flags): Report the setting of the string
98 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
100 * objcopy.c (do_debug_sections): Add compress_zlib,
101 compress_gnu_zlib and compress_gabi_zlib.
102 (copy_options): Use optional_argument on compress-debug-sections.
103 (copy_usage): Update --compress-debug-sections.
104 (copy_file): Handle compress_zlib, compress_gnu_zlib and
107 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
108 * doc/binutils.texi: Document
109 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
111 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
113 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
114 --interleave[=<number>].
116 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
118 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
119 (get_compression_header): New.
120 (process_section_headers): Dump compression header if needed.
121 (uncompress_section_contents): Don't free compressed_buffer here.
122 (load_specific_debug_section): Free the compressed buffer, update
123 the section buffer and the section size if uncompress is
126 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
128 * configure: Regenerated.
130 2015-04-02 Mike Frysinger <vapier@gentoo.org>
132 * MAINTAINERS: Update my e-mail address.
134 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
136 * configure: Regenerated.
138 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
140 * configure.ac: Revert the AM_ZLIB change.
141 * Makefile.in: Regenerated.
142 * aclocal.m4: Likewise.
143 * configure: Likewise.
145 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
147 * Makefile.am (ZLIB): New.
149 (AM_CFLAGS): Add $(ZLIBINC).
150 (readelf_LDADD): Add $(ZLIB).
151 * configure.ac (AM_ZLIB): Removed.
152 (zlibdir): New. AC_SUBST.
154 Add --with-system-zlib.
155 * Makefile.in: Regenerated.
156 * config.in: Likewise.
157 * configure: Likewise.
159 2015-03-19 Nick Clifton <nickc@redhat.com>
161 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
163 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
164 Nick Clifton <nickc@redhat.com>
167 * doc/binutils.texi: Note that when objcopy compresses debug
168 sections the compression is only performed if it makes the section
171 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
174 * readelf.c (parse_args): Move nothing to do warning to ...
177 2015-03-10 Nick Clifton <nickc@redhat.com>
180 * readelf.c (parse_args): Enhance check for nothing to do by
181 accounting for the --wide option.
184 * objcopy.c (copy_object): Avoid calling fatal as that does not
185 allow the parent to clean up temporary files.
187 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
190 * readelf.c: Remove support for ELF_ARM_HASENTRY.
192 2015-03-05 Nick Clifton <nickc@redhat.com>
195 * doc/binutils.texi (objcopy): Extend description of
196 --add-gnu-debuglink option to explain that the separate debug info
197 file must exist. Add a description of what to do if the debug
198 info file is built in one place but then installed into a separate
201 2015-03-05 Nick Clifton <nickc@redhat.com>
204 * dlltool.c (temp_file_to_remove): New local array.
205 (unlink_temp_files): New functions - unlinks any file in the
206 temp_file_to_remove array, unless dotdeltemps is set.
207 (gen_exp_file): Add temp files to array.
208 (make_head): Likewise.
209 (make_delay_head): Likewise.
210 (make_tail): Likewise.
211 (gen_lib_file): Call unlink_temp_files.
213 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
215 * objcopy.c (update_sections): New list.
216 (command_line_switch): Add OPTION_UPDATE_SECTION.
217 (copy_options): Add update-section.
218 (copy_usage): Document new option.
219 (is_update_section): New function.
220 (is_strip_section_1): Add check for attempt to update and remove
222 (copy_object): Update size and content of requested sections.
223 (skip_section): Don't copy for updated sections.
224 (copy_main): Handle --update-section.
225 * doc/binutils.texi (objcopy): Add description of --update-section
227 * NEWS: Mention --update-section option.
229 2015-02-26 Nick Clifton <nickc@redhat.com>
232 * coffgrok.c (do_type): Check for an out of range tag index.
233 Check for integer overflow computing array dimension.
234 (do_define): Likewise.
236 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
238 * objcopy.c (init_section_add): Rename optarg to arg in order to
239 avoid shadowing a global variable.
241 2015-02-26 Nick Clifton <nickc@redhat.com>
244 * resrc.c (write_rc_messagetable): Tighten check for invalid
247 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
248 sanitizer by simplifying address difference calculation.
249 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
250 order to avoid arithmetic overflows.
251 (frame_display_row): Cast cfa_offset before printing it.
252 (display_debug_frames): Likewise.
253 Check for an unexpected segment size.
254 Chnage type of 'l' local to dwarf_vma and cast it back to an int
256 (process_cu_tu_index): Tighten check for an invalid ncols value.
257 * readelf.c (process_corefile_note_segment): Check for
258 inote.descdata extending beyond the end of the section.
259 (process_v850_notes): Likewise.
261 2015-02-26 Terry Guo <terry.guo@arm.com>
263 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
266 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
268 * objcopy.c (init_section_add): New function.
269 (section_add_load_file): New function.
270 (copy_main): Make use of new functions.
272 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
274 * od-elf32_avr.c: Add elf32-avr.h include.
275 (OPT_AVRPROP): Define.
276 (options[]): Add 'avr-prop' entry.
277 (elf32_avr_help): Add avr-prop help text.
278 (elf32_avr_dump_avr_prop): New function.
279 (elf32_avr_dump): Add check for avr-prop.
281 2015-02-24 Nick Clifton <nickc@redhat.com>
283 * readelf.c (get_machine_flags): Remove deprecated V850 machine
285 (get_v850_section_type_name): New function. Handles V850 special
287 (get_section_type_name): Add support for V850.
288 (get_v850_elf_note_type): New function. Returns the name of a
290 (print_v850_note): New function. Prints a V850 note.
291 (process_v850_notes): New function. Prints V850 notes.
292 (process_note_sections): Add support for V850.
294 2015-02-24 Mike Frysinger <vapier@gentoo.org>
297 * readelf.c (process_symbol_table): Declare chained. Increment it
298 in every loop. Abort when chained is larger than nchains. Move
299 error check outside of chain loop.
301 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
303 * readelf.c (find_symbol_for_address): Use a binary search to
304 speed up symbol location. Skip check for function symbol type.
305 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
306 list of function symbols.
307 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
308 pass them to find_symbol_for_address.
309 (dump_hppa_unwind): Likewise.
310 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
311 (dump_arm_unwind): Initialise the funtab and nfuns fields.
313 2015-02-24 Nick Clifton <nickc@redhat.com>
315 * objdump.c (dump_section): Extend the warning message displayed
316 when a section cannot be loaded.
318 2015-02-21 Mike Frysinger <vapier@gentoo.org>
320 * readelf.c (process_program_headers): Add newline to warning
323 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
325 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
328 2015-02-13 Nick Clifton <nickc@redhat.com>
331 * dwarf.c (read_leb128): Fix test for shift becoming too large.
333 * coffgrok.c (do_define): Add check for type size overflow.
334 * srconv.c (walk_tree_sfile): Check that enough sections are
335 available before parsing.
339 * dwarf.c (display_debug_aranges): Add check for an excessive
341 (process_cu_tu_index): Check for a row * columns sum being too
344 2015-02-13 Alan Modra <amodra@gmail.com>
346 * dwarf.c: Formatting, whitespace.
347 (process_debug_info): Style fix.
349 2015-02-11 Nick Clifton <nickc@redhat.com>
351 * rl78-decode.opc: Add 'a' attribute to instructions that support
353 * rl78-decode.c: Regenerate.
354 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
357 2015-02-11 Nick Clifton <nickc@redhat.com>
360 * dwarf.c (display_debug_pubnames_worker): Work around compiler
361 bug checking address ranges.
362 (display_debug_frames): Likewise.
363 (display_gdb_index): Likewise.
364 (process_cu_tu_index): Add range check on the ncols value.
366 2015-02-10 Nick Clifton <nickc@redhat.com>
369 * dwarf.c (eh_addr_size): Use an unsigned type.
370 (size_of_encoded_value): Return an unsigned type.
371 (read_leb128): Break if the shift becomes too big.
372 (process_extended_line_op): Do not read the address if the length
374 (read_cie): Warn and fail if the pointer size or segment size are
376 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
377 structure definition.
378 (DWARF2_External_PubNames): Likewise.
379 (DWARF2_External_CompUnit): Likewise.
380 (DWARF2_External_ARange): Likewise.
381 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
383 (eh_addr_size): Update prototype.
386 * dwarf.c (process_debug_info): Zero the debug information array
387 since correct initialisation cannot be relied upon.
388 (process_cu_tu_index): Improve range checks.
391 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
393 * readelf.c (dump_relocations): Handle printing offsets which are
395 (process_corefile_note_segment): Add range check of the namesz
398 2015-02-09 Mark Wielaard <mjw@redhat.com>
400 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
401 and DW_LANG_Fortran08.
403 2015-02-06 Nick Clifton <nickc@redhat.com>
406 * dwarf.c (display_debug_frames): Fix range checks to work on
407 32-bit binaries complied on a 64-bit host.
410 * dwarf.c (xcmalloc): Fail if the arguments are too big.
411 (xcrealloc): Likewise.
412 (xcalloc2): Likewise.
413 * readelf.c (process_mips_specific): Fail if an option has an
416 2015-02-05 Alan Modra <amodra@gmail.com>
419 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
421 2015-02-04 Nick Clifton <nickc@redhat.com>
424 * dwarf.c (read_and_display_attr_value): Test for a block length
425 being so long that it wraps around to before the start of the block.
426 (process_debug_info): Test for section_begin wrapping around to
427 before the start of the section.
428 (display_gdb_index): Test for num_cus being so large that the end
429 address wraps around to before the start of the section.
430 (process_cu_tu_index): Test for j being so large that the section
431 index pool wraps around to before the start of the section.
433 2015-02-03 Nick Clifton <nickc@redhat.com>
436 * dwarf.c (process_debug_info): Add range check.
437 (display_debug_pubnames_worker): Likewise.
438 (display_gdb_index): Fix range check.
439 (process_cu_tu_index): Add range check.
440 * readelf.c (get_data): Change parameter types from size_t to
441 bfd_size_type. Add checks for loss of accuracy when casting from
442 bfd_size_type to size_t.
443 (get_dynamic_data): Likewise.
444 (process_section_groups): Limit number of error messages.
446 2015-02-03 Nick Clifton <nickc@redhat.com>
449 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
451 2015-01-28 James Bowman <james.bowman@ftdichip.com>
453 * readelf.c: Add FT32 support.
455 2015-01-27 Nick Clifton <nickc@redhat.com>
458 * dlltool.c (identify_search_archive): If the last archive was the
459 same as the current archive, terminate the loop.
461 * addr2line.c (slurp_symtab): If the symcount is zero, free the
462 symbol table pointer.
464 * rcparse.y: Add checks to avoid integer divide by zero.
465 * rescoff.c (read_coff_rsrc): Add check on the size of the
467 (read_coff_res_dir): Add check on the nesting level.
468 Check for resource names overrunning the buffer.
469 * resrc.c (write_rc_messagetable): Update formatting.
470 Add check of 'elen' being zero.
472 2015-01-23 Nick Clifton <nickc@redhat.com>
474 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
475 by recent delta, when compiling on for a 32-bit host.
477 2015-01-21 Nick Clifton <nickc@redhat.com>
480 * addr2line.c (main): Call bfd_set_error_program_name.
481 * ar.c (main): Likewise.
482 * coffdump.c (main): Likewise.
483 * cxxfilt.c (main): Likewise.
484 * dlltool.c (main): Likewise.
485 * nlmconv.c (main): Likewise.
486 * nm.c (main): Likewise.
487 * objdump.c (main): Likewise.
488 * size.c (main): Likewise.
489 * srconv.c (main): Likewise.
490 * strings.c (main): Likewise.
491 * sysdump.c (main): Likewise.
492 * windmc.c (main): Likewise.
493 * windres.c (main): Likewise.
494 * objcopy.c (main): Likewise.
495 (copy_relocations_in_section): Check for relocs without associated
498 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
500 * MAINTAINERS: Add self to ARM maintainers list.
502 2015-01-21 Nick Clifton <nickc@redhat.com>
505 * coffgrok.c (do_type): Check that computed ref exists.
506 (doit): Add range checks when computing section for scope.
508 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
510 * dwarf.c (process_debug_info): Properly check abbrev size.
512 2015-01-12 Nick Clifton <nickc@redhat.com>
515 * dwarf.c (process_debug_info): Check for abbrev_base being larger
516 than the section size.
517 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
519 (xcalloc2): New function. Like xcalloc, but checks for overflow.
520 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
521 array. Check for an address_base that is too large.
523 * dwarf.h (xcalloc2): Prototype.
525 2015-01-12 Alan Modra <amodra@gmail.com>
527 * prdbg.c (print_debugging_info): Don't use void* for function
529 * budbg.h (print_debugging_info): Update prototype.
531 2015-01-08 Nick Clifton <nickc@redhat.com>
534 * ojcopy.c (copy_object): Free the symbol table if no symbols
536 (copy_file): Use bfd_close_all_done to close files that could not
539 * sysdump.c (getINT): Fail if reading off the end of the buffer.
540 Replace call to abort with a call to fatal.
541 (getCHARS): Prevetn reading off the end of the buffer.
543 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
545 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
546 range before applying a reloc.
548 2015-01-07 Nick Clifton <nickc@redhat.com>
551 * dlltool.c (scan_obj_file): Break loop if the last archive
552 displayed matches the current archive.
554 * objdump.c (display_any_bfd): Add a depth limit to nested archive
555 display in order to avoid infinite loops.
556 * srconv.c: Replace calls to abort with calls to fatal with an
559 2015-01-06 Nick Clifton <nickc@redhat.com>
562 * coffdump.c (dump_coff_section): Check for a symbol being
563 available before printing its name.
564 (main): Check the return value from coff_grok.
565 * coffgrok.c: Reformat and tidy.
566 Add range checks to most functions.
567 (coff_grok): Return NULL if the input bfd is not in a COFF
569 * coffgrok.h: Reformat and tidy.
570 (struct coff_section): Change the nrelocs field to unsigned.
571 * srconv.c (main): Check the return value from coff_grok.
573 2015-01-05 Nick Clifton <nickc@redhat.com>
576 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
577 help initialize the info.elfinfo field.
578 (print_size_symbols): Add 'synth_count' parameter. Use it to set
579 the is_synthetic parameter when calling print_symbol.
580 (print_symbols): Likewise.
581 (display_rel_file): Pass synth_count to printing function.
582 (display_archive): Break loop if the last archive displayed
583 matches the current archive.
584 * size.c (display_archive): Likewise.
586 2015-01-05 Nick Clifton <nickc@redhat.com>
589 * dwarf.c (alloc_num_debug_info_entries): New variable.
590 (process_debug_info): Set it. Use it to avoid displaying
591 attributes for which there is no info.
592 (display_debug_abbrev): Check that the debug_info_entry index is
593 valid before using it.
594 (display_loc_list_dwo): Likewise.
595 (process_cu_tu_index): Add range check for an overlarge dw_sect
597 (free_debug_memory): Reset alloc_num_debug_info_entries.
598 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
600 (dynamic_section_mips_val): Warn if the timestamp is invalid.
601 (print_mips_got_entry): Add a data_end parameter. Warn if a read
602 would go beyond the end of the data, and return an error value.
603 (process_mips_specific): Do not read options from beyond the end
605 Correct code to display optional data at the end of an option.
606 Warn if there are too many GOT symbols.
607 Update calls to print_mips_got_entry, and handle error returns.
609 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
612 * doc/binutils.texi (dlltool): Correct description of --kill-at
615 2015-01-01 Alan Modra <amodra@gmail.com>
617 * version.c (print_version): Just print current year.
619 2015-01-01 Alan Modra <amodra@gmail.com>
621 Update year range in copyright notice of all files.
623 For older changes see ChangeLog-2014
625 Copyright (C) 2015 Free Software Foundation, Inc.
627 Copying and distribution of this file, with or without modification,
628 are permitted in any medium without royalty provided the copyright
629 notice and this notice are preserved.
635 version-control: never