X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2FChangeLog;h=a5796a8cf90cfab88e5e68cd3c2a554a849f096c;hb=7ca166c9408599e64c0cd3c5d3f0d00c8fae2d9e;hp=ef9a5fdffc3da766dbfe02b5eda253f117e886e2;hpb=7a815dd566f3dd32435ac73aa0a0cc948d525e06;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ef9a5fdffc..a5796a8cf9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,510 @@ +2018-12-08 Alan Modra + + * strings.c (unget_part_char): New function. + (print_strings): Use unget_part_char. Formatting. + * testsuite/binutils-all/strings.exp (test_multibyte): Don't + use square brackets in fail message. Expect "String1\nString2". + +2018-12-07 Alan Modra + + * nm.c (display_rel_file): Use xrealloc to increase minisyms + for synthetic symbols. + +2018-12-07 Nick Clifton + + * addr2line.c (demangle_flags): New static variable. + (long_options): Add --recurse-limit and --no-recurse-limit. + (translate_address): Pass demangle_flags to bfd_demangle. + (main): Handle --recurse-limit and --no-recurse-limit options. + * cxxfilt.c: (long_options): Add --recurse-limit and + --no-recurse-limit. + (main): Handle new options. + * nm.c (demangle_flags): New static variable. + (long_options): Add --recurse-limit and --no-recurse-limit. + (main): Handle new options. + * objdump.c (demangle_flags): New static variable. + (usage): Add --recurse-limit and --no-recurse-limit. + (long_options): Likewise. + (objdump_print_symname): Pass demangle_flags to bfd_demangle. + (disassemble_section): Likewise. + (dump_dymbols): Likewise. + (main): Handle new options. + * prdbg.c (demangle_flags): New static variable. + (tg_variable): Pass demangle_flags to demangler. + (tg_start_function): Likewise. + * stabs.c (demangle_flags): New static variable. + (stab_demangle_template): Pass demangle_flags to demangler. + (stab_demangle_v3_argtypes): Likewise. + (stab_demangle_v3_arg): Likewise. + * doc/binutuls.texi: Document new command line options. + * NEWS: Mention the new feature. + * testsuite/config/default.exp (CXXFILT): Define if not already + defined. + (CXXFILTFLAGS): Likewise. + * testsuite/binutils-all/cxxfilt.exp: New file. Runs a few + simple tests of the cxxfilt program. + +2018-12-03 Nick Clifton + + PR 23941 + * testsuite/binutils-all/i386/compressed-1a.d: Update expected output. + * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise. + +2018-12-01 Alan Modra + + PR 23946 + * readelf.c (slurp_ia64_unwind_table): Bounds check symbol index + on reloc. + (slurp_hppa_unwind_table): Likewise. + +2018-12-01 Alan Modra + + PR 23945 + * readelf.c (slurp_ia64_unwind_table): Don't call elf_ia64_reloc_type + needlessly. + (slurp_hppa_unwind_table): Use same range checks and error messages + as slurp_ia64_unwind_table. + +2018-11-29 Nick Clifton + + PR 23931 + * objdump.c (dump_relocs_in_section): When checking for an + unreasonable amount of relocs in a bfd, allow for the fact that + the internal representation of a reloc may be bigger than the + external representation. + +2018-11-27 Mark Wielaard + + PR binutils/23919 + * readelf.c (dump_sections_as_strings): Remove bogus addralign check. + (dump_sections_as_bytes): Likewise. + (load_specific_debug_sections): Likewise. + * testsuite/binutils-all/dw2-3.rS: Adjust alignment. + * testsuite/binutils-all/dw2-3.rt: Likewise. + +2018-11-20 H.J. Lu + + PR binutils/23898 + * testsuite/lib/binutils-common.exp (prune_warnings_extra): + Prune gaps in build notes. + +2018-11-13 Francois H. Theron + + * testsuite/binutils-all/nfp/test1.d: Test for swapped operand crc[]. + + +2018-11-09 Hafiz Abid Qadeer + + * configure: Regenerate. + +2018-11-09 Mathias + + * strings.c (print_strings): Check for multibyte encodings. + * binutils-all/strings-1.bin: New file. Test binary for string decoding. + * testsuite/binutils-all/strings.exp: New file. Test the strings program. + * testsuite/config/default.exp (STRINGS): Define if not provided + by the environment. + (STRINGSFLAGS): Likewise. + +2018-11-07 Masatake Yamato + + * objdump.c (long_options): Have the --disassemble option take an + optional argument. + (usage): Add description for the `symbol' argument to the + --disassemble option. + (disasm_sym): New file private variable. + (struct objdump_disasm_info): New field `symbol'. + (disassemble_section): Introduce `do_print' local variable + to control whether objdump displays the result of disassembling + for a symbol or not. + (main): Set `symbol' file private variable if the option argument + for the --disassemble option is given. + * doc/binutils.texi (objdump): Add description for the option + argument. + * NEWS: Mention the new feature. + * testsuite/binutils-all/objdump.exp: Add tests of the -d and + --disassemble= options. + * testsuite/binutils-all/bintest.s: Add more symbols and code. + * testsuite/binutils-all/readelf.s: Update expected output. + * testsuite/binutils-all/readelf.ss-64: Likewise. + * testsuite/binutils-all/readelf.ss-mips: Likewise. + * testsuite/binutils-all/readelf.ss-tmips: Likewise. + +2018-11-07 Nick Clifton + + * po/pt.po: Updated Portuguese translation. + +2018-11-06 Roman Bolshakov + Saagar Jha + + PR 23728 + * od-macho.c (printf_version): New. + (dump_load_command): Use it to print version. Print sdk version. Print + version info for watchOS and tvOS. Print LC_NOTE, LC_BUILD_VERSION. + (dump_buld_version): New. + (bfd_mach_o_platform_name): New + (bfd_mach_o_tool_name): New + +2018-11-07 Yoshinori Sato + + * testsuite/lib/binutils-common.exp: Special section name + use only rx-*-elf. + +2018-11-06 H.J. Lu + + * doc/binutils.texi: Document --enable-x86-feature and + --disable-x86-feature options for elfedit. + * elfedit.c: Include "config.h" and . + (enable_x86_features): New. + (disable_x86_features): Likewise. + (update_gnu_property): Likewise. + (elf_x86_feature): Likewise. + (process_file): Call update_gnu_property on ET_EXEC or ET_DYN + file. + (command_line_switch): Add OPTION_ENABLE_X86_FEATURE and + OPTION_DISABLE_X86_FEATURE. + (options): Add--enable-x86-feature and --disable-x86-feature. + (usage): Likewise. + (main): Handle OPTION_ENABLE_X86_FEATURE and + OPTION_DISABLE_X86_FEATURE. + +2018-11-03 H.J. Lu + + * elfedit.c (update_elf_header): Move EI_MAG? check to ... + (get_file_header): Here. + +2018-11-02 H.J. Lu + + * configure.ac (AC_FUNC_MMAP): New. + * config.in: Regenerated. + * configure: Likewise. + +2018-11-02 Alan Modra + + * readelf.c (process_section_headers): Don't warn on a zero + sh_info or sh_link for any reloc section in an executable or + shared library. Do warn for .rel.dyn/.rela.dyn in ET_REL. + +2018-11-01 Thomas Preud'homme + + * testsuite/config/default.exp: Define LD, LDFLAGS and + ld_elf_shared_opt. + * testsuite/lib/binutils-common.exp (check_shared_lib_support): Moved + from ld-lib.exp. + (run_dump_test): Set ld to $LD. + +2018-10-18 Nick Clifton + + * doc/binutils.texi (readelf): Document alternatives to the + --unwind option if it is not supported for the target + architecture. + +2018-10-16 Alan Modra + + PR 23780 + * readelf.c (display_raw_attribute): Correct assertion. + +2018-10-15 Alan Modra + + PR 23534 + * addr2line.c (main): Exit with fatal error if bfd_init + returns an unexpected value. + * ar.c (main): Likewise. + * dlltool.c (identify_dll_for_implib): Likewise. + * nm.c (main): Likewise. + * objcopy.c (main): Likewise. + * objdump.c (main): Likewise. + * size.c (main): Likewise. + * strings.c (main): Likewise. + * windmc.c (main): Likewise. + * windres.c (main): Likewise. + +2018-10-11 Jordan Rupprecht + Nick Clifton + + * objcopy.c (copy_main): Issue a fata error if the + --keep-global-symbol(s) and the --globalize-symbol(s) options are + used together. + * doc/binutils.texi: Document that the two options are + incompatible. + * testsuite/binutils-all/copy-5.d: New test. + * testsuite/binutils-all/objcopy.exp: Run the new test. + +2018-10-10 Helge Deller + Alan Modra + + * readelf.c (hppa_process_unwind): Don't use eh_addr_size to + calculate number of entries. + (slurp_hppa_unwind_table): Don't use eh_addr_size here either. + +2018-10-10 Alan Modra + + * objdump.c (dump_dwarf): Set s12z eh_addr_size to 4. + +2018-10-08 Andreas Schwab + + * readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL. + +2018-10-03 Nick Clifton + + * po/pt.po: Updated Portuguese translation. + * po/fr.po: Updated French translation. + +2018-09-22 Alan Modra + + * readelf.c (apply_relocations): Don't return FALSE for warnings. + +2018-09-20 Nelson Chu + + * testsuite/binutils-all/objcopy.exp: Set the unsupported reloc number + from 215 to 255 for NDS32. + +2018-09-17 H.J. Lu + + * objcopy.c (strip_specific_buffer): New. + (strip_unneeded_buffer): Likewise. + (keep_specific_buffer): Likewise. + (localize_specific_buffer): Likewise. + (globalize_specific_buffer): Likewise. + (keepglobal_specific_buffer): Likewise. + (weaken_specific_buffer): Likewise. + (add_specific_symbols): Add an argument to return pointer to + allocated buffer. + (copy_main): Update add_specific_symbols to update pointers to + allocated buffer. Free pointers to allocated buffer before + return. + +2018-09-17 Alan Modra + + * objcopy.c (handle_remove_section_option): Don't require a dot + after .rela and .rel to handle a possible relocation section. + * testsuite/binutils-all/remove-relocs-07.s, + * testsuite/binutils-all/remove-relocs-07.d, + * testsuite/binutils-all/remove-relocs-08.d: New tests. + * testsuite/binutils-all/remove-relocs-01.d, + * testsuite/binutils-all/remove-relocs-04.d, + * testsuite/binutils-all/remove-relocs-05.d, + * testsuite/binutils-all/remove-relocs-06.d: Exclude mips64-openbsd. + +2018-09-17 Alan Modra + + * testsuite/lib/binutils-common.exp (is_som_format): New proc. + (run_dump_test): Correct target test for alternate .comm syntax. + (get_standard_section_names): Handle som format. + * testsuite/lib/utils-lib.exp (default_binutils_assemble_flags): + Correct target test for alternate .comm syntax. + +2018-09-17 Alan Modra + + * testsuite/binutils-all/strip-13mips64.s: Add section flags + for reloc section. + * testsuite/binutils-all/strip-13rel.s: Likewise. + * testsuite/binutils-all/strip-13rela.s: Likewise. + * testsuite/binutils-all/strip-14mips64.s: Likewise. + * testsuite/binutils-all/strip-14rel.s: Likewise. + * testsuite/binutils-all/strip-14rela.s: Likewise. + * testsuite/binutils-all/strip-15mips64.s: Likewise. + * testsuite/binutils-all/strip-15rel.s: Likewise. + * testsuite/binutils-all/strip-15rela.s: Likewise. + +2018-09-17 Nick Clifton + + * testsuite/binutils-all/compress.exp: Rename second "objcopy + zlib-gnu compress debug sections 3" test to "objcopy zlib-gabi + compress debug sections 3" and use gabi object files instead + of gnu object files. + * testsuite/binutils-all/objcopy.exp: Add suffix to the names + of the "ELF group" tests. + * testsuite/binutils-all/readelf.exp (proc readelf_find_size): + Add an iteration parameter and include it in the name of the + test. Update callers to include an iteration count. + +2018-09-15 Alan Modra + + * testsuite/binutils-all/add-symbol.d: Add "section_subst: no". + * testsuite/binutils-all/elfedit.exp: Don't set tempfile or copyfile. + * testsuite/binutils-all/symbols-1.d, + * testsuite/binutils-all/symbols-2.d, + * testsuite/binutils-all/symbols-3.d, + * testsuite/binutils-all/symbols-4.d: Quote '*' and '!'. + * testsuite/binutils-all/add-empty-section.d, + * testsuite/binutils-all/add-section.d, + * testsuite/binutils-all/elfedit.exp, + * testsuite/binutils-all/note-1.d, + * testsuite/binutils-all/pr23633.d: Add $subdir after $srcdir. + * testsuite/config/default.exp (AS, ASFLAGS): Define. + * testsuite/config/hppa.sed: Handle all common symbols. + * testsuite/lib/binutils-common.exp (run_dump_test): New proc, + merged from three other versions. + (slurp_options, file_contents, set_file_contents): Likewise. + (big_or_little_endian, get_standard_section_names): Likewise. + * testsuite/lib/utils-lib.exp (run_dump_test): Delete. + (slurp_options, proc file_contents): Delete. + (get_standard_section_names): Delete. + +2018-09-15 Alan Modra + + * testsuite/binutils-all/copy-2.d, + * testsuite/binutils-all/copy-3.d, + * testsuite/binutils-all/copy-4.d, + * testsuite/binutils-all/elfedit-1.d, + * testsuite/binutils-all/note-1.d, + * testsuite/binutils-all/note-2-64.d, + * testsuite/binutils-all/strip-11.d, + * testsuite/binutils-all/strip-13.d, + * testsuite/binutils-all/strip-14.d, + * testsuite/binutils-all/testranges.d, + * testsuite/binutils-all/x86-64/pr23494a-x32.d, + * testsuite/binutils-all/x86-64/pr23494a.d, + * testsuite/binutils-all/x86-64/pr23494b-x32.d, + * testsuite/binutils-all/x86-64/pr23494b.d, + * testsuite/binutils-all/x86-64/pr23494c-x32.d, + * testsuite/binutils-all/x86-64/pr23494c.d, + * testsuite/binutils-all/x86-64/pr23494d-x32.d, + * testsuite/binutils-all/x86-64/pr23494d.d, + * testsuite/binutils-all/x86-64/pr23494e-x32.d, + * testsuite/binutils-all/x86-64/pr23494e.d, + * testsuite/lib/utils-lib.exp (run_dump_test): Replace not-target + and not-skip with notarget and noskip. + +2018-09-15 Alan Modra + + * testsuite/binutils-all/group-7a.d, + * testsuite/binutils-all/group-7b.d, + * testsuite/binutils-all/group-7c.d, + * testsuite/binutils-all/symbols-1.d, + * testsuite/binutils-all/symbols-2.d, + * testsuite/binutils-all/symbols-3.d, + * testsuite/binutils-all/symbols-4.d: Remove DUMPPROG. + +2018-09-14 Alan Modra + + PR binutils/23633 + * testsuite/binutils-all/pr23633.d: Don't fail when assembler + generates sections other than .text. + +2018-09-13 H.J. Lu + + PR binutils/23633 + * testsuite/binutils-all/objcopy.exp: Run pr23633. + * testsuite/binutils-all/pr23633.d: New file. + * testsuite/binutils-all/pr23633.list: Likewise. + * testsuite/binutils-all/pr23633.s: Likewise. + +2018-09-13 Nick Clifton + + PR 23633 + * objcopy.c (add_specific_symbols): Do not free the buffer at the + end of the function. + +2018-09-10 Alan Modra + + PR binutils/23611 + * objcopy.c (handle_remove_section_option): Consider .rela and + .rel sections for stripping directly as well as attached to the + associated section they relocate. + * doc/binutils.texi (remove-relocations): Specify that this + option removes non-dynamic relocation sections. + * testsuite/binutils-all/objcopy.exp + (objcopy_remove_relocations_from_executable): New test. + +2018-09-03 Nick Clifton + + * po/ja.po: Updated Japanese translation. + +2018-08-31 H.J. Lu + + * testsuite/binutils-all/readelf.s-64: Adjusted for + .note.gnu.property section. + * testsuite/binutils-all/strip-3.d: Also strip + .note.gnu.property section. + +2018-08-31 H.J. Lu + + * testsuite/binutils-all/i386/compressed-1b.d: Pass + -mx86-used-note=no to assembler. + * testsuite/binutils-all/i386/compressed-1c.d: Likewise. + * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise. + * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise. + * testsuite/binutils-all/i386/empty.d: Pass -mx86-used-note=yes + to assembler and update expected output from "readelf -n". + * testsuite/binutils-all/i386/ibt.d: Likewise. + * testsuite/binutils-all/i386/pr21231a.d: Likewise. + * testsuite/binutils-all/i386/pr21231b.d: Likewise. + * testsuite/binutils-all/i386/shstk.d: Likewise. + * testsuite/binutils-all/x86-64/empty-x32.d: Likewise. + * testsuite/binutils-all/x86-64/empty.d: Likewise. + * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise. + * testsuite/binutils-all/x86-64/ibt.d: Likewise. + * testsuite/binutils-all/x86-64/pr21231a.d: Likewise. + * testsuite/binutils-all/x86-64/pr21231b.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494a.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494b.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494c.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494d.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise. + * testsuite/binutils-all/x86-64/pr23494e.d: Likewise. + * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise. + * testsuite/binutils-all/x86-64/shstk.d: Likewise. + +2018-08-30 H.J. Lu + + * readelf.c (process_section_headers): Treat SHT_FINI_ARRAY and + SHT_PREINIT_ARRAY as relocatable sections. + +2018-08-30 Chenghua Xu + + * MAINTAINERS: Add myself as a MIPS port maintainer. + +2018-08-29 Chenghua Xu + + * NEWS: Mention Loongson 2K1000 proccessor support. + * readelf.c (get_machine_flags): Handle gs264e. + +2018-08-29 Chenghua Xu + + * NEWS: Mention Loongson 3A2000/3A3000 proccessor support. + * readelf.c (get_machine_flags): Handle gs464e. + +2018-08-29 Chenghua Xu + + * NEWS: Mention Loongson 3A1000 proccessor support. + * readelf.c (get_machine_flags): Rename loongson-3a to gs464. + (print_mips_isa_ext): Delete AFL_EXT_LOONGSON_3A. + +2018-08-29 Chenghua Xu + + * readelf.c (print_mips_ases): Add Loongson EXT2 extension. + +2018-08-29 Chenghua Xu + + * readelf.c (print_mips_ases): Add Loongson EXT extension. + +2018-08-29 Chenghua Xu + + * readelf.c (print_mips_ases): Add CAM extension. + +2018-08-27 H.J. Lu + + * readelf.c (decode_x86_isa): Print if bitmask only + contains the GNU_PROPERTY_X86_UINT32_VALID bit. + (decode_x86_feature_1): Likewise. + (decode_x86_feature_2): Likewise. + (print_gnu_property_note): Don't mask out the + GNU_PROPERTY_X86_UINT32_VALID bit. + * testsuite/binutils-all/i386/pr21231b.d: Updated. + * testsuite/binutils-all/x86-64/pr21231b.d: Likewise. + +2018-08-27 H.J. Lu + + * readelf.c (decode_x86_compat_isa): Break multi-statement line. + (decode_x86_isa): Likewise. + (decode_x86_feature_2): Likewise. + 2018-08-25 H.J. Lu PR ld/23499 @@ -137,8 +644,8 @@ 2018-08-08 Kevin Buettner - * dwarf.c (decode_location_expresion): Add case for - DW_OP_GNU_variable_value. + * dwarf.c (decode_location_expresion): Add case for + DW_OP_GNU_variable_value. 2018-08-06 Claudiu Zissulescu @@ -817,7 +1324,7 @@ 2018-02-19 Matthias Klose * strings.c (long_options): Include-all-whitespace does not take - an extra agument. + an extra agument. 2018-02-13 Alan Modra