1 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3 * MAINTAINERS: Add myself as s390 and s390x maintainer.
5 2015-05-12 Stephen Kitt <steve@sk2.org>
7 * dlltool.c (main): Accept -t as an abbreviation for
10 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
12 * dwarf.c (dwarf_regnames_iamcu): New.
13 (init_dwarf_regnames_iamcu): Likewise.
14 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
15 * dwarf.h (init_dwarf_regnames_iamcu): New.
16 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
19 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
21 * elfedit.c (enum elfclass): New.
22 (input_elf_class): Change type to enum elfclass.
23 (output_elf_class): New.
24 (elf_class): Change return type to enum elfclass. Support EM_386
26 (update_elf_header): Check if input and output ELF classes match.
27 (elf_machine): Support EM_386 and EM_IAMCU.
28 (main): Update input_elf_class. Set output_elf_class.
29 * doc/binutils.texi: Update elfedit.
31 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
33 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
34 * readelf.c (guess_is_rela): Likewise.
35 (dump_relocations): Likewise.
36 (get_machine_name): Likewise.
37 (get_elf_section_flags): Likewise.
38 (process_section_headers): Likewise.
39 (is_32bit_abs_reloc): Likewise.
40 (is_32bit_pcrel_reloc): Likewise.
42 2015-04-30 Nick Clifton <nickc@redhat.com>
44 * readelf.c (get_machine_flags): Add description of MeP flags.
46 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
48 * readelf.c (display_s390_gnu_attribute): New function.
49 (process_s390_specific): New function.
50 (process_arch_specific): Call process_s390_specific.
52 2015-04-24 Nick Clifton <nickc@redhat.com>
55 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
56 * readelf.c (uncompress_section_contents): Zero initialise the
59 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
62 * objcopy.c (setup_section): Copy compress status.
64 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
67 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
69 2015-04-14 Nick Clifton <nickc@redhat.com>
71 * readelf.c (target_specific_reloc_handling): Add code to handle
74 2015-04-13 Doug Evans <dje@google.com>
77 * readelf.c (printable_section_name): Constify sec argument.
78 (apply_relocations): Ditto. New arg "size". All callers updated.
79 (load_specific_debug_section): Constify sec argument.
80 Remove side-effect of modifying sec->sh_size.
82 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
84 * objcopy.c (do_debug_sections): Use bit patterns.
85 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
86 and compress_gabi_zlib on non-ELF input.
87 (copy_file): Don't check non-ELF input here.
89 2015-04-09 Nick Clifton <nickc@redhat.com>
91 * readelf.c (get_machine_flags): Report the setting of the string
94 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
96 * objcopy.c (do_debug_sections): Add compress_zlib,
97 compress_gnu_zlib and compress_gabi_zlib.
98 (copy_options): Use optional_argument on compress-debug-sections.
99 (copy_usage): Update --compress-debug-sections.
100 (copy_file): Handle compress_zlib, compress_gnu_zlib and
103 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
104 * doc/binutils.texi: Document
105 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
107 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
109 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
110 --interleave[=<number>].
112 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
114 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
115 (get_compression_header): New.
116 (process_section_headers): Dump compression header if needed.
117 (uncompress_section_contents): Don't free compressed_buffer here.
118 (load_specific_debug_section): Free the compressed buffer, update
119 the section buffer and the section size if uncompress is
122 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
124 * configure: Regenerated.
126 2015-04-02 Mike Frysinger <vapier@gentoo.org>
128 * MAINTAINERS: Update my e-mail address.
130 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
132 * configure: Regenerated.
134 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
136 * configure.ac: Revert the AM_ZLIB change.
137 * Makefile.in: Regenerated.
138 * aclocal.m4: Likewise.
139 * configure: Likewise.
141 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
143 * Makefile.am (ZLIB): New.
145 (AM_CFLAGS): Add $(ZLIBINC).
146 (readelf_LDADD): Add $(ZLIB).
147 * configure.ac (AM_ZLIB): Removed.
148 (zlibdir): New. AC_SUBST.
150 Add --with-system-zlib.
151 * Makefile.in: Regenerated.
152 * config.in: Likewise.
153 * configure: Likewise.
155 2015-03-19 Nick Clifton <nickc@redhat.com>
157 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
159 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
160 Nick Clifton <nickc@redhat.com>
163 * doc/binutils.texi: Note that when objcopy compresses debug
164 sections the compression is only performed if it makes the section
167 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
170 * readelf.c (parse_args): Move nothing to do warning to ...
173 2015-03-10 Nick Clifton <nickc@redhat.com>
176 * readelf.c (parse_args): Enhance check for nothing to do by
177 accounting for the --wide option.
180 * objcopy.c (copy_object): Avoid calling fatal as that does not
181 allow the parent to clean up temporary files.
183 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
186 * readelf.c: Remove support for ELF_ARM_HASENTRY.
188 2015-03-05 Nick Clifton <nickc@redhat.com>
191 * doc/binutils.texi (objcopy): Extend description of
192 --add-gnu-debuglink option to explain that the separate debug info
193 file must exist. Add a description of what to do if the debug
194 info file is built in one place but then installed into a separate
197 2015-03-05 Nick Clifton <nickc@redhat.com>
200 * dlltool.c (temp_file_to_remove): New local array.
201 (unlink_temp_files): New functions - unlinks any file in the
202 temp_file_to_remove array, unless dotdeltemps is set.
203 (gen_exp_file): Add temp files to array.
204 (make_head): Likewise.
205 (make_delay_head): Likewise.
206 (make_tail): Likewise.
207 (gen_lib_file): Call unlink_temp_files.
209 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
211 * objcopy.c (update_sections): New list.
212 (command_line_switch): Add OPTION_UPDATE_SECTION.
213 (copy_options): Add update-section.
214 (copy_usage): Document new option.
215 (is_update_section): New function.
216 (is_strip_section_1): Add check for attempt to update and remove
218 (copy_object): Update size and content of requested sections.
219 (skip_section): Don't copy for updated sections.
220 (copy_main): Handle --update-section.
221 * doc/binutils.texi (objcopy): Add description of --update-section
223 * NEWS: Mention --update-section option.
225 2015-02-26 Nick Clifton <nickc@redhat.com>
228 * coffgrok.c (do_type): Check for an out of range tag index.
229 Check for integer overflow computing array dimension.
230 (do_define): Likewise.
232 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
234 * objcopy.c (init_section_add): Rename optarg to arg in order to
235 avoid shadowing a global variable.
237 2015-02-26 Nick Clifton <nickc@redhat.com>
240 * resrc.c (write_rc_messagetable): Tighten check for invalid
243 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
244 sanitizer by simplifying address difference calculation.
245 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
246 order to avoid arithmetic overflows.
247 (frame_display_row): Cast cfa_offset before printing it.
248 (display_debug_frames): Likewise.
249 Check for an unexpected segment size.
250 Chnage type of 'l' local to dwarf_vma and cast it back to an int
252 (process_cu_tu_index): Tighten check for an invalid ncols value.
253 * readelf.c (process_corefile_note_segment): Check for
254 inote.descdata extending beyond the end of the section.
255 (process_v850_notes): Likewise.
257 2015-02-26 Terry Guo <terry.guo@arm.com>
259 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
262 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
264 * objcopy.c (init_section_add): New function.
265 (section_add_load_file): New function.
266 (copy_main): Make use of new functions.
268 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
270 * od-elf32_avr.c: Add elf32-avr.h include.
271 (OPT_AVRPROP): Define.
272 (options[]): Add 'avr-prop' entry.
273 (elf32_avr_help): Add avr-prop help text.
274 (elf32_avr_dump_avr_prop): New function.
275 (elf32_avr_dump): Add check for avr-prop.
277 2015-02-24 Nick Clifton <nickc@redhat.com>
279 * readelf.c (get_machine_flags): Remove deprecated V850 machine
281 (get_v850_section_type_name): New function. Handles V850 special
283 (get_section_type_name): Add support for V850.
284 (get_v850_elf_note_type): New function. Returns the name of a
286 (print_v850_note): New function. Prints a V850 note.
287 (process_v850_notes): New function. Prints V850 notes.
288 (process_note_sections): Add support for V850.
290 2015-02-24 Mike Frysinger <vapier@gentoo.org>
293 * readelf.c (process_symbol_table): Declare chained. Increment it
294 in every loop. Abort when chained is larger than nchains. Move
295 error check outside of chain loop.
297 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
299 * readelf.c (find_symbol_for_address): Use a binary search to
300 speed up symbol location. Skip check for function symbol type.
301 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
302 list of function symbols.
303 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
304 pass them to find_symbol_for_address.
305 (dump_hppa_unwind): Likewise.
306 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
307 (dump_arm_unwind): Initialise the funtab and nfuns fields.
309 2015-02-24 Nick Clifton <nickc@redhat.com>
311 * objdump.c (dump_section): Extend the warning message displayed
312 when a section cannot be loaded.
314 2015-02-21 Mike Frysinger <vapier@gentoo.org>
316 * readelf.c (process_program_headers): Add newline to warning
319 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
321 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
324 2015-02-13 Nick Clifton <nickc@redhat.com>
327 * dwarf.c (read_leb128): Fix test for shift becoming too large.
329 * coffgrok.c (do_define): Add check for type size overflow.
330 * srconv.c (walk_tree_sfile): Check that enough sections are
331 available before parsing.
335 * dwarf.c (display_debug_aranges): Add check for an excessive
337 (process_cu_tu_index): Check for a row * columns sum being too
340 2015-02-13 Alan Modra <amodra@gmail.com>
342 * dwarf.c: Formatting, whitespace.
343 (process_debug_info): Style fix.
345 2015-02-11 Nick Clifton <nickc@redhat.com>
347 * rl78-decode.opc: Add 'a' attribute to instructions that support
349 * rl78-decode.c: Regenerate.
350 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
353 2015-02-11 Nick Clifton <nickc@redhat.com>
356 * dwarf.c (display_debug_pubnames_worker): Work around compiler
357 bug checking address ranges.
358 (display_debug_frames): Likewise.
359 (display_gdb_index): Likewise.
360 (process_cu_tu_index): Add range check on the ncols value.
362 2015-02-10 Nick Clifton <nickc@redhat.com>
365 * dwarf.c (eh_addr_size): Use an unsigned type.
366 (size_of_encoded_value): Return an unsigned type.
367 (read_leb128): Break if the shift becomes too big.
368 (process_extended_line_op): Do not read the address if the length
370 (read_cie): Warn and fail if the pointer size or segment size are
372 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
373 structure definition.
374 (DWARF2_External_PubNames): Likewise.
375 (DWARF2_External_CompUnit): Likewise.
376 (DWARF2_External_ARange): Likewise.
377 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
379 (eh_addr_size): Update prototype.
382 * dwarf.c (process_debug_info): Zero the debug information array
383 since correct initialisation cannot be relied upon.
384 (process_cu_tu_index): Improve range checks.
387 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
389 * readelf.c (dump_relocations): Handle printing offsets which are
391 (process_corefile_note_segment): Add range check of the namesz
394 2015-02-09 Mark Wielaard <mjw@redhat.com>
396 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
397 and DW_LANG_Fortran08.
399 2015-02-06 Nick Clifton <nickc@redhat.com>
402 * dwarf.c (display_debug_frames): Fix range checks to work on
403 32-bit binaries complied on a 64-bit host.
406 * dwarf.c (xcmalloc): Fail if the arguments are too big.
407 (xcrealloc): Likewise.
408 (xcalloc2): Likewise.
409 * readelf.c (process_mips_specific): Fail if an option has an
412 2015-02-05 Alan Modra <amodra@gmail.com>
415 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
417 2015-02-04 Nick Clifton <nickc@redhat.com>
420 * dwarf.c (read_and_display_attr_value): Test for a block length
421 being so long that it wraps around to before the start of the block.
422 (process_debug_info): Test for section_begin wrapping around to
423 before the start of the section.
424 (display_gdb_index): Test for num_cus being so large that the end
425 address wraps around to before the start of the section.
426 (process_cu_tu_index): Test for j being so large that the section
427 index pool wraps around to before the start of the section.
429 2015-02-03 Nick Clifton <nickc@redhat.com>
432 * dwarf.c (process_debug_info): Add range check.
433 (display_debug_pubnames_worker): Likewise.
434 (display_gdb_index): Fix range check.
435 (process_cu_tu_index): Add range check.
436 * readelf.c (get_data): Change parameter types from size_t to
437 bfd_size_type. Add checks for loss of accuracy when casting from
438 bfd_size_type to size_t.
439 (get_dynamic_data): Likewise.
440 (process_section_groups): Limit number of error messages.
442 2015-02-03 Nick Clifton <nickc@redhat.com>
445 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
447 2015-01-28 James Bowman <james.bowman@ftdichip.com>
449 * readelf.c: Add FT32 support.
451 2015-01-27 Nick Clifton <nickc@redhat.com>
454 * dlltool.c (identify_search_archive): If the last archive was the
455 same as the current archive, terminate the loop.
457 * addr2line.c (slurp_symtab): If the symcount is zero, free the
458 symbol table pointer.
460 * rcparse.y: Add checks to avoid integer divide by zero.
461 * rescoff.c (read_coff_rsrc): Add check on the size of the
463 (read_coff_res_dir): Add check on the nesting level.
464 Check for resource names overrunning the buffer.
465 * resrc.c (write_rc_messagetable): Update formatting.
466 Add check of 'elen' being zero.
468 2015-01-23 Nick Clifton <nickc@redhat.com>
470 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
471 by recent delta, when compiling on for a 32-bit host.
473 2015-01-21 Nick Clifton <nickc@redhat.com>
476 * addr2line.c (main): Call bfd_set_error_program_name.
477 * ar.c (main): Likewise.
478 * coffdump.c (main): Likewise.
479 * cxxfilt.c (main): Likewise.
480 * dlltool.c (main): Likewise.
481 * nlmconv.c (main): Likewise.
482 * nm.c (main): Likewise.
483 * objdump.c (main): Likewise.
484 * size.c (main): Likewise.
485 * srconv.c (main): Likewise.
486 * strings.c (main): Likewise.
487 * sysdump.c (main): Likewise.
488 * windmc.c (main): Likewise.
489 * windres.c (main): Likewise.
490 * objcopy.c (main): Likewise.
491 (copy_relocations_in_section): Check for relocs without associated
494 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
496 * MAINTAINERS: Add self to ARM maintainers list.
498 2015-01-21 Nick Clifton <nickc@redhat.com>
501 * coffgrok.c (do_type): Check that computed ref exists.
502 (doit): Add range checks when computing section for scope.
504 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
506 * dwarf.c (process_debug_info): Properly check abbrev size.
508 2015-01-12 Nick Clifton <nickc@redhat.com>
511 * dwarf.c (process_debug_info): Check for abbrev_base being larger
512 than the section size.
513 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
515 (xcalloc2): New function. Like xcalloc, but checks for overflow.
516 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
517 array. Check for an address_base that is too large.
519 * dwarf.h (xcalloc2): Prototype.
521 2015-01-12 Alan Modra <amodra@gmail.com>
523 * prdbg.c (print_debugging_info): Don't use void* for function
525 * budbg.h (print_debugging_info): Update prototype.
527 2015-01-08 Nick Clifton <nickc@redhat.com>
530 * ojcopy.c (copy_object): Free the symbol table if no symbols
532 (copy_file): Use bfd_close_all_done to close files that could not
535 * sysdump.c (getINT): Fail if reading off the end of the buffer.
536 Replace call to abort with a call to fatal.
537 (getCHARS): Prevetn reading off the end of the buffer.
539 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
541 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
542 range before applying a reloc.
544 2015-01-07 Nick Clifton <nickc@redhat.com>
547 * dlltool.c (scan_obj_file): Break loop if the last archive
548 displayed matches the current archive.
550 * objdump.c (display_any_bfd): Add a depth limit to nested archive
551 display in order to avoid infinite loops.
552 * srconv.c: Replace calls to abort with calls to fatal with an
555 2015-01-06 Nick Clifton <nickc@redhat.com>
558 * coffdump.c (dump_coff_section): Check for a symbol being
559 available before printing its name.
560 (main): Check the return value from coff_grok.
561 * coffgrok.c: Reformat and tidy.
562 Add range checks to most functions.
563 (coff_grok): Return NULL if the input bfd is not in a COFF
565 * coffgrok.h: Reformat and tidy.
566 (struct coff_section): Change the nrelocs field to unsigned.
567 * srconv.c (main): Check the return value from coff_grok.
569 2015-01-05 Nick Clifton <nickc@redhat.com>
572 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
573 help initialize the info.elfinfo field.
574 (print_size_symbols): Add 'synth_count' parameter. Use it to set
575 the is_synthetic parameter when calling print_symbol.
576 (print_symbols): Likewise.
577 (display_rel_file): Pass synth_count to printing function.
578 (display_archive): Break loop if the last archive displayed
579 matches the current archive.
580 * size.c (display_archive): Likewise.
582 2015-01-05 Nick Clifton <nickc@redhat.com>
585 * dwarf.c (alloc_num_debug_info_entries): New variable.
586 (process_debug_info): Set it. Use it to avoid displaying
587 attributes for which there is no info.
588 (display_debug_abbrev): Check that the debug_info_entry index is
589 valid before using it.
590 (display_loc_list_dwo): Likewise.
591 (process_cu_tu_index): Add range check for an overlarge dw_sect
593 (free_debug_memory): Reset alloc_num_debug_info_entries.
594 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
596 (dynamic_section_mips_val): Warn if the timestamp is invalid.
597 (print_mips_got_entry): Add a data_end parameter. Warn if a read
598 would go beyond the end of the data, and return an error value.
599 (process_mips_specific): Do not read options from beyond the end
601 Correct code to display optional data at the end of an option.
602 Warn if there are too many GOT symbols.
603 Update calls to print_mips_got_entry, and handle error returns.
605 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
608 * doc/binutils.texi (dlltool): Correct description of --kill-at
611 2015-01-01 Alan Modra <amodra@gmail.com>
613 * version.c (print_version): Just print current year.
615 2015-01-01 Alan Modra <amodra@gmail.com>
617 Update year range in copyright notice of all files.
619 For older changes see ChangeLog-2014
621 Copyright (C) 2015 Free Software Foundation, Inc.
623 Copying and distribution of this file, with or without modification,
624 are permitted in any medium without royalty provided the copyright
625 notice and this notice are preserved.
631 version-control: never