diff options
Diffstat (limited to 'binutils-2.25/binutils/ChangeLog')
-rw-r--r-- | binutils-2.25/binutils/ChangeLog | 932 |
1 files changed, 493 insertions, 439 deletions
diff --git a/binutils-2.25/binutils/ChangeLog b/binutils-2.25/binutils/ChangeLog index e2d53e0c..c2f69e9c 100644 --- a/binutils-2.25/binutils/ChangeLog +++ b/binutils-2.25/binutils/ChangeLog @@ -1,579 +1,633 @@ -2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com> - - * readelf.c (display_mips_gnu_attribute): Support Tag_GNU_MIPS_ABI_MSA. - * doc/binutils.texi: Document -Mmsa disassembler option. - -2013-10-14 Jan-Benedict Glaw <jbglaw@lug-owl.de> - - * readelf.c (decode_arm_unwind): Don't initialize `addr'. - -2013-10-14 Nick Clifton <nickc@redhat.com> - - * readelf.c (decode_arm_unwind): Initialise addr structure. - (process_symbol_table): Free lengths. - * srcconv.c (wr_sc): Free info. - -2013-10-11 Roland McGrath <mcgrathr@google.com> - - * winduni.c (languages): Use \345 (octal syntax) rather than - literal non-ASCII/non-UTF8 character in string literal. - - * readelf.c (print_dynamic_symbol): Use array subscript syntax - rather than addition syntax with string literal. - -2013-10-09 Nick Clifton <nickc@redhat.com> - - PR binutils/16023 - * debug.c (debug_type_samep): Add missing break statement. - - PR binutils/16024 - * objdump.c (usage): Mark as a no-return function. - (main): Add comment explaining why a break statement is not - needed. - - * dwarf.c (add64): New function. - (read_and_display_attr_value): Add CU offset in to the value - displayed for a DW_AT_ref8 attribute. - -2013-10-01 Cory Fields <cory@coryfields.com> - - * arsup.c (ar_save): Respect the deterministic setting when - reading from an mri script. - * ar.c (main): Set the default deterministic mode when reading - from an mri script. - -2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de> - - * dwarf.c (SAFE_BYTE_GET): Fix argument check. - -2013-09-27 H.J. Lu <hongjiu.lu@intel.com> - - * dwarf.c (display_debug_frames): Pass offset_size to - print_dwarf_vma for cie_id. - -2013-09-20 Alan Modra <amodra@gmail.com> - +2014-11-17 Nick Clifton <nickc@redhat.com> + + Apply trunk patches: + + 2014-11-14 Nick Clifton <nickc@redhat.com> + + PR binutils/17512 + * dwarf.c (get_encoded_value): Add an 'end' parameter. Change the + 'data' parameter to a double pointer and return the updated value. + (decode_location_expression): Update call to get_encoded_value. + (frame_need_space): Handle the case where one or both of the + mallocs fails. + (read_cie): Initialise the cie pointer, even if the read fails. + (display_debug_frames): Warn if the calculated block_end is before + the start of the block. Break the loop if the CIE could not be + read. Update call to get_encoded_value. Warn if the read CFA + expressions are too big. + + 2014-11-13 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * readelf.c (process_version_sections): If the read of the version + def information fails, make sure that the external verdef data is + not used. + (get_dynamic_data): Do not attempt to allocate memory for more + dynamic data than there is in the file. If the read fails, free + the allocated buffer. + (process_symbol_table): Do not print dynamic information if we + were unable to read the dynamic symbol table. + (print_gnu_note): Do not print the note if the descsz is too + small. + + 2014-11-12 Nick Clifton <nickc@redhat.com> + + PR binutils/17512 + * dwarf.c (read_and_display_attr_value): Check that we do not read + past end. + (display_debug_pubnames_worker): Add range checks. + (process_debug_info): Check for invalid pointer sizes. + (display_loc_list): Likewise. + (display_loc_list_dwo): Likewise. + (display_debug_ranges): Likewise. + (display_debug_aranges): Check for invalid address size. + (read_cie): Add range checks. Replace call strchr with while loop. + * objdump.c (dump_dwarf): Replace abort with a warning message. + (print_section_stabs): Improve range checks. + * rdcoff.c (coff_get_slot): Use long for indx parameter type. + Add check for an excesively large index. + * rddbg.c (read_section_stabs_debugging_info): Zero terminate the + string table. Avoid walking off the end of the stabs data. + * stabs.c (parse_stab_string): Add check for a NULL name. + + 2014-11-11 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * binutils/readelf.c (dynamic_nent): Change type to size_t. + (slurp_rela_relocs): Use size_t type for nrelas. + (slurp_rel_relocs): Likewise. + (get_program_headers): Improve out of memory error message. + (get_32bit_section_headers): Likewise. + (get_32bit_section_headers): Likewise. + (get_64bit_section_headers): Likewise. + (get_32bit_elf_symbols): Likewise. + (get_64bit_elf_symbols): Likewise. + (process_section_groups): Likewise. + (get_32bit_dynamic_section): Likewise. + (get_64bit_dynamic_section): Likewise. + (process_dynamic_section): Likewise. + (process_version_sections): Likewise. + (get_symbol_index_type): Likewise. + (process_mips_specific): Likewise. + (process_corefile_note_segment): Likewise. + (process_version_sections): Use size_t type for total. + (get_dynamic_data): Change type of number parameter to size_t. + Improve out of memory error messages. + (process_symbol_table): Change type of nbuckets and nchains to + size_t. Skip processing of sections headers if there are none. + Improve out of memory error messages. + + 2014-11-11 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * readelf.c (display_arm_attribute): Avoid reading off the end of + the buffer when processing a Tag_nodefaults. + + 2014-11-10 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * readelf.c (ia64_process_unwind): Replace assertion with an error + message. Add range checking for group section indicies. + (hppa_process_unwind): Replace assertion with an error message. + (process_syminfo): Likewise. + (decode_arm_unwind_bytecode): Add range checking. + (dump_section_as_strings): Add more string range checking. + (display_tag_value): Likewise. + (display_arm_attribute): Likewise. + (display_gnu_attribute): Likewise. + (display_tic6x_attribute): Likewise. + (display_msp430x_attribute): Likewise. + + 2014-11-10 Nick Clifton <nickc@redhat.com> + + PR binutils/17552 + * objcopy.c (copy_archive): Clean up temporary files even if an + error occurs. + + 2014-11-07 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * readelf.c (get_data): Avoid allocating memory when we know that + the read will fail. + (find_section_by_type): New function. + (get_unwind_section_word): Check for invalid symbol indicies. + Check for invalid reloc types. + (get_32bit_dynamic_section): Add range checks. + (get_64bit_dynamic_section): Add range checks. + (process_dynamic_section): Check for a corrupt time value. + (process_symbol_table): Add range checks. + (dump_section_as_strings): Add string length range checks. + (display_tag_value): Likewise. + (display_arm_attribute): Likewise. + (display_gnu_attribute): Likewise. + (display_tic6x_attribute): Likewise. + (display_msp430x_attribute): Likewise. + (process_mips_specific): Add range check. + + 2014-11-06 Nick Clifton <nickc@redhat.com> + + PR binutils/17552, binutils/17533 + * bucomm.c (is_valid_archive_path): New function. Returns false + for absolute pathnames and pathnames that include /../. + * bucomm.h (is_valid_archive_path): Add prototype. + * ar.c (extract_file): Use new function to check for valid + pathnames when extracting files from an archive. + * objcopy.c (copy_archive): Likewise. + * doc/binutils.texi: Update documentation to mention the + limitation on pathname of archive members. + + 2014-11-05 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * readelf.c (printable_section_name): New function. + (printable_section_name_from_index): New function. + (dump_relocations): Use new function. + (process_program_headers, get_32bit_elf_symbols, + (get_64bit_elf_symbols, process_section_headers, + (process_section_groups, process_relocs, ia64_process_unwind, + (hppa_process_unwind, get_unwind_section_word, decode_arm_unwind, + (arm_process_unwind, process_version_sections, + (process_symbol_table, apply_relocations, get_section_contents, + (dump_section_as_strings, dump_section_as_bytes, + (display_debug_section, process_attributes, process_mips_specific, + (process_mips_specific process_gnu_liblist): Likewise. + (get_unwind_section_word): Check for a missing symbol table. + Replace aborts with error messages. + (arm_process_unwind): Check for a missing string table. + (process_attributes): Check for an attribute length that is too + small. + (process_mips_specific): Check for a corrupt GOT symbol offset. + + 2014-11-05 Nick Clifton <nickc@redhat.com> + + PR binutils/17533 + * bucomm.c (is_valid_archive_path): New function. + * bucomm.h (is_valid_archive_path): Prototype it. + * ar.c (extract_file): Call is_valid_archive_path to verify a + member filename before extracting it. + * objcopy.c (copy_archive): Likewise. + + 2014-11-04 Nick Clifton <nickc@redhat.com> + + PR binutils/17531 + * readelf.c (get_data): If the reason parameter is null, do not + print any error messages. + (get_32bit_section_headers): Verify section header entry size + before reading in the section headers. + (get_64bit_section_headers): Likewise. + (process_section_headers): Pass FALSE to get_section_headers. + (get_file_header): Pass TRUE to get_section_headers. + (process_dynamic_section): Change an assert to an error message. + (process_symbol_table): Handle corrupt histograms. + (get_32bit_program_headers): Verify program header entry size + before reading in the program headers. + (get_64bit_program_headers): Likewise. + (get_unwind_section_word): Do nothing if no section was provided. + Fail if the offset is outside of the section. + (print_dynamic_symbol): Catch out of range symbol indicies. + (process_mips_specific): Likewise. + (process_attributes): Make sure that there is enough space left in + the section before attempting to read the length of the next + attribute. + + 2014-11-03 Nick Clifton <nickc@redhat.com> + + PR binutils/17512 + * objdump.c (slurp_symtab): Fail gracefully if the table could not + be read. + (dump_relocs_in_section): Likewise. + +2014-11-11 Nick Clifton <nickc@redhat.com> + + * po/fr.po: Updated French translation. + +2014-11-03 Nick Clifton <nickc@redhat.com> + + * po/fi.po: Updated Finnish translation. + * po/sv.po: Updated Swedish translation. + +2014-10-31 Nick Clifton <nickc@redhat.com> + + Apply trunk patch: + + 2014-10-31 Nick Clifton <nickc@redhat.com> + * strings.c: Add new command line option --data to only scan the + initialized, loadable data secions of binaries. Choose the + default behaviour of --all or --data based upon a configure + option. + * doc/binutils.texi (strings): Update documentation. Include + description of why the --data option might be unsafe. + * configure.ac: Add new option --disable-default-strings-all which + restores the old behaviour of strings using --data by default. If + the option is not used make strings use --all by default. + * NEWS: Mention the new behaviour of strings. * configure: Regenerate. + * config.in: Regenerate. -2013-09-18 Tristan Gingold <gingold@adacore.com> - - * NEWS: Add marker for 2.24. - -2013-09-18 Tristan Gingold <gingold@adacore.com> +2014-10-30 Nick Clifton <nickc@redhat.com> - * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@ - by $(LEXLIB). - * Makefile.in: Regenerate. + Apply trunk patch: -2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com> + 2014-10-30 Nick Clifton <nickc@redhat.com> + * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that + there is a single string for translation. + (dynamic_section_mips_val): Likewise. - * readelf.c (get_machine_flags): Handle EF_MIPS_FP64. +2014-10-29 Nick Clifton <nickc@redhat.com> -2013-09-12 Nick Clifton <nickc@redhat.com> + * po/bg.po: Updated Bulgarian translation. + * po/sr.po: New Serbian translation. + * po/sv.po: Updated Swedish translation. - * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a - precision parameter. - (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1. - (print_dwarf_vma): Use dwarf_vmatoa_1. - (SAFE_BYTE_GET): Add check that VAL is big enough to contain - AMOUNT bytes. - (process_debug_info): Use an unsigned int for the offset size. - (process_debug_pubnames): Likewise. - (display_debug_aranges): Likewise. - (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range - fields. - (frame_display_row): Use print_dwarf_vma to display dwarf_vma - values. - (display_debug_frames): Likewise. +2014-10-28 Matthew Fortune <matthew.fortune@imgtec.com> -2013-09-10 Nick Clifton <nickc@redhat.com> + Apply trunk patch: - * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when - parsing 64-bit frames. + 2014-10-22 Matthew Fortune <matthew.fortune@imgtec.com> + * readelf.c (print_mips_ases): Print unknown ASEs. + (print_mips_isa_ext): Print the value of an unknown extension. -2013-08-27 Nick Clifton <nickc@redhat.com> +2014-10-15 Tristan Gingold <gingold@adacore.com> - PR binutils/15796 - * ar.c (map_over_members): Correctly handle multiple same-name - entries on the command line and in the archive. + * configure: Regenerate. -2013-08-23 H.J. Lu <hongjiu.lu@intel.com> +2014-10-14 Tristan Gingold <gingold@adacore.com> - * doc/binutils.texi: Remove the extra space. + * NEWS: Add marker for 2.25. -2013-08-23 Mikael Pettersson <mikpe@it.uu.se> +2014-10-14 Alan Modra <amodra@gmail.com> - PR binutils/15779 - * doc/binutils.texi (ranlib -D): Correct description. - PR binutils/15777 - (nm --special-syms): Fix typo. + PR 17453 + * dwarf.c (read_leb128): Avoid signed overflow. + (read_debug_line_header): Likewise. -2013-08-23 Nick Clifton <nickc@redhat.com> +2014-10-14 Alan Modra <amodra@gmail.com> - PR binutils/15798 - * doc/binutils.texi (ar cmdline): Update description of 'q' - command. + PR 17453 + * readelf.c (process_program_headers): Correct fscanf format used + for interpreter. - PR binutils/14136 - (nm): Add description of 'I' symbol type. +2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com> -2013-08-23 Yuri Chornoivan <yurchor@ukr.net> + * readelf.c (display_sparc_hwcaps2): New function. + (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when + handling `Tag_GNU_Sparc_HWCAPS2' attributes. - PR binutils/15834 - * od-xcoff.c: Fix typos. +2014-09-22 Alan Modra <amodra@gmail.com> -2013-08-19 Tristan Gingold <gingold@adacore.com> + PR 16563 + * dwarf.c (GET): Remove semicolon. + (read_cie): New function, extracted from.. + (display_debug_frames): ..here. Correctly handle signed offset + from FDE to CIE in .eh_frame. Decode forward referenced CIEs too. - * nm.c (print_size_symbols): Directly get symbol size. +2014-09-16 Nick Clifton <nickc@redhat.com> -2013-08-12 Andreas Schwab <schwab@suse.de> + * readelf.c (display_arm_attribute): Use unsigned int type for + tag, val and type variables. - PR binutils/15818 - * objdump.c (disassemble_section): Return early if nothing from - this section needs to be disassembled. +2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com> -2013-08-09 Nick Clifton <nickc@redhat.com> + * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+. - * readelf.c (get_machine_flags): Handle RL78 G10 flag. +2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com> + Matthew Fortune <matthew.fortune@imgtec.com> -2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com> - Alexander Ivchenko <alexander.ivchenko@intel.com> - Maxim Kuznetsov <maxim.kuznetsov@intel.com> - Sergey Lega <sergey.s.lega@intel.com> - Anna Tikhonova <anna.tikhonova@intel.com> - Ilya Tocar <ilya.tocar@intel.com> - Andrey Turetskiy <andrey.turetskiy@intel.com> - Ilya Verbin <ilya.verbin@intel.com> - Kirill Yukhin <kirill.yukhin@intel.com> - Michael Zolotukhin <michael.v.zolotukhin@intel.com> + * readelf.c (get_machine_flags): Add support for mips32r6 and + mips64r6. - * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and - numeration in comments. - (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to - dwarf table. +2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk> -2013-07-19 Nick Clifton <nickc@redhat.com> + * objcopy.c (is_nondebug_keep_contents_section): Change + '.build-id' to '.buildid'. - PR binutils/15745 - * readelf.c (get_unwind_section_word): Whilst searching for a - reloc section associated with an unwind section, check the type as - well as the section number. +2014-08-22 Richard Henderson <rth@redhat.com> -2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu> + * dwarf.h (init_dwarf_regnames_aarch64): Declare. + * dwarf.c (dwarf_regnames_aarch64): New. + (init_dwarf_regnames_aarch64): New. + (init_dwarf_regnames): Call it. + * objdump.c (dump_dwarf): Likewise. - * ar.c (usage): Fix C conformance issue. +2014-08-19 Alan Modra <amodra@gmail.com> -2013-07-18 Nick Clifton <nickc@redhat.com> + * configure: Regenerate. - * doc/binutils.texi (nm, objdump): Remove bogus links to STABS - documentation. +2014-08-14 Alan Modra <amodra@gmail.com> - * readelf.c (process_unwind): Do not return the result of a void - function. + * configure.ac: Move ACX_LARGEFILE after LT_INIT. + * config.in: Regenerate. + * configure: Regenerate. -2013-07-15 Maciej W. Rozycki <macro@codesourcery.com> +2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com> - * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic - numbers with enum values. + * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS. + (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS. + (display_mips_gnu_attribute): Abstracted fp abi printing to... + (print_mips_fp_abi_value): New static function. Handle new FP ABIs. + (print_mips_ases, print_mips_isa_ext): New static functions. + (get_mips_reg_size): Likewise. + (process_mips_specific): Display abiflags data. -2013-07-12 Maciej W. Rozycki <macro@codesourcery.com> +2014-07-28 Alan Modra <amodra@gmail.com> - * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008. + PR 13227 + * nm.c (filter_symbols): Warn on __gnu_lto_slim. -2013-07-10 Tristan Gingold <gingold@adacore.com> +2014-07-07 Nick Clifton <nickc@redhat.com> - * od-xcoff.c (OPT_LDINFO): Define. - (options): Add ldinfo. - (xcoff_help): Mention ldinfo. - (xcoff_dump): Rename to ... - (xcoff_dump_obj): ... this. Add a break. - (dump_dumpx_core): New function. - (xcoff_dump_core): Likewise. - (xcoff_dump): Likewise. - * doc/binutils.texi (objdump): Mention ldinfo. + * readelf.c (get_symbol_type): Revert accidental change to + detection of thumb function symbols. -2013-07-09 Tristan Gingold <gingold@adacore.com> +2014-07-04 Alan Modra <amodra@gmail.com> - * configure.com: Add new defines to match changes in configure. + * configure.ac: Rename from configure.in. + * Makefile.in: Regenerate. + * config.in: Regenerate. + * doc/Makefile.in: Regenerate. -2013-05-28 Cary Coutant <ccoutant@google.com> +2014-07-04 Alan Modra <amodra@gmail.com> - * dwarf.c (display_debug_lines_raw): Print section offsets. + * configure.in: Include bfd/version.m4. + (AC_INIT, AM_INIT_AUTOMAKE): Use modern form. + (BFD_VERSION): Delete. + * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in. + * configure: Regenerate. + * Makefile.in: Regenerate. + * doc/Makefile.in: Regenerate. -2013-05-15 Cary Coutant <ccoutant@google.com> +2014-07-03 Tristan Gingold <gingold@adacore.com> - * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check; - don't increment PTR. - (decode_location_expression): DW_OP_const2u should read 2 bytes. - (display_debug_lines_decoded): Adjust formatting. - * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and - 7-byte reads. - (byte_get_big_endian): Likewise. - (byte_get_signed): Likewise. + * doc/binutils.texi: Clarify addr2line output. -2013-05-09 Andrew Pinski <apinski@cavium.com> +2014-07-01 Alan Modra <amodra@gmail.com> - * doc/binutils.texi: Document -Mvirt disassembler option. + * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE. -2013-05-02 Nick Clifton <nickc@redhat.com> +2014-06-26 Erik Akermann <kurterikackermann@gmail.com> - * readelf.c: Add support for MSP430X architecture. + * strings.c: Add -w/--include-all-whitespace option to include any + whitespace character in the displayed strings. + * NEWS: Mention the new feature. + * doc/binutils.texi (strings): Document the new command line + option. -2013-05-02 Nick Clifton <nickc@redhat.com> +2014-06-26 Nick Clifton <nickc@redhat.com> - * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo - sections as if they were fragmentary .debug_line sections. - (display_debug_lines_decoded): Likewise. + * readelf.c (process_note_sections): If there are no note sections + try processing note segments instead. -2013-04-29 Nick Clifton <nickc@redhat.com> +2014-06-17 Anton Lavrentiwev <lavr@ncbi.nim.nih.gov> - * dwarf.c (read_debug_line_header): New function. Reads in a - header in a .debug_line section. - (display_debug_lines_raw): Use new function. Handle fragmentary - .debug_line sections. - (display_debug_lines_decoded): Likewise. - * readelf.c (process_section_headers): Handle fragmenatry - .debug_line sections. - (display_debug_section): Likewise. + PR binutils/16923 + * rcparse.y (fixedverinfo): Prevent large version numbers from + corrupting other values. -2013-04-26 Ian Lance Taylor <iant@google.com> +2014-06-09 Romain Chastenet <romain.chastenet@free.fr> - * MAINTAINERS: Add myself and Cary as gold maintainers. + PR binutils/16252 + * dwarf.c (display_debug_frames): Remember the state of the + cfa_offset, cfa_reg, ra and cfa_exp field -2013-04-08 Tom Tromey <tromey@redhat.com> +2014-06-05 Joel Brobecker <brobecker@adacore.com> - * dwarf.c (process_debug_info): Check dwarf_cutoff_level. + * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on + bfd's development.sh. + * Makefile.in, configure: Regenerate. -2013-04-08 Tom Tromey <tromey@redhat.com> +2014-05-16 Jon Turney <jon.turney@dronecode.org.uk> - * dwarf-mode.el: Bump version number. - (dwarf-mode): Remove autoload. - (dwarf-die-reference): Relax regexp. + * objcopy.c (is_nondebug_keep_contents_section): New function. + (setup_section): Use it. -2013-04-05 Alan Modra <amodra@gmail.com> +2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com> - PR binutils/15324 - * configure.in: Add strnlen to AC_CHECK_DECLS, sort. - * dwarf.c (strnlen): Provide fallback decl. - * config.in: Regnerate. - * configure: Regenerate. + * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag. -2013-03-29 H.J. Lu <hongjiu.lu@intel.com> - - * dwarf.c (process_debug_info): Increment hdrptr by 8 after - SAFE_BYTE_GET64. - -2013-03-27 Phil Krylov <phil.krylov@gmail.com> - - PR binutils/13409 - * winduni.c (codepages[]): Use UTF-16LE. - (wind_MultiByteToWideChar): Likewise. - (wind_WideCharToMultiByte): Likewise. - -2013-03-27 Alan Modra <amodra@gmail.com> - - PR binutils/15206 - * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int. - -2013-03-26 Nick Clifton <nickc@redhat.com> - - PR binutils/15206 - * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer - space before calling byte_get. - (SAFE_BYTE_GET_AND_INC): New macro. - (SAFE_SIGNED_BYTE_GET): New macro. - (SAFE_SIGNED_BYTE_GET_AND_INC): New macro. - (SAFE_BYTE_GET64): New macro. - (process_extened_line_op): Use new macros. Use strnlen when - appropriate. - (fetch_indirect_string): Likewise. - (get_FORM_name): Likewise. - (decode_location_expression): Likewise. - (read_and_display_attr_value): Likewise. - (process_debug_info): Likewise. - (display_debug_lines_raw): Likewise. - (display_debug_lines_decoded): Likewise. - (display_debug_pubnames): Likewise. - (display_debug_macinfo): Likewise. - (get_line_filename_and_dirname): Likewise. - (display_debug_macro): Likewise. - (display_loc_list): Likewise. - (display_loc_list_dwo): Likewise. - (display_debug_aranges): Likewise. - (display_debug_ranges): Likewise. - (frame_display_row): Likewise. - (display_debug_frames): Likewise. - -2013-03-25 Nick Clifton <nickc@redhat.com> - - PR binutils/15202 - * dwarf.c (read_leb128): Add END parameter. Do not read at or - beyond end. - (read_sleb128): Add END parameter. - (read_uleb128): New function. - (process_extended_line_op): Pass END to leb128 functions. - (process_abbrev_section): Likewise. - (decode_location_expression): Likewise. - (read_and_display_attr_value): Likewise. - (read_and_display_attr): Likewise. - (process_debug_info): Likewise. - (display_debug_lines_raw): Likewise. - (display_debug_lines_decoded): Likewise. - (display_debug_macinfo): Likewise. - (get_line_filename_and_dirname): Likewise. - (display_debug_macro): Likewise. - (display_loc_list_dwo): Likewise. - (display_debug_ranges): Likewise. - * dwarf.h (read_leb128): Update prototype. - * readelf.c (read_uleb128): Add END parameter. - (decode_arm_unwind_bytecode): Pass END to read_uleb128. - (decode_tic6x_unwind_bytecode): Likewise. - (display_tag_value): New function. - (display_arm_attribute): Add END parameter. Pass END to - read_uleb128. Use display_tag_value. - (display_gnu_attribute): Likewise. - (display_power_gnu_attribute): Likewise. - (display_sparc_gnu_attribute): Likewise. - (display_mips_gnu_attribute): Likewise. - (display_tic6x_attribute): Likewise. - (process_attributes): Likewise. - (display_raw_attribute): New function. +2014-05-02 Alan Modra <amodra@gmail.com> -2013-03-22 Nick Clifton <nickc@redhat.com> + * emul_aix.c: Update bfd target vector naming. + * testsuite/binutils-all/objcopy.exp: Likewise. - PR binutils/15201 - * dwarf.c (display_debug_ranges): Add checks for reading beyond - the end of the section. +2014-04-24 Christian Svensson <blue@cmd.nu> - PR binutils/15157 - * readelf.c (apply_relocations): Catch relocations with negative - offsets. + * MAINTAINERS: Add myself and Stefan as OR1K maintainers. -2013-03-15 Nick Clifton <nickc@redhat.com> +2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com> - * addr2line.c (slurp_symtab): If canonicalization reveals that - there were no ordinary symbols, try loading the dynamic symbols - instead. + * doc/binutils.texi: Document the disassemble MIPS XPA instructions + command line option. -2013-03-14 Markos Chandras <markos.chandras@imgtec.com> +2014-04-22 Christian Svensson <blue@cmd.nu> - * MAINTAINERS: Add myself as Meta maintainer. + * readelf.c: Remove openrisc and or32 support. Add support for or1k. -2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com> +2014-04-18 Tristan Gingold <gingold@adacore.com> - * readelf.c (get_note_type): Add NT_S390_TDB. + * od-macho.c (dump_section_map): Adjust as load commands + are now chained. + (dump_load_command, dump_section_content): Likewise. -2013-03-07 Alan Modra <amodra@gmail.com> +2014-04-16 Tristan Gingold <gingold@adacore.com> - * strings.c (get_char): Dispense with buf[]. Instead shift - chars into big-endian value and byte-swap later if - little-endian. Don't EOF check value read from object. + * od-macho.c (OPT_DYLD_INFO): New macro. + (options): Add entry for dyld_info. + (mach_o_help): Likewise. + (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind) + (dump_dyld_info_export_1, dump_dyld_info_export): New functions. + (bfd_mach_o_dyld_rebase_type_name): New array. + (export_info_data): New struct. + (dump_dyld_info): Add verbose argument. Dump rebase, bind and + exports data. + (dump_load_command): Adjust dump_dyld_info call. + (mach_o_dump): Handle dyld_info. -2013-03-05 Corinna Vinschen <vinschen@redhat.com> +2014-04-16 Tristan Gingold <gingold@adacore.com> - * configure.in: Build DLL tools on x86_64-*-cygwin* as well. - * configure: Regenerate. + * od-macho.c (dump_header): Display sizeofcmds in decimal too. + (dump_segment): Reformat output. + (dump_dyld_info): Also display end offsets. + (dump_load_command): Add IDX argument, display commands size + and offset, reformat display. + (dump_load_commands): Adjust for added argument. -2013-03-04 Nick Clifton <nickc@redhat.com> +2014-04-07 Alan Modra <amodra@gmail.com> - * elfcomm.c (error): Flush stdout before emitting the error - message. - (warn): Likewise. + PR binutils/16811 + * objcopy.c (copy_object): Error if no sections. -2013-03-01 Cary Coutant <ccoutant@google.com> +2014-04-03 Markus Trippelsdorf <markus@trippelsdorf.de> - * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size) - (shndx_pool_used): Move to top of file. - (struct cu_tu_set): New type. - (cu_count, tu_count, cu_sets, tu_sets): New file scope variables. - (fetch_indexed_string): Add "this_set" parameter. Update all callers. - (find_cu_tu_set_v2): New function. - (read_and_display_attr_value): Add "this_set" parameter. - (read_and_display_attr): Likewise. - (process_debug_info): Track base offsets for DWARF package files. - (load_debug_info): Call load_cu_tu_indexes. - (get_DW_SECT_short_name): New function. - (process_cu_tu_index): Add support for version 2 DWARF package files. + PR binutils/14698 + ar.c: Set plugin_target early if plugins are supported. + nm.c: Likewise. -2013-02-27 Alan Modra <amodra@gmail.com> +2014-04-03 Tristan Gingold <gingold@adacore.com> - PR binutils/15191 - * readelf.c (offsetof): Define. - (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article. - (process_corefile_note_segment): Allow notes without name or - desc. Combine out-of-range checks. Disallow "negative" - notesz or descsz. + * od-macho.c (printf_uint64): New function. + (dump_load_command, dump_obj_compact_unwind): Use it. + (dump_exe_compact_unwind): Display personality functions. -2013-02-26 Nick Clifton <nickc@redhat.com> +2014-04-02 Tristan Gingold <gingold@adacore.com> - PR binutils/15191 - * readelf.c (process_corefile_note_segment): Prevent attempts to - read beyond the end of the note buffer. + * od-macho.c (OPT_TWOLEVEL_HINTS): New macro. + (options): Add entry for twolevel_hints. + (dump_data_in_code): Fix error message. + (dump_twolevel_hints): New function. + (dump_load_command): Handle prebound dylib, prebind cksum + and twolevel hints. + (mach_o_dump): Handle twolevel hints. -2013-02-15 Kai Tietz <ktietz@redhat.com> +2014-04-01 Tristan Gingold <gingold@adacore.com> - * objcopy.c (copy_main): Initialize context variable. + * od-macho.c (OPT_DATA_IN_CODE): New macro. + (options): Add entry for data in code. + (mach_o_help): Ditto. + (data_in_code_kind_name): New array. + (dump_data_in_code): New function. + (dump_load_command): Handle data in code. + (mach_o_dump): Ditto. + (dump_header): Display a terminal newline. -2013-02-15 Nick Clifton <nickc@redhat.com> +2014-03-27 Tristan Gingold <gingold@adacore.com> - PR binutils/15140 - * ar.c (open_inarch): Fail on attempts to convert a normal archive - to a thin archive or vice versa. - * elfcomm.c (make_qualified_name): Handle corrupted thin - archives. - * readelf.c (process_archive): Likewise. - * doc/binutils.texi: Clarify documentation describing thin - archives. + * od-macho.c (dump_load_command): Display value for + BFD_MACH_O_LC_DYLD_ENVIRONMENT. Handle BFD_MACH_O_LC_DATA_IN_CODE + and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS. -2013-02-15 Nick Clifton <nickc@redhat.com> +2014-03-27 Tristan Gingold <gingold@adacore.com> - PR binutils/15033 - * objcopy.c (enum change_action): Delete. - (struct section_list): Delete remove, copy, change_vma, change_lma - and set_flags fields. Add context field. - (find_section_list): Add a context parameter. Add support for - wildcard characters in section names. - (is_strip_section): Check for sections being both copied and - removed. - (copy_object): Pass context to find_section_list. - (setup_section): Likewise. - (copy_section): Likewise. - (copy_main): Likewise. - * doc/binutils: Document the new behaviour. - * NEWS: Mention the new feature + * od-macho.c (OPT_FUNCTION_STARTS): New macro. + (options): Add entry for function_starts. + (mach_o_help): Ditto. + (disp_segment_prot): New function. + (dump_section_map): Call disp_segment_prot. + (dump_function_starts): New function. + (dump_obj_compact_unwind): Fix ouput indentation. + (dump_exe_compact_unwind): Fix ouput indentation. + (mach_o_dump): Handle function_starts. -2013-02-14 Nick Clifton <nickc@redhat.com> +2014-03-26 Tristan Gingold <gingold@adacore.com> - PR binutils/15125 - * objcopy.c (copy_object): Provide a helpful warning message when - adding a gnu_debuglink section to an object which already contains - one. + * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64. -2013-02-07 Nick Clifton <nickc@redhat.com> +2014-03-24 Tristan Gingold <gingold@adacore.com> - * elfcomm.c (get_archive_member_name): Prevent seg-fault if a - corrupt archive uses long names but has no long name table. + * objdump.c (load_specific_debug_section): Set address of section. -2013-02-06 Sandra Loosemore <sandra@codesourcery.com> - Andrew Jenner <andrew@codesourcery.com> +2014-03-24 Tristan Gingold <gingold@adacore.com> - Based on patches from Altera Corporation. + * od-macho.c (dump_unwind_encoding_x86): Set the factor. + (dump_exe_compact_unwind): Change the condition. Improve + indentation. - * readelf.c: Include elf/nios2.h. - (dump_relocations): Add case for EM_ALTERA_NIOS2. - (get_nios2_dynamic_type): New. - (get_dynamic_type): Add case for EM_ALTERA_NIOS2. - (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case. - (is_16bit_abs_reloc): Likewise. - (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases. - * NEWS: Note Altera Nios II support. - * MAINTAINERS: Add Nios II maintainers. +2014-03-20 Nick Clifton <nickc@redhat.com> -2013-01-29 Xi Wang <xi.wang@gmail.com> + * readelf.c (process_version_sections): Fix off-by-one error in + previous delta. - * readelf.c (process_version_sections): Fix overflow checks to - avoid undefined behaviour. +2014-03-19 Nick Clifton <nickc@redhat.com> -2013-01-28 Doug Evans <dje@google.com> + PR binutils/16723 + * readelf.c (process_version_sections): Prevent an infinite loop + when the vn_next field is zero but there are still entries to be + processed. - * dwarf.c (display_gdb_index): Handle .gdb_index version 8. +2014-03-17 Tristan Gingold <gingold@adacore.com> -2013-01-28 Robert Schiele <rschiele@gmail.com> + * od-macho.c (dump_section_header): Renames of dump_section. + (dump_segment): Adjust after renaming. + (OPT_COMPACT_UNWIND): Define. + (options): Add compact unwind. + (mach_o_help): Document compact_unwind. + (unwind_x86_64_regs, unwind_x86_regs): New arrays. + (dump_unwind_encoding_x86, dump_unwind_encoding) + (dump_obj_compact_unwind, dump_exe_compact_unwind) + (dump_section_content): New functions. + (mach_o_dump): Handle compact unwind. - * objcopy.c (parse_flags): Add merge and strings section flags. +2014-03-17 Tristan Gingold <gingold@adacore.com> -2013-01-25 Cary Coutant <ccoutant@google.com> + * od-macho.c (dump_load_command): Handle lazy load dylib. - * dwarf.c (display_loc_list): Update offset for each line - printed. - (print_addr_index): New function. - (display_loc_list_dwo): Update offset for each line printed. - Fix problems displaying loclists in .dwo files. Add support - for type 4 entries. - (display_debug_loc): Remove custom header for .dwo files. - (display_debug_addr): Adjust formatting. +2014-03-14 Anthony Green <green@moxielogic.com> -2013-01-25 Marco Atzeri <marco.atzeri@gmail.com> + * objcopy.c (copy_object): Check fwrite return code. - * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK. +2014-03-14 Meador Inge <meadori@codesourcery.com> -2013-01-24 Doug Evans <dje@google.com> + * dwarf.c (strnlen): Move prototype ... + * sysdep.h (strnlen): ... to here. - * dwarf.c (display_debug_addr): Add missing parentheses to expression. +2014-03-12 Nick Clifton <nickc@redhat.com> -2013-01-24 Nick Clifton <nickc@redhat.com> + PR binutils/16652 + * doc/binutils.texi (ar cmdline): Move --plugin command line + option to after the command option. - * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH. +2014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com> -2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> + PR binutils/16567 + * deflex.l: Add noinput and nounput options. - * readelf.c: Add strings for NT_S390_LAST_BREAK and - NT_S390_SYSTEM_CALL. +2014-03-12 Alan Modra <amodra@gmail.com> -2013-01-18 Nick Clifton <nickc@redhat.com> + * Makefile.in: Regenerate. + * doc/Makefile.in: Regenerate. - PR binutils/15026 - * addr2line.c (translate_addresses): When pretty printing, print - unknown function names on the same line as unknown symbol names. +2014-03-06 Nick Clifton <nickc@redhat.com> -2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu> + PR binutils/16664 + * readelf.c (process_attributes): Add checks for corrupt + attribute section names. - * objdump.c (dump_target_specific): Fix NULL pointer test. +2014-03-05 Alan Modra <amodra@gmail.com> -2013-01-16 Alan Modra <amodra@gmail.com> + Update copyright years. - PR binutils/15018 - * stabs.c (parse_stab_members): Always set physname here to avoid - gcc warning.. - (parse_stab_argtypes): ..and don't duplicate the init here. +2014-03-03 Alan Modra <amodra@gmail.com> -2013-01-10 Will Newton <will.newton@imgtec.com> + * README: Add "Copyright Notices" paragraph. - * binutils/readelf.c: (guess_is_rela): Add EM_METAG. - (dump_relocations): Add EM_METAG. - (get_machine_name): Correct case for Meta. - (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc. - (is_none_reloc): Add support for Meta NONE reloc. +2014-02-11 Cary Coutant <ccoutant@google.com> -2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com> + * binutils/dwarf.c (read_and_display_attr_value): Don't warn + for zero-length attribute value. - * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK - and NT_ARM_HW_WATCH. +2014-02-10 Alan Modra <amodra@gmail.com> -2013-01-07 Roland McGrath <mcgrathr@google.com> + * po/binutils.pot: Regenerate. - * objcopy.c (deterministic): Make int rather than bfd_boolean, - initialize to -1. - (strip_options, copy_options): Add -U/--disable-deterministic-archives. - (default_deterministic): New function. - (strip_main, copy_main): Handle -U. Call default_deterministic. - (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is - the default based on DEFAULT_AR_DETERMINISTIC. - * doc/binutils.texi (objcopy, strip): Describe -U and effect of - configure options on -D. +2014-02-06 Andrew Pinski <apinski@cavium.com> - * ar.c (default_deterministic): Comment fix. + * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case. -2013-01-07 Patrice Dumas <pertusus@free.fr> +2014-02-06 Cary Coutant <ccoutant@google.com> - * doc/binutils.texi: Fix ordering of top level nodes. - Replace erroneous uses of @itemx with @item. + PR binutils/16444 + * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION. -2013-01-04 Andreas Schwab <schwab@linux-m68k.org> +2014-01-08 H.J. Lu <hongjiu.lu@intel.com> - * doc/binutils.texi (elfedit): Fix use of @itemx in @table. + * version.c (print_version): Update copyright year to 2014. -2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com> +2014-01-07 Tom Tromey <tromey@redhat.com> - * MAINTAINERS: Add myself as AArch64 co-maintainer. + * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with + stdarg macros. + * dlltool.c (inform): Replace obsolete VA_* macros with stdarg + macros. + * dllwrap.c (inform, warn): Replace obsolete VA_* macros with + stdarg macros. -2013-01-02 H.J. Lu <hongjiu.lu@intel.com> +2014-01-07 Tom Tromey <tromey@redhat.com> - * version.c (print_version): Update copyright year to 2013. + * coffgrok.h (coff_ofile): Don't use PARAMS. + * nlmheader.y (strerror): Don't use PARAMS. -For older changes see ChangeLog-2012 +For older changes see ChangeLog-2013 -Copyright (C) 2013 Free Software Foundation, Inc. +Copyright (C) 2014 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright |