1 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
3 * dwarf.c (dwarf_regnames_iamcu): New.
4 (init_dwarf_regnames_iamcu): Likewise.
5 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
6 * dwarf.h (init_dwarf_regnames_iamcu): New.
7 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
10 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
12 * elfedit.c (enum elfclass): New.
13 (input_elf_class): Change type to enum elfclass.
14 (output_elf_class): New.
15 (elf_class): Change return type to enum elfclass. Support EM_386
17 (update_elf_header): Check if input and output ELF classes match.
18 (elf_machine): Support EM_386 and EM_IAMCU.
19 (main): Update input_elf_class. Set output_elf_class.
20 * doc/binutils.texi: Update elfedit.
22 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
24 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
25 * readelf.c (guess_is_rela): Likewise.
26 (dump_relocations): Likewise.
27 (get_machine_name): Likewise.
28 (get_elf_section_flags): Likewise.
29 (process_section_headers): Likewise.
30 (is_32bit_abs_reloc): Likewise.
31 (is_32bit_pcrel_reloc): Likewise.
33 2015-04-30 Nick Clifton <nickc@redhat.com>
35 * readelf.c (get_machine_flags): Add description of MeP flags.
37 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
39 * readelf.c (display_s390_gnu_attribute): New function.
40 (process_s390_specific): New function.
41 (process_arch_specific): Call process_s390_specific.
43 2015-04-24 Nick Clifton <nickc@redhat.com>
46 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
47 * readelf.c (uncompress_section_contents): Zero initialise the
50 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
53 * objcopy.c (setup_section): Copy compress status.
55 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
58 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
60 2015-04-14 Nick Clifton <nickc@redhat.com>
62 * readelf.c (target_specific_reloc_handling): Add code to handle
65 2015-04-13 Doug Evans <dje@google.com>
68 * readelf.c (printable_section_name): Constify sec argument.
69 (apply_relocations): Ditto. New arg "size". All callers updated.
70 (load_specific_debug_section): Constify sec argument.
71 Remove side-effect of modifying sec->sh_size.
73 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
75 * objcopy.c (do_debug_sections): Use bit patterns.
76 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
77 and compress_gabi_zlib on non-ELF input.
78 (copy_file): Don't check non-ELF input here.
80 2015-04-09 Nick Clifton <nickc@redhat.com>
82 * readelf.c (get_machine_flags): Report the setting of the string
85 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
87 * objcopy.c (do_debug_sections): Add compress_zlib,
88 compress_gnu_zlib and compress_gabi_zlib.
89 (copy_options): Use optional_argument on compress-debug-sections.
90 (copy_usage): Update --compress-debug-sections.
91 (copy_file): Handle compress_zlib, compress_gnu_zlib and
94 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
95 * doc/binutils.texi: Document
96 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
98 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
100 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
101 --interleave[=<number>].
103 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
105 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
106 (get_compression_header): New.
107 (process_section_headers): Dump compression header if needed.
108 (uncompress_section_contents): Don't free compressed_buffer here.
109 (load_specific_debug_section): Free the compressed buffer, update
110 the section buffer and the section size if uncompress is
113 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
115 * configure: Regenerated.
117 2015-04-02 Mike Frysinger <vapier@gentoo.org>
119 * MAINTAINERS: Update my e-mail address.
121 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
123 * configure: Regenerated.
125 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
127 * configure.ac: Revert the AM_ZLIB change.
128 * Makefile.in: Regenerated.
129 * aclocal.m4: Likewise.
130 * configure: Likewise.
132 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
134 * Makefile.am (ZLIB): New.
136 (AM_CFLAGS): Add $(ZLIBINC).
137 (readelf_LDADD): Add $(ZLIB).
138 * configure.ac (AM_ZLIB): Removed.
139 (zlibdir): New. AC_SUBST.
141 Add --with-system-zlib.
142 * Makefile.in: Regenerated.
143 * config.in: Likewise.
144 * configure: Likewise.
146 2015-03-19 Nick Clifton <nickc@redhat.com>
148 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
150 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
151 Nick Clifton <nickc@redhat.com>
154 * doc/binutils.texi: Note that when objcopy compresses debug
155 sections the compression is only performed if it makes the section
158 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
161 * readelf.c (parse_args): Move nothing to do warning to ...
164 2015-03-10 Nick Clifton <nickc@redhat.com>
167 * readelf.c (parse_args): Enhance check for nothing to do by
168 accounting for the --wide option.
171 * objcopy.c (copy_object): Avoid calling fatal as that does not
172 allow the parent to clean up temporary files.
174 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
177 * readelf.c: Remove support for ELF_ARM_HASENTRY.
179 2015-03-05 Nick Clifton <nickc@redhat.com>
182 * doc/binutils.texi (objcopy): Extend description of
183 --add-gnu-debuglink option to explain that the separate debug info
184 file must exist. Add a description of what to do if the debug
185 info file is built in one place but then installed into a separate
188 2015-03-05 Nick Clifton <nickc@redhat.com>
191 * dlltool.c (temp_file_to_remove): New local array.
192 (unlink_temp_files): New functions - unlinks any file in the
193 temp_file_to_remove array, unless dotdeltemps is set.
194 (gen_exp_file): Add temp files to array.
195 (make_head): Likewise.
196 (make_delay_head): Likewise.
197 (make_tail): Likewise.
198 (gen_lib_file): Call unlink_temp_files.
200 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
202 * objcopy.c (update_sections): New list.
203 (command_line_switch): Add OPTION_UPDATE_SECTION.
204 (copy_options): Add update-section.
205 (copy_usage): Document new option.
206 (is_update_section): New function.
207 (is_strip_section_1): Add check for attempt to update and remove
209 (copy_object): Update size and content of requested sections.
210 (skip_section): Don't copy for updated sections.
211 (copy_main): Handle --update-section.
212 * doc/binutils.texi (objcopy): Add description of --update-section
214 * NEWS: Mention --update-section option.
216 2015-02-26 Nick Clifton <nickc@redhat.com>
219 * coffgrok.c (do_type): Check for an out of range tag index.
220 Check for integer overflow computing array dimension.
221 (do_define): Likewise.
223 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
225 * objcopy.c (init_section_add): Rename optarg to arg in order to
226 avoid shadowing a global variable.
228 2015-02-26 Nick Clifton <nickc@redhat.com>
231 * resrc.c (write_rc_messagetable): Tighten check for invalid
234 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
235 sanitizer by simplifying address difference calculation.
236 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
237 order to avoid arithmetic overflows.
238 (frame_display_row): Cast cfa_offset before printing it.
239 (display_debug_frames): Likewise.
240 Check for an unexpected segment size.
241 Chnage type of 'l' local to dwarf_vma and cast it back to an int
243 (process_cu_tu_index): Tighten check for an invalid ncols value.
244 * readelf.c (process_corefile_note_segment): Check for
245 inote.descdata extending beyond the end of the section.
246 (process_v850_notes): Likewise.
248 2015-02-26 Terry Guo <terry.guo@arm.com>
250 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
253 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
255 * objcopy.c (init_section_add): New function.
256 (section_add_load_file): New function.
257 (copy_main): Make use of new functions.
259 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
261 * od-elf32_avr.c: Add elf32-avr.h include.
262 (OPT_AVRPROP): Define.
263 (options[]): Add 'avr-prop' entry.
264 (elf32_avr_help): Add avr-prop help text.
265 (elf32_avr_dump_avr_prop): New function.
266 (elf32_avr_dump): Add check for avr-prop.
268 2015-02-24 Nick Clifton <nickc@redhat.com>
270 * readelf.c (get_machine_flags): Remove deprecated V850 machine
272 (get_v850_section_type_name): New function. Handles V850 special
274 (get_section_type_name): Add support for V850.
275 (get_v850_elf_note_type): New function. Returns the name of a
277 (print_v850_note): New function. Prints a V850 note.
278 (process_v850_notes): New function. Prints V850 notes.
279 (process_note_sections): Add support for V850.
281 2015-02-24 Mike Frysinger <vapier@gentoo.org>
284 * readelf.c (process_symbol_table): Declare chained. Increment it
285 in every loop. Abort when chained is larger than nchains. Move
286 error check outside of chain loop.
288 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
290 * readelf.c (find_symbol_for_address): Use a binary search to
291 speed up symbol location. Skip check for function symbol type.
292 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
293 list of function symbols.
294 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
295 pass them to find_symbol_for_address.
296 (dump_hppa_unwind): Likewise.
297 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
298 (dump_arm_unwind): Initialise the funtab and nfuns fields.
300 2015-02-24 Nick Clifton <nickc@redhat.com>
302 * objdump.c (dump_section): Extend the warning message displayed
303 when a section cannot be loaded.
305 2015-02-21 Mike Frysinger <vapier@gentoo.org>
307 * readelf.c (process_program_headers): Add newline to warning
310 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
312 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
315 2015-02-13 Nick Clifton <nickc@redhat.com>
318 * dwarf.c (read_leb128): Fix test for shift becoming too large.
320 * coffgrok.c (do_define): Add check for type size overflow.
321 * srconv.c (walk_tree_sfile): Check that enough sections are
322 available before parsing.
326 * dwarf.c (display_debug_aranges): Add check for an excessive
328 (process_cu_tu_index): Check for a row * columns sum being too
331 2015-02-13 Alan Modra <amodra@gmail.com>
333 * dwarf.c: Formatting, whitespace.
334 (process_debug_info): Style fix.
336 2015-02-11 Nick Clifton <nickc@redhat.com>
338 * rl78-decode.opc: Add 'a' attribute to instructions that support
340 * rl78-decode.c: Regenerate.
341 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
344 2015-02-11 Nick Clifton <nickc@redhat.com>
347 * dwarf.c (display_debug_pubnames_worker): Work around compiler
348 bug checking address ranges.
349 (display_debug_frames): Likewise.
350 (display_gdb_index): Likewise.
351 (process_cu_tu_index): Add range check on the ncols value.
353 2015-02-10 Nick Clifton <nickc@redhat.com>
356 * dwarf.c (eh_addr_size): Use an unsigned type.
357 (size_of_encoded_value): Return an unsigned type.
358 (read_leb128): Break if the shift becomes too big.
359 (process_extended_line_op): Do not read the address if the length
361 (read_cie): Warn and fail if the pointer size or segment size are
363 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
364 structure definition.
365 (DWARF2_External_PubNames): Likewise.
366 (DWARF2_External_CompUnit): Likewise.
367 (DWARF2_External_ARange): Likewise.
368 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
370 (eh_addr_size): Update prototype.
373 * dwarf.c (process_debug_info): Zero the debug information array
374 since correct initialisation cannot be relied upon.
375 (process_cu_tu_index): Improve range checks.
378 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
380 * readelf.c (dump_relocations): Handle printing offsets which are
382 (process_corefile_note_segment): Add range check of the namesz
385 2015-02-09 Mark Wielaard <mjw@redhat.com>
387 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
388 and DW_LANG_Fortran08.
390 2015-02-06 Nick Clifton <nickc@redhat.com>
393 * dwarf.c (display_debug_frames): Fix range checks to work on
394 32-bit binaries complied on a 64-bit host.
397 * dwarf.c (xcmalloc): Fail if the arguments are too big.
398 (xcrealloc): Likewise.
399 (xcalloc2): Likewise.
400 * readelf.c (process_mips_specific): Fail if an option has an
403 2015-02-05 Alan Modra <amodra@gmail.com>
406 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
408 2015-02-04 Nick Clifton <nickc@redhat.com>
411 * dwarf.c (read_and_display_attr_value): Test for a block length
412 being so long that it wraps around to before the start of the block.
413 (process_debug_info): Test for section_begin wrapping around to
414 before the start of the section.
415 (display_gdb_index): Test for num_cus being so large that the end
416 address wraps around to before the start of the section.
417 (process_cu_tu_index): Test for j being so large that the section
418 index pool wraps around to before the start of the section.
420 2015-02-03 Nick Clifton <nickc@redhat.com>
423 * dwarf.c (process_debug_info): Add range check.
424 (display_debug_pubnames_worker): Likewise.
425 (display_gdb_index): Fix range check.
426 (process_cu_tu_index): Add range check.
427 * readelf.c (get_data): Change parameter types from size_t to
428 bfd_size_type. Add checks for loss of accuracy when casting from
429 bfd_size_type to size_t.
430 (get_dynamic_data): Likewise.
431 (process_section_groups): Limit number of error messages.
433 2015-02-03 Nick Clifton <nickc@redhat.com>
436 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
438 2015-01-28 James Bowman <james.bowman@ftdichip.com>
440 * readelf.c: Add FT32 support.
442 2015-01-27 Nick Clifton <nickc@redhat.com>
445 * dlltool.c (identify_search_archive): If the last archive was the
446 same as the current archive, terminate the loop.
448 * addr2line.c (slurp_symtab): If the symcount is zero, free the
449 symbol table pointer.
451 * rcparse.y: Add checks to avoid integer divide by zero.
452 * rescoff.c (read_coff_rsrc): Add check on the size of the
454 (read_coff_res_dir): Add check on the nesting level.
455 Check for resource names overrunning the buffer.
456 * resrc.c (write_rc_messagetable): Update formatting.
457 Add check of 'elen' being zero.
459 2015-01-23 Nick Clifton <nickc@redhat.com>
461 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
462 by recent delta, when compiling on for a 32-bit host.
464 2015-01-21 Nick Clifton <nickc@redhat.com>
467 * addr2line.c (main): Call bfd_set_error_program_name.
468 * ar.c (main): Likewise.
469 * coffdump.c (main): Likewise.
470 * cxxfilt.c (main): Likewise.
471 * dlltool.c (main): Likewise.
472 * nlmconv.c (main): Likewise.
473 * nm.c (main): Likewise.
474 * objdump.c (main): Likewise.
475 * size.c (main): Likewise.
476 * srconv.c (main): Likewise.
477 * strings.c (main): Likewise.
478 * sysdump.c (main): Likewise.
479 * windmc.c (main): Likewise.
480 * windres.c (main): Likewise.
481 * objcopy.c (main): Likewise.
482 (copy_relocations_in_section): Check for relocs without associated
485 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
487 * MAINTAINERS: Add self to ARM maintainers list.
489 2015-01-21 Nick Clifton <nickc@redhat.com>
492 * coffgrok.c (do_type): Check that computed ref exists.
493 (doit): Add range checks when computing section for scope.
495 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
497 * dwarf.c (process_debug_info): Properly check abbrev size.
499 2015-01-12 Nick Clifton <nickc@redhat.com>
502 * dwarf.c (process_debug_info): Check for abbrev_base being larger
503 than the section size.
504 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
506 (xcalloc2): New function. Like xcalloc, but checks for overflow.
507 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
508 array. Check for an address_base that is too large.
510 * dwarf.h (xcalloc2): Prototype.
512 2015-01-12 Alan Modra <amodra@gmail.com>
514 * prdbg.c (print_debugging_info): Don't use void* for function
516 * budbg.h (print_debugging_info): Update prototype.
518 2015-01-08 Nick Clifton <nickc@redhat.com>
521 * ojcopy.c (copy_object): Free the symbol table if no symbols
523 (copy_file): Use bfd_close_all_done to close files that could not
526 * sysdump.c (getINT): Fail if reading off the end of the buffer.
527 Replace call to abort with a call to fatal.
528 (getCHARS): Prevetn reading off the end of the buffer.
530 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
532 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
533 range before applying a reloc.
535 2015-01-07 Nick Clifton <nickc@redhat.com>
538 * dlltool.c (scan_obj_file): Break loop if the last archive
539 displayed matches the current archive.
541 * objdump.c (display_any_bfd): Add a depth limit to nested archive
542 display in order to avoid infinite loops.
543 * srconv.c: Replace calls to abort with calls to fatal with an
546 2015-01-06 Nick Clifton <nickc@redhat.com>
549 * coffdump.c (dump_coff_section): Check for a symbol being
550 available before printing its name.
551 (main): Check the return value from coff_grok.
552 * coffgrok.c: Reformat and tidy.
553 Add range checks to most functions.
554 (coff_grok): Return NULL if the input bfd is not in a COFF
556 * coffgrok.h: Reformat and tidy.
557 (struct coff_section): Change the nrelocs field to unsigned.
558 * srconv.c (main): Check the return value from coff_grok.
560 2015-01-05 Nick Clifton <nickc@redhat.com>
563 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
564 help initialize the info.elfinfo field.
565 (print_size_symbols): Add 'synth_count' parameter. Use it to set
566 the is_synthetic parameter when calling print_symbol.
567 (print_symbols): Likewise.
568 (display_rel_file): Pass synth_count to printing function.
569 (display_archive): Break loop if the last archive displayed
570 matches the current archive.
571 * size.c (display_archive): Likewise.
573 2015-01-05 Nick Clifton <nickc@redhat.com>
576 * dwarf.c (alloc_num_debug_info_entries): New variable.
577 (process_debug_info): Set it. Use it to avoid displaying
578 attributes for which there is no info.
579 (display_debug_abbrev): Check that the debug_info_entry index is
580 valid before using it.
581 (display_loc_list_dwo): Likewise.
582 (process_cu_tu_index): Add range check for an overlarge dw_sect
584 (free_debug_memory): Reset alloc_num_debug_info_entries.
585 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
587 (dynamic_section_mips_val): Warn if the timestamp is invalid.
588 (print_mips_got_entry): Add a data_end parameter. Warn if a read
589 would go beyond the end of the data, and return an error value.
590 (process_mips_specific): Do not read options from beyond the end
592 Correct code to display optional data at the end of an option.
593 Warn if there are too many GOT symbols.
594 Update calls to print_mips_got_entry, and handle error returns.
596 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
599 * doc/binutils.texi (dlltool): Correct description of --kill-at
602 2015-01-01 Alan Modra <amodra@gmail.com>
604 * version.c (print_version): Just print current year.
606 2015-01-01 Alan Modra <amodra@gmail.com>
608 Update year range in copyright notice of all files.
610 For older changes see ChangeLog-2014
612 Copyright (C) 2015 Free Software Foundation, Inc.
614 Copying and distribution of this file, with or without modification,
615 are permitted in any medium without royalty provided the copyright
616 notice and this notice are preserved.
622 version-control: never