1 2015-05-12 Stephen Kitt <steve@sk2.org>
3 * dlltool.c (main): Accept -t as an abbreviation for
6 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
8 * dwarf.c (dwarf_regnames_iamcu): New.
9 (init_dwarf_regnames_iamcu): Likewise.
10 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
11 * dwarf.h (init_dwarf_regnames_iamcu): New.
12 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
15 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
17 * elfedit.c (enum elfclass): New.
18 (input_elf_class): Change type to enum elfclass.
19 (output_elf_class): New.
20 (elf_class): Change return type to enum elfclass. Support EM_386
22 (update_elf_header): Check if input and output ELF classes match.
23 (elf_machine): Support EM_386 and EM_IAMCU.
24 (main): Update input_elf_class. Set output_elf_class.
25 * doc/binutils.texi: Update elfedit.
27 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
29 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
30 * readelf.c (guess_is_rela): Likewise.
31 (dump_relocations): Likewise.
32 (get_machine_name): Likewise.
33 (get_elf_section_flags): Likewise.
34 (process_section_headers): Likewise.
35 (is_32bit_abs_reloc): Likewise.
36 (is_32bit_pcrel_reloc): Likewise.
38 2015-04-30 Nick Clifton <nickc@redhat.com>
40 * readelf.c (get_machine_flags): Add description of MeP flags.
42 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
44 * readelf.c (display_s390_gnu_attribute): New function.
45 (process_s390_specific): New function.
46 (process_arch_specific): Call process_s390_specific.
48 2015-04-24 Nick Clifton <nickc@redhat.com>
51 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
52 * readelf.c (uncompress_section_contents): Zero initialise the
55 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
58 * objcopy.c (setup_section): Copy compress status.
60 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
63 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
65 2015-04-14 Nick Clifton <nickc@redhat.com>
67 * readelf.c (target_specific_reloc_handling): Add code to handle
70 2015-04-13 Doug Evans <dje@google.com>
73 * readelf.c (printable_section_name): Constify sec argument.
74 (apply_relocations): Ditto. New arg "size". All callers updated.
75 (load_specific_debug_section): Constify sec argument.
76 Remove side-effect of modifying sec->sh_size.
78 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
80 * objcopy.c (do_debug_sections): Use bit patterns.
81 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
82 and compress_gabi_zlib on non-ELF input.
83 (copy_file): Don't check non-ELF input here.
85 2015-04-09 Nick Clifton <nickc@redhat.com>
87 * readelf.c (get_machine_flags): Report the setting of the string
90 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
92 * objcopy.c (do_debug_sections): Add compress_zlib,
93 compress_gnu_zlib and compress_gabi_zlib.
94 (copy_options): Use optional_argument on compress-debug-sections.
95 (copy_usage): Update --compress-debug-sections.
96 (copy_file): Handle compress_zlib, compress_gnu_zlib and
99 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
100 * doc/binutils.texi: Document
101 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
103 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
105 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
106 --interleave[=<number>].
108 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
110 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
111 (get_compression_header): New.
112 (process_section_headers): Dump compression header if needed.
113 (uncompress_section_contents): Don't free compressed_buffer here.
114 (load_specific_debug_section): Free the compressed buffer, update
115 the section buffer and the section size if uncompress is
118 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
120 * configure: Regenerated.
122 2015-04-02 Mike Frysinger <vapier@gentoo.org>
124 * MAINTAINERS: Update my e-mail address.
126 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
128 * configure: Regenerated.
130 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
132 * configure.ac: Revert the AM_ZLIB change.
133 * Makefile.in: Regenerated.
134 * aclocal.m4: Likewise.
135 * configure: Likewise.
137 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
139 * Makefile.am (ZLIB): New.
141 (AM_CFLAGS): Add $(ZLIBINC).
142 (readelf_LDADD): Add $(ZLIB).
143 * configure.ac (AM_ZLIB): Removed.
144 (zlibdir): New. AC_SUBST.
146 Add --with-system-zlib.
147 * Makefile.in: Regenerated.
148 * config.in: Likewise.
149 * configure: Likewise.
151 2015-03-19 Nick Clifton <nickc@redhat.com>
153 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
155 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
156 Nick Clifton <nickc@redhat.com>
159 * doc/binutils.texi: Note that when objcopy compresses debug
160 sections the compression is only performed if it makes the section
163 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
166 * readelf.c (parse_args): Move nothing to do warning to ...
169 2015-03-10 Nick Clifton <nickc@redhat.com>
172 * readelf.c (parse_args): Enhance check for nothing to do by
173 accounting for the --wide option.
176 * objcopy.c (copy_object): Avoid calling fatal as that does not
177 allow the parent to clean up temporary files.
179 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
182 * readelf.c: Remove support for ELF_ARM_HASENTRY.
184 2015-03-05 Nick Clifton <nickc@redhat.com>
187 * doc/binutils.texi (objcopy): Extend description of
188 --add-gnu-debuglink option to explain that the separate debug info
189 file must exist. Add a description of what to do if the debug
190 info file is built in one place but then installed into a separate
193 2015-03-05 Nick Clifton <nickc@redhat.com>
196 * dlltool.c (temp_file_to_remove): New local array.
197 (unlink_temp_files): New functions - unlinks any file in the
198 temp_file_to_remove array, unless dotdeltemps is set.
199 (gen_exp_file): Add temp files to array.
200 (make_head): Likewise.
201 (make_delay_head): Likewise.
202 (make_tail): Likewise.
203 (gen_lib_file): Call unlink_temp_files.
205 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
207 * objcopy.c (update_sections): New list.
208 (command_line_switch): Add OPTION_UPDATE_SECTION.
209 (copy_options): Add update-section.
210 (copy_usage): Document new option.
211 (is_update_section): New function.
212 (is_strip_section_1): Add check for attempt to update and remove
214 (copy_object): Update size and content of requested sections.
215 (skip_section): Don't copy for updated sections.
216 (copy_main): Handle --update-section.
217 * doc/binutils.texi (objcopy): Add description of --update-section
219 * NEWS: Mention --update-section option.
221 2015-02-26 Nick Clifton <nickc@redhat.com>
224 * coffgrok.c (do_type): Check for an out of range tag index.
225 Check for integer overflow computing array dimension.
226 (do_define): Likewise.
228 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
230 * objcopy.c (init_section_add): Rename optarg to arg in order to
231 avoid shadowing a global variable.
233 2015-02-26 Nick Clifton <nickc@redhat.com>
236 * resrc.c (write_rc_messagetable): Tighten check for invalid
239 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
240 sanitizer by simplifying address difference calculation.
241 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
242 order to avoid arithmetic overflows.
243 (frame_display_row): Cast cfa_offset before printing it.
244 (display_debug_frames): Likewise.
245 Check for an unexpected segment size.
246 Chnage type of 'l' local to dwarf_vma and cast it back to an int
248 (process_cu_tu_index): Tighten check for an invalid ncols value.
249 * readelf.c (process_corefile_note_segment): Check for
250 inote.descdata extending beyond the end of the section.
251 (process_v850_notes): Likewise.
253 2015-02-26 Terry Guo <terry.guo@arm.com>
255 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
258 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
260 * objcopy.c (init_section_add): New function.
261 (section_add_load_file): New function.
262 (copy_main): Make use of new functions.
264 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
266 * od-elf32_avr.c: Add elf32-avr.h include.
267 (OPT_AVRPROP): Define.
268 (options[]): Add 'avr-prop' entry.
269 (elf32_avr_help): Add avr-prop help text.
270 (elf32_avr_dump_avr_prop): New function.
271 (elf32_avr_dump): Add check for avr-prop.
273 2015-02-24 Nick Clifton <nickc@redhat.com>
275 * readelf.c (get_machine_flags): Remove deprecated V850 machine
277 (get_v850_section_type_name): New function. Handles V850 special
279 (get_section_type_name): Add support for V850.
280 (get_v850_elf_note_type): New function. Returns the name of a
282 (print_v850_note): New function. Prints a V850 note.
283 (process_v850_notes): New function. Prints V850 notes.
284 (process_note_sections): Add support for V850.
286 2015-02-24 Mike Frysinger <vapier@gentoo.org>
289 * readelf.c (process_symbol_table): Declare chained. Increment it
290 in every loop. Abort when chained is larger than nchains. Move
291 error check outside of chain loop.
293 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
295 * readelf.c (find_symbol_for_address): Use a binary search to
296 speed up symbol location. Skip check for function symbol type.
297 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
298 list of function symbols.
299 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
300 pass them to find_symbol_for_address.
301 (dump_hppa_unwind): Likewise.
302 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
303 (dump_arm_unwind): Initialise the funtab and nfuns fields.
305 2015-02-24 Nick Clifton <nickc@redhat.com>
307 * objdump.c (dump_section): Extend the warning message displayed
308 when a section cannot be loaded.
310 2015-02-21 Mike Frysinger <vapier@gentoo.org>
312 * readelf.c (process_program_headers): Add newline to warning
315 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
317 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
320 2015-02-13 Nick Clifton <nickc@redhat.com>
323 * dwarf.c (read_leb128): Fix test for shift becoming too large.
325 * coffgrok.c (do_define): Add check for type size overflow.
326 * srconv.c (walk_tree_sfile): Check that enough sections are
327 available before parsing.
331 * dwarf.c (display_debug_aranges): Add check for an excessive
333 (process_cu_tu_index): Check for a row * columns sum being too
336 2015-02-13 Alan Modra <amodra@gmail.com>
338 * dwarf.c: Formatting, whitespace.
339 (process_debug_info): Style fix.
341 2015-02-11 Nick Clifton <nickc@redhat.com>
343 * rl78-decode.opc: Add 'a' attribute to instructions that support
345 * rl78-decode.c: Regenerate.
346 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
349 2015-02-11 Nick Clifton <nickc@redhat.com>
352 * dwarf.c (display_debug_pubnames_worker): Work around compiler
353 bug checking address ranges.
354 (display_debug_frames): Likewise.
355 (display_gdb_index): Likewise.
356 (process_cu_tu_index): Add range check on the ncols value.
358 2015-02-10 Nick Clifton <nickc@redhat.com>
361 * dwarf.c (eh_addr_size): Use an unsigned type.
362 (size_of_encoded_value): Return an unsigned type.
363 (read_leb128): Break if the shift becomes too big.
364 (process_extended_line_op): Do not read the address if the length
366 (read_cie): Warn and fail if the pointer size or segment size are
368 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
369 structure definition.
370 (DWARF2_External_PubNames): Likewise.
371 (DWARF2_External_CompUnit): Likewise.
372 (DWARF2_External_ARange): Likewise.
373 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
375 (eh_addr_size): Update prototype.
378 * dwarf.c (process_debug_info): Zero the debug information array
379 since correct initialisation cannot be relied upon.
380 (process_cu_tu_index): Improve range checks.
383 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
385 * readelf.c (dump_relocations): Handle printing offsets which are
387 (process_corefile_note_segment): Add range check of the namesz
390 2015-02-09 Mark Wielaard <mjw@redhat.com>
392 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
393 and DW_LANG_Fortran08.
395 2015-02-06 Nick Clifton <nickc@redhat.com>
398 * dwarf.c (display_debug_frames): Fix range checks to work on
399 32-bit binaries complied on a 64-bit host.
402 * dwarf.c (xcmalloc): Fail if the arguments are too big.
403 (xcrealloc): Likewise.
404 (xcalloc2): Likewise.
405 * readelf.c (process_mips_specific): Fail if an option has an
408 2015-02-05 Alan Modra <amodra@gmail.com>
411 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
413 2015-02-04 Nick Clifton <nickc@redhat.com>
416 * dwarf.c (read_and_display_attr_value): Test for a block length
417 being so long that it wraps around to before the start of the block.
418 (process_debug_info): Test for section_begin wrapping around to
419 before the start of the section.
420 (display_gdb_index): Test for num_cus being so large that the end
421 address wraps around to before the start of the section.
422 (process_cu_tu_index): Test for j being so large that the section
423 index pool wraps around to before the start of the section.
425 2015-02-03 Nick Clifton <nickc@redhat.com>
428 * dwarf.c (process_debug_info): Add range check.
429 (display_debug_pubnames_worker): Likewise.
430 (display_gdb_index): Fix range check.
431 (process_cu_tu_index): Add range check.
432 * readelf.c (get_data): Change parameter types from size_t to
433 bfd_size_type. Add checks for loss of accuracy when casting from
434 bfd_size_type to size_t.
435 (get_dynamic_data): Likewise.
436 (process_section_groups): Limit number of error messages.
438 2015-02-03 Nick Clifton <nickc@redhat.com>
441 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
443 2015-01-28 James Bowman <james.bowman@ftdichip.com>
445 * readelf.c: Add FT32 support.
447 2015-01-27 Nick Clifton <nickc@redhat.com>
450 * dlltool.c (identify_search_archive): If the last archive was the
451 same as the current archive, terminate the loop.
453 * addr2line.c (slurp_symtab): If the symcount is zero, free the
454 symbol table pointer.
456 * rcparse.y: Add checks to avoid integer divide by zero.
457 * rescoff.c (read_coff_rsrc): Add check on the size of the
459 (read_coff_res_dir): Add check on the nesting level.
460 Check for resource names overrunning the buffer.
461 * resrc.c (write_rc_messagetable): Update formatting.
462 Add check of 'elen' being zero.
464 2015-01-23 Nick Clifton <nickc@redhat.com>
466 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
467 by recent delta, when compiling on for a 32-bit host.
469 2015-01-21 Nick Clifton <nickc@redhat.com>
472 * addr2line.c (main): Call bfd_set_error_program_name.
473 * ar.c (main): Likewise.
474 * coffdump.c (main): Likewise.
475 * cxxfilt.c (main): Likewise.
476 * dlltool.c (main): Likewise.
477 * nlmconv.c (main): Likewise.
478 * nm.c (main): Likewise.
479 * objdump.c (main): Likewise.
480 * size.c (main): Likewise.
481 * srconv.c (main): Likewise.
482 * strings.c (main): Likewise.
483 * sysdump.c (main): Likewise.
484 * windmc.c (main): Likewise.
485 * windres.c (main): Likewise.
486 * objcopy.c (main): Likewise.
487 (copy_relocations_in_section): Check for relocs without associated
490 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
492 * MAINTAINERS: Add self to ARM maintainers list.
494 2015-01-21 Nick Clifton <nickc@redhat.com>
497 * coffgrok.c (do_type): Check that computed ref exists.
498 (doit): Add range checks when computing section for scope.
500 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
502 * dwarf.c (process_debug_info): Properly check abbrev size.
504 2015-01-12 Nick Clifton <nickc@redhat.com>
507 * dwarf.c (process_debug_info): Check for abbrev_base being larger
508 than the section size.
509 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
511 (xcalloc2): New function. Like xcalloc, but checks for overflow.
512 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
513 array. Check for an address_base that is too large.
515 * dwarf.h (xcalloc2): Prototype.
517 2015-01-12 Alan Modra <amodra@gmail.com>
519 * prdbg.c (print_debugging_info): Don't use void* for function
521 * budbg.h (print_debugging_info): Update prototype.
523 2015-01-08 Nick Clifton <nickc@redhat.com>
526 * ojcopy.c (copy_object): Free the symbol table if no symbols
528 (copy_file): Use bfd_close_all_done to close files that could not
531 * sysdump.c (getINT): Fail if reading off the end of the buffer.
532 Replace call to abort with a call to fatal.
533 (getCHARS): Prevetn reading off the end of the buffer.
535 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
537 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
538 range before applying a reloc.
540 2015-01-07 Nick Clifton <nickc@redhat.com>
543 * dlltool.c (scan_obj_file): Break loop if the last archive
544 displayed matches the current archive.
546 * objdump.c (display_any_bfd): Add a depth limit to nested archive
547 display in order to avoid infinite loops.
548 * srconv.c: Replace calls to abort with calls to fatal with an
551 2015-01-06 Nick Clifton <nickc@redhat.com>
554 * coffdump.c (dump_coff_section): Check for a symbol being
555 available before printing its name.
556 (main): Check the return value from coff_grok.
557 * coffgrok.c: Reformat and tidy.
558 Add range checks to most functions.
559 (coff_grok): Return NULL if the input bfd is not in a COFF
561 * coffgrok.h: Reformat and tidy.
562 (struct coff_section): Change the nrelocs field to unsigned.
563 * srconv.c (main): Check the return value from coff_grok.
565 2015-01-05 Nick Clifton <nickc@redhat.com>
568 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
569 help initialize the info.elfinfo field.
570 (print_size_symbols): Add 'synth_count' parameter. Use it to set
571 the is_synthetic parameter when calling print_symbol.
572 (print_symbols): Likewise.
573 (display_rel_file): Pass synth_count to printing function.
574 (display_archive): Break loop if the last archive displayed
575 matches the current archive.
576 * size.c (display_archive): Likewise.
578 2015-01-05 Nick Clifton <nickc@redhat.com>
581 * dwarf.c (alloc_num_debug_info_entries): New variable.
582 (process_debug_info): Set it. Use it to avoid displaying
583 attributes for which there is no info.
584 (display_debug_abbrev): Check that the debug_info_entry index is
585 valid before using it.
586 (display_loc_list_dwo): Likewise.
587 (process_cu_tu_index): Add range check for an overlarge dw_sect
589 (free_debug_memory): Reset alloc_num_debug_info_entries.
590 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
592 (dynamic_section_mips_val): Warn if the timestamp is invalid.
593 (print_mips_got_entry): Add a data_end parameter. Warn if a read
594 would go beyond the end of the data, and return an error value.
595 (process_mips_specific): Do not read options from beyond the end
597 Correct code to display optional data at the end of an option.
598 Warn if there are too many GOT symbols.
599 Update calls to print_mips_got_entry, and handle error returns.
601 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
604 * doc/binutils.texi (dlltool): Correct description of --kill-at
607 2015-01-01 Alan Modra <amodra@gmail.com>
609 * version.c (print_version): Just print current year.
611 2015-01-01 Alan Modra <amodra@gmail.com>
613 Update year range in copyright notice of all files.
615 For older changes see ChangeLog-2014
617 Copyright (C) 2015 Free Software Foundation, Inc.
619 Copying and distribution of this file, with or without modification,
620 are permitted in any medium without royalty provided the copyright
621 notice and this notice are preserved.
627 version-control: never