1 2015-04-14 Nick Clifton <nickc@redhat.com>
3 * readelf.c (target_specific_reloc_handling): Add code to handle
6 2015-04-13 Doug Evans <dje@google.com>
9 * readelf.c (printable_section_name): Constify sec argument.
10 (apply_relocations): Ditto. New arg "size". All callers updated.
11 (load_specific_debug_section): Constify sec argument.
12 Remove side-effect of modifying sec->sh_size.
14 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
16 * objcopy.c (do_debug_sections): Use bit patterns.
17 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
18 and compress_gabi_zlib on non-ELF input.
19 (copy_file): Don't check non-ELF input here.
21 2015-04-09 Nick Clifton <nickc@redhat.com>
23 * readelf.c (get_machine_flags): Report the setting of the string
26 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
28 * objcopy.c (do_debug_sections): Add compress_zlib,
29 compress_gnu_zlib and compress_gabi_zlib.
30 (copy_options): Use optional_argument on compress-debug-sections.
31 (copy_usage): Update --compress-debug-sections.
32 (copy_file): Handle compress_zlib, compress_gnu_zlib and
35 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
36 * doc/binutils.texi: Document
37 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
39 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
41 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
42 --interleave[=<number>].
44 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
46 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
47 (get_compression_header): New.
48 (process_section_headers): Dump compression header if needed.
49 (uncompress_section_contents): Don't free compressed_buffer here.
50 (load_specific_debug_section): Free the compressed buffer, update
51 the section buffer and the section size if uncompress is
54 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
56 * configure: Regenerated.
58 2015-04-02 Mike Frysinger <vapier@gentoo.org>
60 * MAINTAINERS: Update my e-mail address.
62 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
64 * configure: Regenerated.
66 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
68 * configure.ac: Revert the AM_ZLIB change.
69 * Makefile.in: Regenerated.
70 * aclocal.m4: Likewise.
71 * configure: Likewise.
73 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
75 * Makefile.am (ZLIB): New.
77 (AM_CFLAGS): Add $(ZLIBINC).
78 (readelf_LDADD): Add $(ZLIB).
79 * configure.ac (AM_ZLIB): Removed.
80 (zlibdir): New. AC_SUBST.
82 Add --with-system-zlib.
83 * Makefile.in: Regenerated.
84 * config.in: Likewise.
85 * configure: Likewise.
87 2015-03-19 Nick Clifton <nickc@redhat.com>
89 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
91 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
92 Nick Clifton <nickc@redhat.com>
95 * doc/binutils.texi: Note that when objcopy compresses debug
96 sections the compression is only performed if it makes the section
99 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
102 * readelf.c (parse_args): Move nothing to do warning to ...
105 2015-03-10 Nick Clifton <nickc@redhat.com>
108 * readelf.c (parse_args): Enhance check for nothing to do by
109 accounting for the --wide option.
112 * objcopy.c (copy_object): Avoid calling fatal as that does not
113 allow the parent to clean up temporary files.
115 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
118 * readelf.c: Remove support for ELF_ARM_HASENTRY.
120 2015-03-05 Nick Clifton <nickc@redhat.com>
123 * doc/binutils.texi (objcopy): Extend description of
124 --add-gnu-debuglink option to explain that the separate debug info
125 file must exist. Add a description of what to do if the debug
126 info file is built in one place but then installed into a separate
129 2015-03-05 Nick Clifton <nickc@redhat.com>
132 * dlltool.c (temp_file_to_remove): New local array.
133 (unlink_temp_files): New functions - unlinks any file in the
134 temp_file_to_remove array, unless dotdeltemps is set.
135 (gen_exp_file): Add temp files to array.
136 (make_head): Likewise.
137 (make_delay_head): Likewise.
138 (make_tail): Likewise.
139 (gen_lib_file): Call unlink_temp_files.
141 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
143 * objcopy.c (update_sections): New list.
144 (command_line_switch): Add OPTION_UPDATE_SECTION.
145 (copy_options): Add update-section.
146 (copy_usage): Document new option.
147 (is_update_section): New function.
148 (is_strip_section_1): Add check for attempt to update and remove
150 (copy_object): Update size and content of requested sections.
151 (skip_section): Don't copy for updated sections.
152 (copy_main): Handle --update-section.
153 * doc/binutils.texi (objcopy): Add description of --update-section
155 * NEWS: Mention --update-section option.
157 2015-02-26 Nick Clifton <nickc@redhat.com>
160 * coffgrok.c (do_type): Check for an out of range tag index.
161 Check for integer overflow computing array dimension.
162 (do_define): Likewise.
164 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
166 * objcopy.c (init_section_add): Rename optarg to arg in order to
167 avoid shadowing a global variable.
169 2015-02-26 Nick Clifton <nickc@redhat.com>
172 * resrc.c (write_rc_messagetable): Tighten check for invalid
175 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
176 sanitizer by simplifying address difference calculation.
177 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
178 order to avoid arithmetic overflows.
179 (frame_display_row): Cast cfa_offset before printing it.
180 (display_debug_frames): Likewise.
181 Check for an unexpected segment size.
182 Chnage type of 'l' local to dwarf_vma and cast it back to an int
184 (process_cu_tu_index): Tighten check for an invalid ncols value.
185 * readelf.c (process_corefile_note_segment): Check for
186 inote.descdata extending beyond the end of the section.
187 (process_v850_notes): Likewise.
189 2015-02-26 Terry Guo <terry.guo@arm.com>
191 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
194 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
196 * objcopy.c (init_section_add): New function.
197 (section_add_load_file): New function.
198 (copy_main): Make use of new functions.
200 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
202 * od-elf32_avr.c: Add elf32-avr.h include.
203 (OPT_AVRPROP): Define.
204 (options[]): Add 'avr-prop' entry.
205 (elf32_avr_help): Add avr-prop help text.
206 (elf32_avr_dump_avr_prop): New function.
207 (elf32_avr_dump): Add check for avr-prop.
209 2015-02-24 Nick Clifton <nickc@redhat.com>
211 * readelf.c (get_machine_flags): Remove deprecated V850 machine
213 (get_v850_section_type_name): New function. Handles V850 special
215 (get_section_type_name): Add support for V850.
216 (get_v850_elf_note_type): New function. Returns the name of a
218 (print_v850_note): New function. Prints a V850 note.
219 (process_v850_notes): New function. Prints V850 notes.
220 (process_note_sections): Add support for V850.
222 2015-02-24 Mike Frysinger <vapier@gentoo.org>
225 * readelf.c (process_symbol_table): Declare chained. Increment it
226 in every loop. Abort when chained is larger than nchains. Move
227 error check outside of chain loop.
229 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
231 * readelf.c (find_symbol_for_address): Use a binary search to
232 speed up symbol location. Skip check for function symbol type.
233 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
234 list of function symbols.
235 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
236 pass them to find_symbol_for_address.
237 (dump_hppa_unwind): Likewise.
238 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
239 (dump_arm_unwind): Initialise the funtab and nfuns fields.
241 2015-02-24 Nick Clifton <nickc@redhat.com>
243 * objdump.c (dump_section): Extend the warning message displayed
244 when a section cannot be loaded.
246 2015-02-21 Mike Frysinger <vapier@gentoo.org>
248 * readelf.c (process_program_headers): Add newline to warning
251 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
253 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
256 2015-02-13 Nick Clifton <nickc@redhat.com>
259 * dwarf.c (read_leb128): Fix test for shift becoming too large.
261 * coffgrok.c (do_define): Add check for type size overflow.
262 * srconv.c (walk_tree_sfile): Check that enough sections are
263 available before parsing.
267 * dwarf.c (display_debug_aranges): Add check for an excessive
269 (process_cu_tu_index): Check for a row * columns sum being too
272 2015-02-13 Alan Modra <amodra@gmail.com>
274 * dwarf.c: Formatting, whitespace.
275 (process_debug_info): Style fix.
277 2015-02-11 Nick Clifton <nickc@redhat.com>
279 * rl78-decode.opc: Add 'a' attribute to instructions that support
281 * rl78-decode.c: Regenerate.
282 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
285 2015-02-11 Nick Clifton <nickc@redhat.com>
288 * dwarf.c (display_debug_pubnames_worker): Work around compiler
289 bug checking address ranges.
290 (display_debug_frames): Likewise.
291 (display_gdb_index): Likewise.
292 (process_cu_tu_index): Add range check on the ncols value.
294 2015-02-10 Nick Clifton <nickc@redhat.com>
297 * dwarf.c (eh_addr_size): Use an unsigned type.
298 (size_of_encoded_value): Return an unsigned type.
299 (read_leb128): Break if the shift becomes too big.
300 (process_extended_line_op): Do not read the address if the length
302 (read_cie): Warn and fail if the pointer size or segment size are
304 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
305 structure definition.
306 (DWARF2_External_PubNames): Likewise.
307 (DWARF2_External_CompUnit): Likewise.
308 (DWARF2_External_ARange): Likewise.
309 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
311 (eh_addr_size): Update prototype.
314 * dwarf.c (process_debug_info): Zero the debug information array
315 since correct initialisation cannot be relied upon.
316 (process_cu_tu_index): Improve range checks.
319 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
321 * readelf.c (dump_relocations): Handle printing offsets which are
323 (process_corefile_note_segment): Add range check of the namesz
326 2015-02-09 Mark Wielaard <mjw@redhat.com>
328 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
329 and DW_LANG_Fortran08.
331 2015-02-06 Nick Clifton <nickc@redhat.com>
334 * dwarf.c (display_debug_frames): Fix range checks to work on
335 32-bit binaries complied on a 64-bit host.
338 * dwarf.c (xcmalloc): Fail if the arguments are too big.
339 (xcrealloc): Likewise.
340 (xcalloc2): Likewise.
341 * readelf.c (process_mips_specific): Fail if an option has an
344 2015-02-05 Alan Modra <amodra@gmail.com>
347 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
349 2015-02-04 Nick Clifton <nickc@redhat.com>
352 * dwarf.c (read_and_display_attr_value): Test for a block length
353 being so long that it wraps around to before the start of the block.
354 (process_debug_info): Test for section_begin wrapping around to
355 before the start of the section.
356 (display_gdb_index): Test for num_cus being so large that the end
357 address wraps around to before the start of the section.
358 (process_cu_tu_index): Test for j being so large that the section
359 index pool wraps around to before the start of the section.
361 2015-02-03 Nick Clifton <nickc@redhat.com>
364 * dwarf.c (process_debug_info): Add range check.
365 (display_debug_pubnames_worker): Likewise.
366 (display_gdb_index): Fix range check.
367 (process_cu_tu_index): Add range check.
368 * readelf.c (get_data): Change parameter types from size_t to
369 bfd_size_type. Add checks for loss of accuracy when casting from
370 bfd_size_type to size_t.
371 (get_dynamic_data): Likewise.
372 (process_section_groups): Limit number of error messages.
374 2015-02-03 Nick Clifton <nickc@redhat.com>
377 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
379 2015-01-28 James Bowman <james.bowman@ftdichip.com>
381 * readelf.c: Add FT32 support.
383 2015-01-27 Nick Clifton <nickc@redhat.com>
386 * dlltool.c (identify_search_archive): If the last archive was the
387 same as the current archive, terminate the loop.
389 * addr2line.c (slurp_symtab): If the symcount is zero, free the
390 symbol table pointer.
392 * rcparse.y: Add checks to avoid integer divide by zero.
393 * rescoff.c (read_coff_rsrc): Add check on the size of the
395 (read_coff_res_dir): Add check on the nesting level.
396 Check for resource names overrunning the buffer.
397 * resrc.c (write_rc_messagetable): Update formatting.
398 Add check of 'elen' being zero.
400 2015-01-23 Nick Clifton <nickc@redhat.com>
402 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
403 by recent delta, when compiling on for a 32-bit host.
405 2015-01-21 Nick Clifton <nickc@redhat.com>
408 * addr2line.c (main): Call bfd_set_error_program_name.
409 * ar.c (main): Likewise.
410 * coffdump.c (main): Likewise.
411 * cxxfilt.c (main): Likewise.
412 * dlltool.c (main): Likewise.
413 * nlmconv.c (main): Likewise.
414 * nm.c (main): Likewise.
415 * objdump.c (main): Likewise.
416 * size.c (main): Likewise.
417 * srconv.c (main): Likewise.
418 * strings.c (main): Likewise.
419 * sysdump.c (main): Likewise.
420 * windmc.c (main): Likewise.
421 * windres.c (main): Likewise.
422 * objcopy.c (main): Likewise.
423 (copy_relocations_in_section): Check for relocs without associated
426 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
428 * MAINTAINERS: Add self to ARM maintainers list.
430 2015-01-21 Nick Clifton <nickc@redhat.com>
433 * coffgrok.c (do_type): Check that computed ref exists.
434 (doit): Add range checks when computing section for scope.
436 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
438 * dwarf.c (process_debug_info): Properly check abbrev size.
440 2015-01-12 Nick Clifton <nickc@redhat.com>
443 * dwarf.c (process_debug_info): Check for abbrev_base being larger
444 than the section size.
445 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
447 (xcalloc2): New function. Like xcalloc, but checks for overflow.
448 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
449 array. Check for an address_base that is too large.
451 * dwarf.h (xcalloc2): Prototype.
453 2015-01-12 Alan Modra <amodra@gmail.com>
455 * prdbg.c (print_debugging_info): Don't use void* for function
457 * budbg.h (print_debugging_info): Update prototype.
459 2015-01-08 Nick Clifton <nickc@redhat.com>
462 * ojcopy.c (copy_object): Free the symbol table if no symbols
464 (copy_file): Use bfd_close_all_done to close files that could not
467 * sysdump.c (getINT): Fail if reading off the end of the buffer.
468 Replace call to abort with a call to fatal.
469 (getCHARS): Prevetn reading off the end of the buffer.
471 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
473 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
474 range before applying a reloc.
476 2015-01-07 Nick Clifton <nickc@redhat.com>
479 * dlltool.c (scan_obj_file): Break loop if the last archive
480 displayed matches the current archive.
482 * objdump.c (display_any_bfd): Add a depth limit to nested archive
483 display in order to avoid infinite loops.
484 * srconv.c: Replace calls to abort with calls to fatal with an
487 2015-01-06 Nick Clifton <nickc@redhat.com>
490 * coffdump.c (dump_coff_section): Check for a symbol being
491 available before printing its name.
492 (main): Check the return value from coff_grok.
493 * coffgrok.c: Reformat and tidy.
494 Add range checks to most functions.
495 (coff_grok): Return NULL if the input bfd is not in a COFF
497 * coffgrok.h: Reformat and tidy.
498 (struct coff_section): Change the nrelocs field to unsigned.
499 * srconv.c (main): Check the return value from coff_grok.
501 2015-01-05 Nick Clifton <nickc@redhat.com>
504 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
505 help initialize the info.elfinfo field.
506 (print_size_symbols): Add 'synth_count' parameter. Use it to set
507 the is_synthetic parameter when calling print_symbol.
508 (print_symbols): Likewise.
509 (display_rel_file): Pass synth_count to printing function.
510 (display_archive): Break loop if the last archive displayed
511 matches the current archive.
512 * size.c (display_archive): Likewise.
514 2015-01-05 Nick Clifton <nickc@redhat.com>
517 * dwarf.c (alloc_num_debug_info_entries): New variable.
518 (process_debug_info): Set it. Use it to avoid displaying
519 attributes for which there is no info.
520 (display_debug_abbrev): Check that the debug_info_entry index is
521 valid before using it.
522 (display_loc_list_dwo): Likewise.
523 (process_cu_tu_index): Add range check for an overlarge dw_sect
525 (free_debug_memory): Reset alloc_num_debug_info_entries.
526 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
528 (dynamic_section_mips_val): Warn if the timestamp is invalid.
529 (print_mips_got_entry): Add a data_end parameter. Warn if a read
530 would go beyond the end of the data, and return an error value.
531 (process_mips_specific): Do not read options from beyond the end
533 Correct code to display optional data at the end of an option.
534 Warn if there are too many GOT symbols.
535 Update calls to print_mips_got_entry, and handle error returns.
537 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
540 * doc/binutils.texi (dlltool): Correct description of --kill-at
543 2015-01-01 Alan Modra <amodra@gmail.com>
545 * version.c (print_version): Just print current year.
547 2015-01-01 Alan Modra <amodra@gmail.com>
549 Update year range in copyright notice of all files.
551 For older changes see ChangeLog-2014
553 Copyright (C) 2015 Free Software Foundation, Inc.
555 Copying and distribution of this file, with or without modification,
556 are permitted in any medium without royalty provided the copyright
557 notice and this notice are preserved.
563 version-control: never