1 2014-11-13 Nick Clifton <nickc@redhat.com>
4 * readelf.c (process_version_sections): If the read of the version
5 def information fails, make sure that the external verdef data is
7 (get_dynamic_data): Do not attempt to allocate memory for more
8 dynamic data than there is in the file. If the read fails, free
10 (process_symbol_table): Do not print dynamic information if we
11 were unable to read the dynamic symbol table.
12 (print_gnu_note): Do not print the note if the descsz is too
15 2014-11-12 Nick Clifton <nickc@redhat.com>
18 * dwarf.c (read_and_display_attr_value): Check that we do not read
20 (display_debug_pubnames_worker): Add range checks.
21 (process_debug_info): Check for invalid pointer sizes.
22 (display_loc_list): Likewise.
23 (display_loc_list_dwo): Likewise.
24 (display_debug_ranges): Likewise.
25 (display_debug_aranges): Check for invalid address size.
26 (read_cie): Add range checks. Replace call strchr with while loop.
27 * objdump.c (dump_dwarf): Replace abort with a warning message.
28 (print_section_stabs): Improve range checks.
29 * rdcoff.c (coff_get_slot): Use long for indx parameter type.
30 Add check for an excesively large index.
31 * rddbg.c (read_section_stabs_debugging_info): Zero terminate the
32 string table. Avoid walking off the end of the stabs data.
33 * stabs.c (parse_stab_string): Add check for a NULL name.
35 2014-11-11 Nick Clifton <nickc@redhat.com>
38 * binutils/readelf.c (dynamic_nent): Change type to size_t.
39 (slurp_rela_relocs): Use size_t type for nrelas.
40 (slurp_rel_relocs): Likewise.
41 (get_program_headers): Improve out of memory error message.
42 (get_32bit_section_headers): Likewise.
43 (get_32bit_section_headers): Likewise.
44 (get_64bit_section_headers): Likewise.
45 (get_32bit_elf_symbols): Likewise.
46 (get_64bit_elf_symbols): Likewise.
47 (process_section_groups): Likewise.
48 (get_32bit_dynamic_section): Likewise.
49 (get_64bit_dynamic_section): Likewise.
50 (process_dynamic_section): Likewise.
51 (process_version_sections): Likewise.
52 (get_symbol_index_type): Likewise.
53 (process_mips_specific): Likewise.
54 (process_corefile_note_segment): Likewise.
55 (process_version_sections): Use size_t type for total.
56 (get_dynamic_data): Change type of number parameter to size_t.
57 Improve out of memory error messages.
58 (process_symbol_table): Change type of nbuckets and nchains to
59 size_t. Skip processing of sections headers if there are none.
60 Improve out of memory error messages.
62 2014-11-11 Nick Clifton <nickc@redhat.com>
64 * po/fr.po: Updated French translation.
66 2014-11-11 Nick Clifton <nickc@redhat.com>
69 * readelf.c (display_arm_attribute): Avoid reading off the end of
70 the buffer when processing a Tag_nodefaults.
72 2014-11-10 Nick Clifton <nickc@redhat.com>
75 * (ia64_process_unwind): Replace assertion with an error message.
76 Add range checking for group section indicies.
77 (hppa_process_unwind): Replace assertion with an error message.
78 (process_syminfo): Likewise.
79 (decode_arm_unwind_bytecode): Add range checking.
80 (dump_section_as_strings): Add more string range checking.
81 (display_tag_value): Likewise.
82 (display_arm_attribute): Likewise.
83 (display_gnu_attribute): Likewise.
84 (display_tic6x_attribute): Likewise.
85 (display_msp430x_attribute): Likewise.
87 2014-11-10 Nick Clifton <nickc@redhat.com>
90 * (copy_archive): Clean up temporary files even if an error
93 2014-11-07 H.J. Lu <hongjiu.lu@intel.com>
95 * readelf.c (process_dynamic_section): Cast time value to unsigned
98 2014-11-07 Nick Clifton <nickc@redhat.com>
101 * readelf.c (get_data): Avoid allocating memory when we know that
103 (find_section_by_type): New function.
104 (get_unwind_section_word): Check for invalid symbol indicies.
105 Check for invalid reloc types.
106 (get_32bit_dynamic_section): Add range checks.
107 (get_64bit_dynamic_section): Add range checks.
108 (process_dynamic_section): Check for a corrupt time value.
109 (process_symbol_table): Add range checks.
110 (dump_section_as_strings): Add string length range checks.
111 (display_tag_value): Likewise.
112 (display_arm_attribute): Likewise.
113 (display_gnu_attribute): Likewise.
114 (display_tic6x_attribute): Likewise.
115 (display_msp430x_attribute): Likewise.
116 (process_mips_specific): Add range check.
118 2014-11-06 Nick Clifton <nickc@redhat.com>
120 PR binutils/17552, binutils/17533
121 * bucomm.c (is_valid_archive_path): New function. Returns false
122 for absolute pathnames and pathnames that include /../.
123 * bucomm.h (is_valid_archive_path): Add prototype.
124 * ar.c (extract_file): Use new function to check for valid
125 pathnames when extracting files from an archive.
126 * objcopy.c (copy_archive): Likewise.
127 * doc/binutils.texi: Update documentation to mention the
128 limitation on pathname of archive members.
130 2014-11-05 Nick Clifton <nickc@redhat.com>
133 * readelf.c (printable_section_name): New function.
134 (printable_section_name_from_index): New function.
135 (dump_relocations): Use new function.
136 (process_program_headers, get_32bit_elf_symbols,
137 (get_64bit_elf_symbols, process_section_headers,
138 (process_section_groups, process_relocs, ia64_process_unwind,
139 (hppa_process_unwind, get_unwind_section_word, decode_arm_unwind,
140 (arm_process_unwind, process_version_sections,
141 (process_symbol_table, apply_relocations, get_section_contents,
142 (dump_section_as_strings, dump_section_as_bytes,
143 (display_debug_section, process_attributes, process_mips_specific,
144 (process_mips_specific process_gnu_liblist): Likewise.
145 (get_unwind_section_word): Check for a missing symbol table.
146 Replace aborts with error messages.
147 (arm_process_unwind): Check for a missing string table.
148 (process_attributes): Check for an attribute length that is too
150 (process_mips_specific): Check for a corrupt GOT symbol offset.
152 2014-11-05 Nick Clifton <nickc@redhat.com>
155 * bucomm.c (is_valid_archive_path): New function.
156 * bucomm.h (is_valid_archive_path): Prototype it.
157 * ar.c (extract_file): Call is_valid_archive_path to verify a
158 member filename before extracting it.
159 * objcopy.c (copy_archive): Likewise.
161 2014-11-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
163 * readelf.c (process_mips_specific): Fix format string warning.
165 2014-11-04 Matthew Fortune <matthew.fortune@imgtec.com>
167 * readelf.c (process_mips_specific): Rename index to idx.
169 2014-11-04 Nick Clifton <nickc@redhat.com>
172 * readelf.c (get_data): If the reason parameter is null, do not
173 print any error messages.
174 (get_32bit_section_headers): Verify section header entry size
175 before reading in the section headers.
176 (get_64bit_section_headers): Likewise.
177 (process_section_headers): Pass FALSE to get_section_headers.
178 (get_file_header): Pass TRUE to get_section_headers.
179 (process_dynamic_section): Change an assert to an error message.
180 (process_symbol_table): Handle corrupt histograms.
182 (get_32bit_program_headers): Verify program header entry size
183 before reading in the program headers.
184 (get_64bit_program_headers): Likewise.
185 (get_unwind_section_word): Do nothing if no section was provided.
186 Fail if the offset is outside of the section.
187 (print_dynamic_symbol): Catch out of range symbol indicies.
188 (process_mips_specific): Likewise.
189 (process_attributes): Make sure that there is enough space left in
190 the section before attempting to read the length of the next
193 2014-11-03 Nick Clifton <nickc@redhat.com>
196 * objdump.c (slurp_symtab): Fail gracefully if the table could not
198 (dump_relocs_in_section): Likewise.
200 2014-11-03 Nick Clifton <nickc@redhat.com>
202 * po/fi.po: Updated Finnish translation.
203 * po/sv.po: Updated Swedish translation.
205 2014-11-01 Hans-Peter Nilsson <hp@axis.com>
207 * readelf.c (get_32bit_elf_symbols): Cast error
208 parameters of bfd_size_type with the %lx format to
211 2014-10-31 Andrew Pinski <apinski@cavium.com>
212 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
214 * readelf.c (print_mips_isa_ext): Print the value of Octeon3.
216 2014-10-31 Iain Buclaw <ibuclaw@gdcproject.org>
218 * cxxfilt.c (main): Add case for dlang_demangling style.
220 2014-10-31 Nick Clifton <nickc@redhat.com>
223 * readelf.c (process_program_headers): Avoid memory exhaustion due
224 to corrupt values in a dynamis segment header.
225 (get_32bit_elf_symbols): Do not attempt to read an over-large
227 (get_64bit_elf_symbols): Likewise.
229 2014-10-31 Nick Clifton <nickc@redhat.com>
231 * strings.c: Add new command line option --data to only scan the
232 initialized, loadable data secions of binaries. Choose the
233 default behaviour of --all or --data based upon a configure
235 * doc/binutils.texi (strings): Update documentation. Include
236 description of why the --data option might be unsafe.
237 * configure.ac: Add new option --disable-default-strings-all which
238 restores the old behaviour of strings using --data by default. If
239 the option is not used make strings use --all by default.
240 * NEWS: Mention the new behaviour of strings.
241 * configure: Regenerate.
242 * config.in: Regenerate.
244 2014-10-30 Nick Clifton <nickc@redhat.com>
246 * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that
247 there is a single string for translation.
248 (dynamic_section_mips_val): Likewise.
250 2014-10-29 Nick Clifton <nickc@redhat.com>
252 * po/bg.po: Updated Bulgarian translation.
253 * po/sr.po: New Serbian translation.
254 * po/sv.po: Updated Swedish translation.
256 2014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
258 * readelf.c (print_mips_ases): Print unknown ASEs.
259 (print_mips_isa_ext): Print the value of an unknown extension.
261 2014-10-15 Tristan Gingold <gingold@adacore.com>
263 * configure: Regenerate.
265 2014-10-14 Tristan Gingold <gingold@adacore.com>
267 * NEWS: Add marker for 2.25.
269 2014-10-14 Alan Modra <amodra@gmail.com>
272 * dwarf.c (read_leb128): Avoid signed overflow.
273 (read_debug_line_header): Likewise.
275 2014-10-14 Alan Modra <amodra@gmail.com>
278 * readelf.c (process_program_headers): Correct fscanf format used
281 2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
283 * readelf.c (display_sparc_hwcaps2): New function.
284 (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when
285 handling `Tag_GNU_Sparc_HWCAPS2' attributes.
287 2014-09-22 Alan Modra <amodra@gmail.com>
290 * dwarf.c (GET): Remove semicolon.
291 (read_cie): New function, extracted from..
292 (display_debug_frames): ..here. Correctly handle signed offset
293 from FDE to CIE in .eh_frame. Decode forward referenced CIEs too.
295 2014-09-16 Nick Clifton <nickc@redhat.com>
297 * readelf.c (display_arm_attribute): Use unsigned int type for
298 tag, val and type variables.
300 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
302 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
304 2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
305 Matthew Fortune <matthew.fortune@imgtec.com>
307 * readelf.c (get_machine_flags): Add support for mips32r6 and
310 2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
312 * objcopy.c (is_nondebug_keep_contents_section): Change
313 '.build-id' to '.buildid'.
315 2014-08-22 Richard Henderson <rth@redhat.com>
317 * dwarf.h (init_dwarf_regnames_aarch64): Declare.
318 * dwarf.c (dwarf_regnames_aarch64): New.
319 (init_dwarf_regnames_aarch64): New.
320 (init_dwarf_regnames): Call it.
321 * objdump.c (dump_dwarf): Likewise.
323 2014-08-19 Alan Modra <amodra@gmail.com>
325 * configure: Regenerate.
327 2014-08-14 Alan Modra <amodra@gmail.com>
329 * configure.ac: Move ACX_LARGEFILE after LT_INIT.
330 * config.in: Regenerate.
331 * configure: Regenerate.
333 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
335 * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
336 (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
337 (display_mips_gnu_attribute): Abstracted fp abi printing to...
338 (print_mips_fp_abi_value): New static function. Handle new FP ABIs.
339 (print_mips_ases, print_mips_isa_ext): New static functions.
340 (get_mips_reg_size): Likewise.
341 (process_mips_specific): Display abiflags data.
343 2014-07-28 Alan Modra <amodra@gmail.com>
346 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
348 2014-07-07 Nick Clifton <nickc@redhat.com>
350 * readelf.c (get_symbol_type): Revert accidental change to
351 detection of thumb function symbols.
353 2014-07-04 Alan Modra <amodra@gmail.com>
355 * configure.ac: Rename from configure.in.
356 * Makefile.in: Regenerate.
357 * config.in: Regenerate.
358 * doc/Makefile.in: Regenerate.
360 2014-07-04 Alan Modra <amodra@gmail.com>
362 * configure.in: Include bfd/version.m4.
363 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
364 (BFD_VERSION): Delete.
365 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
366 * configure: Regenerate.
367 * Makefile.in: Regenerate.
368 * doc/Makefile.in: Regenerate.
370 2014-07-03 Tristan Gingold <gingold@adacore.com>
372 * doc/binutils.texi: Clarify addr2line output.
374 2014-07-01 Alan Modra <amodra@gmail.com>
376 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
378 2014-06-26 Erik Akermann <kurterikackermann@gmail.com>
380 * strings.c: Add -w/--include-all-whitespace option to include any
381 whitespace character in the displayed strings.
382 * NEWS: Mention the new feature.
383 * doc/binutils.texi (strings): Document the new command line
386 2014-06-26 Nick Clifton <nickc@redhat.com>
388 * readelf.c (process_note_sections): If there are no note sections
389 try processing note segments instead.
391 2014-06-17 Anton Lavrentiwev <lavr@ncbi.nim.nih.gov>
394 * rcparse.y (fixedverinfo): Prevent large version numbers from
395 corrupting other values.
397 2014-06-09 Romain Chastenet <romain.chastenet@free.fr>
400 * dwarf.c (display_debug_frames): Remember the state of the
401 cfa_offset, cfa_reg, ra and cfa_exp field
403 2014-06-05 Joel Brobecker <brobecker@adacore.com>
405 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
406 bfd's development.sh.
407 * Makefile.in, configure: Regenerate.
409 2014-05-16 Jon Turney <jon.turney@dronecode.org.uk>
411 * objcopy.c (is_nondebug_keep_contents_section): New function.
412 (setup_section): Use it.
414 2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
416 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
418 2014-05-02 Alan Modra <amodra@gmail.com>
420 * emul_aix.c: Update bfd target vector naming.
421 * testsuite/binutils-all/objcopy.exp: Likewise.
423 2014-04-24 Christian Svensson <blue@cmd.nu>
425 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
427 2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
429 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
432 2014-04-22 Christian Svensson <blue@cmd.nu>
434 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
436 2014-04-18 Tristan Gingold <gingold@adacore.com>
438 * od-macho.c (dump_section_map): Adjust as load commands
440 (dump_load_command, dump_section_content): Likewise.
442 2014-04-16 Tristan Gingold <gingold@adacore.com>
444 * od-macho.c (OPT_DYLD_INFO): New macro.
445 (options): Add entry for dyld_info.
446 (mach_o_help): Likewise.
447 (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
448 (dump_dyld_info_export_1, dump_dyld_info_export): New functions.
449 (bfd_mach_o_dyld_rebase_type_name): New array.
450 (export_info_data): New struct.
451 (dump_dyld_info): Add verbose argument. Dump rebase, bind and
453 (dump_load_command): Adjust dump_dyld_info call.
454 (mach_o_dump): Handle dyld_info.
456 2014-04-16 Tristan Gingold <gingold@adacore.com>
458 * od-macho.c (dump_header): Display sizeofcmds in decimal too.
459 (dump_segment): Reformat output.
460 (dump_dyld_info): Also display end offsets.
461 (dump_load_command): Add IDX argument, display commands size
462 and offset, reformat display.
463 (dump_load_commands): Adjust for added argument.
465 2014-04-07 Alan Modra <amodra@gmail.com>
468 * objcopy.c (copy_object): Error if no sections.
470 2014-04-03 Markus Trippelsdorf <markus@trippelsdorf.de>
473 ar.c: Set plugin_target early if plugins are supported.
476 2014-04-03 Tristan Gingold <gingold@adacore.com>
478 * od-macho.c (printf_uint64): New function.
479 (dump_load_command, dump_obj_compact_unwind): Use it.
480 (dump_exe_compact_unwind): Display personality functions.
482 2014-04-02 Tristan Gingold <gingold@adacore.com>
484 * od-macho.c (OPT_TWOLEVEL_HINTS): New macro.
485 (options): Add entry for twolevel_hints.
486 (dump_data_in_code): Fix error message.
487 (dump_twolevel_hints): New function.
488 (dump_load_command): Handle prebound dylib, prebind cksum
490 (mach_o_dump): Handle twolevel hints.
492 2014-04-01 Tristan Gingold <gingold@adacore.com>
494 * od-macho.c (OPT_DATA_IN_CODE): New macro.
495 (options): Add entry for data in code.
496 (mach_o_help): Ditto.
497 (data_in_code_kind_name): New array.
498 (dump_data_in_code): New function.
499 (dump_load_command): Handle data in code.
500 (mach_o_dump): Ditto.
501 (dump_header): Display a terminal newline.
503 2014-03-27 Tristan Gingold <gingold@adacore.com>
505 * od-macho.c (dump_load_command): Display value for
506 BFD_MACH_O_LC_DYLD_ENVIRONMENT. Handle BFD_MACH_O_LC_DATA_IN_CODE
507 and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
509 2014-03-27 Tristan Gingold <gingold@adacore.com>
511 * od-macho.c (OPT_FUNCTION_STARTS): New macro.
512 (options): Add entry for function_starts.
513 (mach_o_help): Ditto.
514 (disp_segment_prot): New function.
515 (dump_section_map): Call disp_segment_prot.
516 (dump_function_starts): New function.
517 (dump_obj_compact_unwind): Fix ouput indentation.
518 (dump_exe_compact_unwind): Fix ouput indentation.
519 (mach_o_dump): Handle function_starts.
521 2014-03-26 Tristan Gingold <gingold@adacore.com>
523 * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
525 2014-03-24 Tristan Gingold <gingold@adacore.com>
527 * objdump.c (load_specific_debug_section): Set address of section.
529 2014-03-24 Tristan Gingold <gingold@adacore.com>
531 * od-macho.c (dump_unwind_encoding_x86): Set the factor.
532 (dump_exe_compact_unwind): Change the condition. Improve
535 2014-03-20 Nick Clifton <nickc@redhat.com>
537 * readelf.c (process_version_sections): Fix off-by-one error in
540 2014-03-19 Nick Clifton <nickc@redhat.com>
543 * readelf.c (process_version_sections): Prevent an infinite loop
544 when the vn_next field is zero but there are still entries to be
547 2014-03-17 Tristan Gingold <gingold@adacore.com>
549 * od-macho.c (dump_section_header): Renames of dump_section.
550 (dump_segment): Adjust after renaming.
551 (OPT_COMPACT_UNWIND): Define.
552 (options): Add compact unwind.
553 (mach_o_help): Document compact_unwind.
554 (unwind_x86_64_regs, unwind_x86_regs): New arrays.
555 (dump_unwind_encoding_x86, dump_unwind_encoding)
556 (dump_obj_compact_unwind, dump_exe_compact_unwind)
557 (dump_section_content): New functions.
558 (mach_o_dump): Handle compact unwind.
560 2014-03-17 Tristan Gingold <gingold@adacore.com>
562 * od-macho.c (dump_load_command): Handle lazy load dylib.
564 2014-03-14 Anthony Green <green@moxielogic.com>
566 * objcopy.c (copy_object): Check fwrite return code.
568 2014-03-14 Meador Inge <meadori@codesourcery.com>
570 * dwarf.c (strnlen): Move prototype ...
571 * sysdep.h (strnlen): ... to here.
573 2014-03-12 Nick Clifton <nickc@redhat.com>
576 * doc/binutils.texi (ar cmdline): Move --plugin command line
577 option to after the command option.
579 2014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
582 * deflex.l: Add noinput and nounput options.
584 2014-03-12 Alan Modra <amodra@gmail.com>
586 * Makefile.in: Regenerate.
587 * doc/Makefile.in: Regenerate.
589 2014-03-06 Nick Clifton <nickc@redhat.com>
592 * readelf.c (process_attributes): Add checks for corrupt
593 attribute section names.
595 2014-03-05 Alan Modra <amodra@gmail.com>
597 Update copyright years.
599 2014-03-03 Alan Modra <amodra@gmail.com>
601 * README: Add "Copyright Notices" paragraph.
603 2014-02-11 Cary Coutant <ccoutant@google.com>
605 * binutils/dwarf.c (read_and_display_attr_value): Don't warn
606 for zero-length attribute value.
608 2014-02-10 Alan Modra <amodra@gmail.com>
610 * po/binutils.pot: Regenerate.
612 2014-02-06 Andrew Pinski <apinski@cavium.com>
614 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
616 2014-02-06 Cary Coutant <ccoutant@google.com>
619 * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
621 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
623 * version.c (print_version): Update copyright year to 2014.
625 2014-01-07 Tom Tromey <tromey@redhat.com>
627 * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with
629 * dlltool.c (inform): Replace obsolete VA_* macros with stdarg
631 * dllwrap.c (inform, warn): Replace obsolete VA_* macros with
634 2014-01-07 Tom Tromey <tromey@redhat.com>
636 * coffgrok.h (coff_ofile): Don't use PARAMS.
637 * nlmheader.y (strerror): Don't use PARAMS.
639 For older changes see ChangeLog-2013
641 Copyright (C) 2014 Free Software Foundation, Inc.
643 Copying and distribution of this file, with or without modification,
644 are permitted in any medium without royalty provided the copyright
645 notice and this notice are preserved.
651 version-control: never