-2016-12-13 Jiong Wang <jiong.wang@arm.com>
+2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
- * readelf.c (is_32bit_abs_reloc): Recognize R_AARCH64_P32_ABS32.
+ * readelf.c (process_mips_specific): Remove error reporting from
+ GOT[1] processing.
-2016-12-13 Nick Clifton <nickc@redhat.com>
+2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
- * MAINTAINERS (Past Maintainers): New section. Move Mark
- Mitchell's name here.
+ * readelf.c (process_mips_specific): Remove null GOT data check.
-2016-12-09 Maciej W. Rozycki <macro@imgtec.com>
+2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
- * testsuite/binutils-all/mips/mips16-extend-noinsn.d: New test.
- * testsuite/binutils-all/mips/mips16-extend-noinsn.s: New test
- source.
- * testsuite/binutils-all/mips/mips.exp: Run the new test.
-
-2016-12-08 Maciej W. Rozycki <macro@imgtec.com>
-
- * testsuite/binutils-all/mips/mips16-pcrel.d: New test.
- * testsuite/binutils-all/mips/mips16-pcrel.s: New test source.
- * testsuite/binutils-all/mips/mips.exp: Run the new test.
-
-2016-12-08 Étienne Buira <etienne.buira@gmail.com>
-
- * readelf.c (process_program_headers): Always use hex prefix when
- displaying the segment alignment.
-
-2016-12-06 Nick Clifton <nickc@redhat.com>
-
- PR binutils/20930
- * objcopy.c (mark_symbols_used_in_relocations): Check for a null
- symbol pointer pointer before attempting to mark the symbol as
- kept.
-
-2016-12-05 Jose E. Marchesi <jose.marchesi@oracle.com>
-
- * MAINTAINERS: Add myself as maintainer for the SPARC targets.
-
-2016-12-05 Nick Clifton <nickc@redhat.com>
-
- PR ld/20923
- * objcopy.c (mark_symbols_used_in_relocations): Check for a null
- symbol pointer before attempting to mark the symbol as kept.
-
-2016-12-01 Luis Machado <lgustavo@codesourcery.com>
-
- * nm.c (sort_symbols_by_size): Don't read symbol size if symbol
- is synthetic.
-
-2016-11-30 Nick Clifton <nickc@redhat.com>
-
- PR ld/20815
- * readelf.c (process_program_headers): Do not warn about out of
- order PT_LOAD segments.
-
-2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
-
- * testsuite/binutils-all/arc/objdump.exp (Warning test): Update
- test.
-
-2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
-
- * dwarf.c: Fix spelling in comments.
- * dwarf.h: Fix spelling in comments.
- * objcopy.c: Fix spelling in comments.
- * od-macho.c: Fix spelling in comments.
- * rclex.c: Fix spelling in comments.
- * readelf.c: Fix spelling in comments.
- * stabs.c: Fix spelling in comments.
-
-2016-11-23 Nick Clifton <nickc@redhat.com>
-
- PR ld/20815
- * readelf.c (process_program_headers): Check PT_LOAD and PT_PHDR
- segments for validity.
-
-2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
-
- * configure: Regenerate.
-
-2016-11-22 Alan Modra <amodra@gmail.com>
-
- PR 20744
- * NEWS: Mention PowerPC VLE relocation error.
-
-2016-11-16 Mark Wielaard <mark@klomp.org>
-
- * cxxfilt.c (main): Recognize rust_demangling.
-
-2016-11-14 Rudy <jacky.chouchou@yandex.ru>
-
- PR binutils/20814
- * dlltool.c (struct export): Remove hint field.
- (make_one_lib_file): Store the ordinal value for IDATA6 not the
- hint.
- (gen_lib_file): Delete reference to hint field.
- (mangle_defs): Delete computation of hint field.
-
-2016-11-11 Nick Clifton <nickc@redhat.com>
-
- PR binutils/20751
- * nm.c (with_symbol_versions): New local variable.
- (long_options): Add --with-symbol-versions.
- (usage): Mention --with-symbol-versions.
- (print_symbol): If with_symbol_versions is set then display the
- version information associated with the symbol.
- * NEWS: Mention the new feature.
- * doc/binutils.texi (nm): Document the new option.
- (objdump): Describe how symbol version information is displayed
- for dynamic symbol dumps.
- (readelf): Describe how symbol version information is displayed.
- * testsuite/binutils-all/nm.exp: Add a test of the new feature.
-
-2016-11-08 Nick Clifton <nickc@redhat.com>
-
- PR binutils/20794
- * readelf.c (process_section_headers): Fix off-by-one error when
- checking for invalid sh_link and sh_info fields.
-
-2016-11-04 Andrew Burgess <andrew.burgess@embecosm.com>
-
- * objcopy.c (copy_section): Add extra calls to free for error
- paths.
-
-2016-11-04 Tom Tromey <tom@tromey.com>
-
- * dwarf-mode.el (dwarf-browse): Set default-directory. Bump
- version number.
-
-2016-11-04 Palmer Dabbelt <palmer@dabbelt.com>
-
- * MAINTAINERS: Add myself and Andrew Waterman as maintainers for
- the RISC-V target.
-
-2016-11-01 Palmer Dabbelt <palmer@dabbelt.com>
- Andrew Waterman <andrew@sifive.com>
-
- Add support for RISC-V architecture.
- * readelf.c (guess_is_rela): Add EM_RISCV.
- (get_machine_name): Likewise.
- (dump_relocations): Add support for riscv relocations.
- (get_machine_flags): Add support for riscv flags.
- (is_32bit_abs_reloc): Add R_RISCV_32.
- (is_64bit_abs_reloc): Add R_RISCV_64.
- (is_none_reloc): Add R_RISCV_NONE.
- * testsuite/binutils-all/objdump.exp (cpus_expected): Add riscv.
- Expect the debug_ranges test to fail.
-
-2016-10-17 Nick Clifton <nickc@redhat.com>
-
- * readelf.c (apply_relocations): Fail if the symbol table section
- linked to by the reloc section does not have either the SHT_SYMTAB
- or SHT_DYNSYM type.
- (print_gnu_note): Decode the contents of NT_GNU_HWCAP notes.
- Print the contents of unknown note types.
- (process_note): Add the file and section to the parameter list.
- Use print_symbol to display the note name.
- Display the contents of unknown note types.
- (process_corefile_note_segment): Rename to process_notes_at.
- Add section parameter. Apply relocations to the notes when
- loading from a section. Display section name when processing
- notes in a section.
- * testsuite/binutils-all/readelf.n: Update expected output.
-
-2016-10-17 Nick Clifton <nickc@redhat.com>
-
- * readelf.c (get_dynamic_type): Add DT_SYMTAB_SHNDX.
- (get_machine_type): Add EM_CLOUDSHIELD, EM_COREA_1ST,
- EM_COREA_2ND, EM_OPEN8, EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2,
- EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8,
- EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA,
- EM_Z80, EM_AMDGPU, EM_RISCV.
- (get_osabi_name): Add ELFOSABI_CLOUDABI and ELFOSABI_OPENVS.
- (get_group_flags): Update to handle flags in the
- GRP_MASKOS and GRP_MASKPROC ranges.
-
-2016-10-14 Luis Machado <lgustavo@codesourcery.com>
-
- * testsuite/lib/utils-lib.exp (run_dump_test): Call remote_download
- to copy file to remote host.
+ * testsuite/binutils-all/mips/mips16-alias.d: New test.
+ * testsuite/binutils-all/mips/mips16-noalias.d: New test.
+ * testsuite/binutils-all/mips/mips16-alias.s: New test source.
+ * testsuite/binutils-all/mips/mips.exp: Run the new tests.
-2016-10-11 Nick Clifton <nickc@redhat.com>
+2017-04-23 Alan Modra <amodra@gmail.com>
- * objdump.c (is_significant_symbol_name): New function.
- (remove_useless_symbols): Do not remove significanr symbols.
- (find_symbol_for_address): If an exact match for the specified
- address has not been found, try scanning the dynamic relocs to see
- if one of these matches the address. If so, use the symbol
- associated with the reloc.
- (objdump_print_addr_with_symbol): Do not print offsets to symbols
- with no value.
- (disassemble_section): Only use dynamic relocs if the user
- requested this.
- (disassemble_data): Always load dynamic relocs if they are
- available.
+ PR 21418
+ * ar.c (main): Check -a, -b, -i and -N args are given.
-2016-10-06 Alan Modra <amodra@gmail.com>
+2017-04-23 Alan Modra <amodra@gmail.com>
- * dlltool.c: Spell fall through comments consistently.
- * objcopy.c: Likewise.
- * readelf.c: Likewise.
- * dwarf.c: Add missing fall through comments.
- * elfcomm.c: Likewise.
- * sysinfo.y: Likewise.
- * readelf.c: Likewise. Also remove extraneous comments.
+ PR 21417
+ * ar.c (main): Check that an archive file is given after options.
-2016-10-06 Alan Modra <amodra@gmail.com>
+2017-04-23 Alan Modra <amodra@gmail.com>
- * cxxfilt.c (usage): Add ATTRIBUTE_NORETURN.
- * elfedit.c (usage): Likewise.
- * nm.c (usage): Likewise.
- * objcopy.c (copy_usage, strip_usage): Likewise.
- * srconv.c (show_usage): Likewise.
- * strings.c (usage): Likewise.
- * sysdump.c (show_usage): Likewise.
- * srconv.c: Remove unneeded forward function declarations.
- * strings.c: Likewise.
- * sysdump.c: Likewise.
+ PR 21415
+ * objdump.c (disassemble_section): Check bfd_get_section_contents
+ status.
-2016-10-06 Alan Modra <amodra@gmail.com>
+2017-04-23 Alan Modra <amodra@gmail.com>
- * coffdump.c (dump_coff_where): Add missing break.
- * stabs.c (stab_xcoff_builtin_type): Likewise.
+ PR 21408
+ * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
+ file_table.
-2016-09-29 Alan Modra <amodra@gmail.com>
+2017-04-21 Nick Clifton <nickc@redhat.com>
- * readelf.c (process_arch_specific): Call process_power_specific
- for EM_PPC64.
+ PR binutils/21378
+ * readelf.c (print_gnu_build_attribute_name): Check for an
+ overlarge name field.
-2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
+2017-04-13 Nick Clifton <nickc@redhat.com>
- * Makefile.am: Replace AM_CLFAGS with AM_CFLAGS_FOR_BUILD
- when building with CC_FOR_BUILD compiler.
- * Makefile.in: Regenerate.
- * configure: Likewise.
- * doc/Makefile.in: Likewise.
+ PR binutils/21379
+ * readelf.c (process_dynamic_section): Detect over large section
+ offsets in the DT_SYMTAB entry.
-2016-09-26 Alan Modra <amodra@gmail.com>
-
- * readelf.c (display_power_gnu_attribute): Catch truncated section
- for all powerpc attributes. Display long double ABI. Don't
- capitalize words, except for names. Show known bits of tag values
- when some unknown bits are present. Whitespace fixes.
+2017-04-13 Nick Clifton <nickc@redhat.com>
-2016-09-26 Alan Modra <amodra@gmail.com>
+ PR binutils/21345
+ * readelf.c (process_mips_specific): Catch an unfeasible memory
+ allocation before it happens and print a suitable error message.
- * nm.c (get_elf_symbol_type): Don't use sprintf with translated
- strings, use asprintf instead.
- (get_coff_symbol_type): Likewise.
+2017-04-13 Nick Clifton <nickc@redhat.com>
-2016-09-19 Alan Modra <amodra@gmail.com>
+ * objcopy.c: Add --no-merge-notes option to disable note merging.
+ Add --[no-]merge-notes option to strip, and enable it by default.
+ (num_bytes): New function.
+ (merge_gnu_build_notes): Add code to merge stack size notes.
+ * binutils.texi: Update strip and objcopy documentation.
+ * readelf.c (print_gnu_build_attribute_name): Use defined
+ constants for note types.
- * nm.c (print_symbol): Remove is_synthetic param. Test sym->flags
- instead.
- (print_size_symbols, print_symbols): Adjust to suit, deleting
- now unused synth_count param and fromsynth var.
- (display_rel_file): Adjust, localizing synth_count.
+2017-04-10 John Delsignor <john.delsignore@roguewave.com>
-2016-09-14 Ed Maste <emaste@freebsd.org>
+ PR binutils/21319
+ * dwarf.c (display_gdb_index): Correct test for a corrupt address
+ table size.
- * readelf.c (process_mips_specific): Fix typo in error message.
+2017-04-05 Jiong Wang <jiong.wang@arm.com>
-2016-09-06 Nick Clifton <nickc@redhat.com>
+ * objcopy.c (struct redefine_node): Delete the field "next".
+ (redefine_sym_list): Deleted.
+ (redefine_specific_htab): New hash table.
+ (redefine_specific_reverse_htab): Likewise.
+ (eq_string_redefnode): New function.
+ (htab_hash_redefnode): Likewise.
+ (create_symbol2redef_htab): Likewise.
+ (add_specific_symbol_node): Likewise.
+ (create_symbol_htabs): Create redefine_specific_htab and
+ redefine_specific_reverse_htab.
+ (lookup_sym_redefinition): Use hash table instead of list.
+ (redefine_list_append): Likewise, and rename to add_redefine_and_check.
+ (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
+ Update comments.
- * readelf.c (request_dump_bynumber): Only call memcpy if
- dump_sects is not NULL.
+2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
-2016-08-29 H.J. Lu <hongjiu.lu@intel.com>
+ * NEWS: Mention support for ELF SHF_GNU_MBIND and
+ PT_GNU_MBIND_XXX.
+ * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
+ (get_elf_section_flags): Handle SHF_GNU_MBIND.
+ (process_section_headers): Likewise.
+ * testsuite/binutils-all/mbind1.s: New file.
+ * testsuite/binutils-all/objcopy.exp: Run readelf test on
+ mbind1.s.
- * readelf.c (load_specific_debug_section): Check the external
- compression header size.
+2017-04-03 Nick Clifton <nickc@redhat.com>
-2016-08-19 Nick Clifton <nickc@redhat.com>
+ PR binutils/21345
+ * readelf.c (get_program_headers): Check for there being too many
+ program headers before attempting to allocate space for them.
- * testsuite/binutils-all/readelf.s: Adjust expected ordering of
- sections.
- * testsuite/binutils-all/readelf.s-64: Likewise.
+2017-04-03 Nick Clifton <nickc@redhat.com>
-2016-08-12 Nick Clifton <nickc@redhat.com>
+ PR binutils/21344
+ * readelf.c (process_mips_specific): Check for an out of range GOT
+ entry before reading the module pointer.
+
+2017-04-03 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21343
+ * readelf.c (get_unwind_section_word): Fix snafu checking for
+ invalid word offsets in ARM unwind information.
- * readelf.c (process_symbol_table): Generate a warning if a local
- symbol is found at and offste greater than or equal to the sh_info
- field of it's section header.
+2017-03-31 Pip Cet <pipcet@gmail.com>
-2016-08-08 Nick Clifton <nickc@redhat.com>
+ * NEWS: Use "WebAssembly" consistently.
+ * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
- PR binutils/20440
- * dwarf.c (display_debug_lines_decoded): Add checks for running
- off the end of the section when populating the directory table and
- file table.
- (frame_display_row): Set max_regs equal to ncols.
- * readelf.c (load_specific_debug_section): If the section is
- compressed, but it is not big enough to hold a compression
- header then warn and return 0.
+2017-03-30 Pip Cet <pipcet@gmail.com>
- PR binutils/20439
- * dwarf.c (display_debug_lines_decoded): Check directory and file
- indicies before using them to access directory and file tables.
+ * readelf.c: Add support for wasm32 ELF format WebAssembly files.
+ (guess_is_rela): Likewise.
+ (dump_relocations): Likewise.
+ (is_32bit_abs_reloc): Likewise.
+ (is_none_reloc_): Likewise.
+ * NEWS: Mention the new support.
+ * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
+ as ELF target.
+ (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
+ * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
+ * testsuite/binutils-all/wasm32: New directory.
+ * testsuite/binutils-all/wasm32/create-wasm.d: New file.
+ * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
+ * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
+ * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
+ * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
+ * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
+ * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
+ * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
+ * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
+ * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
+ * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
+ * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
+ * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
+ * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
+ * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
+
+2017-03-29 Alan Modra <amodra@gmail.com>
+
+ * doc/binutils.texi (objdump): Document PowerPC -M options.
+
+2017-03-21 Andi Kleen <ak@linux.intel.com>
+
+ * objdump.c (unwind_inlines): Add.
+ (option_values): Add OPTION_INLINES.
+ (show_line): Unwind inlines if requested.
+ (main): Parse OPTION_INLINES.
+ (usage): Document --inlines.
+ * doc/binutils.texi: Document --inlines.
+ * NEWS: Likewise.
+
+2017-03-21 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (print_gnu_build_attribute_name): Allow stack
+ protection notes to contain numeric values. Use a colon rather
+ than a space to separate a string name from its values. Decode
+ the numeric value of a stack protection note.
+ * objcopy.c (merge_gnu_build_notes): Allow version notes to
+ contain extra text after the protocol version number.
+
+2017-03-20 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (process_program_headers): Move dynamic_addr check
+ after .dynamic section cross check.
+
+2017-03-17 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (print_gnu_build_attribute_name): Fix off by one error
+ printing the value for a build note with an ascii name.
+
+2017-03-16 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (print_gnu_build_attribute_name): Add support for
+ GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
+
+2017-03-14 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (print_gnu_build_attribute_description): Move symbol
+ printing code to...
+ (print_symbol_for_build_attribute): New function. ...here.
+ Add to find the best symbol to associate with an OPEN note.
+ Add code to cache the symbol table and string table, so that they
+ are not loaded every time a note is displayed.
+ * testsuite/binutils-all/note-2-32.s: Add a function symbol.
+ * testsuite/binutils-all/note-2-64.s: Likewise.
+ * testsuite/binutils-all/note-2-32.d: Update expected note output.
+ * testsuite/binutils-all/note-2-64.d: Likewise.
+
+2017-03-13 Alan Modra <amodra@gmail.com>
+ Taeung Song <treeze.taeung@gmail.com>
+
+ * objdump.c (update_source_path): Add abfd param. Add struct
+ stat var. Pass to try_print_file_open. Warn if source is more
+ recent than object.
+ (try_print_file_open, slurp_file): Add struct stat param to
+ return fstat.
+ (show_line): Call update_source_path with bfd.
+
+2017-03-10 Chia-Hao Lo <fcamel@gmail.com>
+
+ PR binutils/21235
+ * objdump.c (main): Set do_wide with --wide.
+
+2017-03-10 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (get_machine_name): Rearrange switch table in order of
+ increasing machine number. Add missing entries.
+
+2017-03-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/21231
+ * readelf.c (decode_x86_isa): Change argument to unsigned int.
+ (print_gnu_property_note): Retrieve property type and datasz as
+ 4-byte integer. Consolidate property datasz check. Check
+ GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
+ * testsuite/binutils-all/i386/pr21231a.d: New file.
+ * testsuite/binutils-all/i386/pr21231a.s: Likewise.
+ * testsuite/binutils-all/i386/pr21231b.d: Likewise.
+ * testsuite/binutils-all/i386/pr21231b.s: Likewise.
+ * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
+ * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
+ * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
+ * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
+
+2017-03-06 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (print_gnu_build_attribute_name): Read byte values
+ from the name string as unsigned bytes.
+ (process_notes_at): Use memcpy to copy an unterminated name
+ string.
-2016-08-02 Nick Clifton <nickc@redhat.com>
+2017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
- PR binutils/17512
- * resbin.c (bin_to_res_version): Cast variables to correct type
- for printing in error message.
-
-2016-07-28 Nick Clifton <nickc@redhat.com>
-
- PR binutils/17512
- * rescoff.c (read_coff_res_dir): Fix detection of buffer overrun.
- * resbin.c (bin_to_res_version): Allow for the padded length of a
- version block to be longer than the recorded length. Skip padding
- bytes.
-
-2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
-
- * configure: Regenerated.
-
-2016-07-20 Claudiu Zissulescu <claziss@synopsys.com>
-
- * doc/binutils.texi (objdump): Add ARC disassembler options.
- * testsuite/binutils-all/arc/dsp.s: New file.
- * testsuite/binutils-all/arc/objdump.exp: Likewise.
- * NEWS: Mention the new feature.
-
-2016-07-20 Nick Clifton <nickc@redhat.com>
-
- * doc/binutils.texi (objcopy): Note that the localize symbol
- options do not affect unique symbols.
-
-2016-07-16 Alan Modra <amodra@gmail.com>
-
- * ar.c: Include plugin-api.h.
- * nm.c: Likewise.
-
-2016-07-16 Alan Modra <amodra@gmail.com>
-
- * bucomm.c: Don't include libbfd.h.
- (endian_string, display_target_list): Delete forward declaration.
- (display_info_table, display_target_tables): Likewise.
- (LONGEST_ARCH): Delete.
- (struct display_target): New.
- (do_display_target): New function.
- (display_target_list, display_info): Rewrite functions.
- (display_info_table): Delete.
- (do_info_size, do_info_header, do_info_row): New functions.
+ * configure.ac (AC_CHECK_DECLS): Add asprintf.
+ * config.in: Regenerate.
+ * configure: Regenerate.
-2016-07-16 Alan Modra <amodra@gmail.com>
+2017-03-02 Nick Clifton <nickc@redhat.com>
- * elfcomm.h (HOST_WIDEST_INT): Move to..
- * sysdep.h: ..here.
- * od-macho.c: Don't include libbfd.h. Do include dwarf.h
- (dump_dyld_info_rebase): Use read_leb128 rather than
- read_unsigned_leb128.
- (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
- (dump_segment_split_info): Likewise.
- (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
- (dump_load_command): Likewise.
+ * readelf.c (print_gnu_build_attribute_description): Use global
+ symbols for OPEN attributes if at all possible.
+ * objcopy.c (is_merged_note_section): Support build note sections
+ without the SHF_GNU_BUILD_NOTE section flag set.
-2016-07-16 Alan Modra <amodra@gmail.com>
+2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- * ar.c: Don't include libbfd.h.
- * objcopy.c: Likewise.
- * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
- bfd_malloc.
+ * dwarf.c (debug_displays_assert): New static assertion.
-2016-07-15 Alan Modra <amodra@gmail.com>
+2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
+ * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
-2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
+2017-03-01 Nick Clifton <nickc@redhat.com>
- * doc/binutils.texi (objcopy): Document 'remove-relocations'.
- (strip): Likewise.
- * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
- (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
- (struct option strip_options): Add 'remove-relocations'.
- (struct option copy_options): Likewise.
+ * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
+ (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
+ (decode_x86_isa): New function.
+ (print_gnu_property_note): New function.
+ (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
+ (print_gnu_build_attribute_description): New function.
+ (print_gnu_build_attribute_name): New function.
+ (process_note): Add support for GNU_BUILD_NOTEs.
+ * objcopy.c (--merge-notes): New command line option.
+ (copy_options): Add merge-notes.
(copy_usage): Likewise.
- (strip_usage): Likewise.
- (handle_remove_relocations_option): New function.
- (discard_relocations): New function.
- (handle_remove_section_option): New function.
- (copy_relocations_in_section): Use discard_relocations.
- (strip_main): Use handle_remove_section_option for
- 'remove-section', and handle 'remove-relocations' option.
- (copy_main): Likewise.
- * testsuite/binutils-all/objcopy.exp: Run new tests.
- * testsuite/binutils-all/remove-relocs-01.d: New file.
- * testsuite/binutils-all/remove-relocs-01.s: New file.
- * testsuite/binutils-all/remove-relocs-02.d: New file.
- * testsuite/binutils-all/remove-relocs-03.d: New file.
- * testsuite/binutils-all/remove-relocs-04.d: New file.
- * testsuite/binutils-all/remove-relocs-05.d: New file.
- * testsuite/binutils-all/remove-relocs-06.d: New file.
- * NEWS: Mention new option.
-
-2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
-
- * objcopy.c (find_section_list): Handle section patterns starting
- with '!' being a non-matching pattern.
- * doc/binutils.texi (objcopy): Give example of using '!' with
- --remove-section and --only-section.
- (strip): Give example of using '!' with --remove-section.
- * testsuite/binutils-all/data-sections.s: New file.
- * testsuite/binutils-all/only-section-01.d: New file.
- * testsuite/binutils-all/remove-section-01.d: New file.
- * testsuite/binutils-all/objcopy.exp: Run new tests.
- * NEWS: Mention new feature.
-
-2016-07-09 Alan Modra <amodra@gmail.com>
-
- PR binutils/20337
- * objdump.c (compare_symbols): For ELF, sort same value/type
- symbols according to size.
-
-2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
-
- * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
- to SEC_ELF_NOREAD.
- * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
- ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
- (process_section_headers): Rename noread to purecode.
-
- * section.c (SEC_ELF_NOREAD): Rename to ...
- (SEC_ELF_PURECODE): ... this.
-
-2016-07-01 Nick Clifton <nickc@redhat.com>
-
- * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
- extremely large decimal value.
- (pr_range_type): Likewise.
- (pr_array_type): Likewise.
- (pr_struct_field): Likewise.
- (pr_class_baseclass): Likewise.
- (pr_class_method_variant): Likewise.
- (pr_tag_type): Likewise.
- (pr_int_constant): Likewise.
- (pr_typed_constant): Likewise.
- (pr_variable): Likewise.
- (pr_function_parameter): Likewise.
- (pr_start_block): Likewise.
- (pr_lineno): Likewise.
- (pr_end_block): Likewise.
- (tg_enum_type): Likewise.
- (tg_int_constant): Likewise.
- (tg_typed_constant): Likewise.
- (tg_start_block): Likewise.
-
-2016-07-01 Nick Clifton <nickc@redhat.com>
-
- * testsuite/binutils-all/objcopy.exp
- (objcopy_test_without_global_symbol): Expect this test to fail on
- the AArch64 and ARM targets, since they preserve their mapping
- symbols.
-
-2016-07-01 Tristan Gingold <gingold@adacore.com>
-
- * NEWS: Add marker for 2.27.
-
-2016-07-30 Tristan Gingold <gingold@adacore.com>
-
- * doc/binutils.texi (objdump): Fix mis-placement.
-
-2016-06-28 Nick Clifton <nickc@redhat.com>
-
- * testsuite/binutils-all/ar.exp: Relax previous restriction on
- Alpha targets. Allow ELF based Alpha targets.
-
-2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
-
- * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
- the `unique_symbol' test.
-
-2016-06-28 Alan Modra <amodra@gmail.com>
-
- PR 20304
- * objdump.c (objdump_print_symname): Don't attempt to retrieve
- version info from synthetic symbols.
-
-2016-06-24 Alan Modra <amodra@gmail.com>
-
- * objcopy.c (find_section_rename): Forward declare. Remove
- ibfd and sec_ptr param. Add old_name param. Allow for NULL
- returned_flags. Move read of section name and flags to..
- (setup_section): ..here. Update find_section_rename call.
- (filter_symbols): Rename section symbols for renamed sections.
- (copy_object): Call filter_symbols when renamed sections.
- * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
- * testsuite/binutils-all/update-section.exp: Revert 96037eb0
- mips xfail.
- * testsuite/binutils-all/objcopy.exp (copy_executable): Use
- is_bad_symtab.
- (localize-hidden-1): xfail if is_bad_symtab.
- * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
- between mips/tmips.
-
-2016-06-24 Alan Modra <amodra@gmail.com>
-
- * objdump.c (struct print_file_list): Add "max_printed".
- (try_print_file_open): Init new field.
- (show_line): Don't show 5 context lines when redisplaying source.
-
-2016-06-22 Nick Clifton <nickc@redhat.com>
-
- * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
- Skip bfdtest1 tests for tic30 target.
- * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
- target.
- * testsuite/binutils-all/compress.exp: Expect some tests to fail
- on the nds32.
- * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
- * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
- targets.
- * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
- targets.
- * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
- if the bintest.o file was created. Use the
- get_standard_section_names proc to get the name of the data
- section.
- * testsuite/binutils-all/objdump.exp: Update regexps to allow for
- RX section names.
- * testsuite/binutils-all/readelf.exp: Use
- get_standard_section_names proc to get the name of the data
- section.
- * testsuite/binutils-all/readelf.r: Allow for non standard text
- section names.
- * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
- * testsuite/binutils-all/size.exp: Allow for non standard section
- names.
- * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
- to fail on mips targets.
- * testsuite/lib/utils-lib.exp (default_binutils_run): Use
- get_standard_section_names proc.
- (run_dump_test): Likewise.
- (proc get_standard_section_names): New proc.
-
-2016-06-22 Nick Clifton <nickc@redhat.com>
-
- * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
- (process_mips_specific): Likewise.
+ (is_merge_note_section): New function.
+ (merge_gnu_build_notes): New function.
+ (copy_object): Merge note sections if asked to do so.
+ (skip_section): Add skip_copy parameter. Add support for skipping
+ merged note sections.
+ (copy_relocations_in_section): Update call to skip_section.
+ (copy_section): Likewise.
+ (copy_main): Add support for merge-notes option.
+ * doc/binutils.texi: Document the new option to objcopy.
+ * NEWS: Mention the new feature.
+ * testsuite/binutils-all/note-2-32.d: New test. Checks note
+ merging on 32-bit targets.
+ * testsuite/binutils-all/note-2-32.s: New test source file.
+ * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
+ but for 64-bit targets.
+ * testsuite/binutils-all/note-2-64.s: New test source file.
+ * testsuite/binutils-all/objcopy.exp: Run the new test.
+
+2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
+
+ * objdump.c (main): Use remove_whitespace_and_extra_commas.
+
+2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix compilation with GCC 4.4.7.
+ * dwarf.c (display_loclists_list, display_debug_rnglists_list):
+ Initialize begin and end.
+
+2017-02-25 Alan Modra <amodra@gmail.com>
+
+ * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
+ Support hpux .comm variant.
+ * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
+ dw5 test for hppa64-hpux.
+
+2017-02-24 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
+ (do_reloc, do_sections, do_section_groups, do_section_details,
+ (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
+ (do_version, do_histogram, do_debugging, do_arch, do_notes,
+ (do_archive_index, is_32bit_elf, decompress_dumps): Use
+ bfd_boolean type.
+ (parse_args): Treat the do_* variables as booleans.
+ (print_vma): Return an unsigned int.
+ (print_symbol): Change width parameter to signed int.
+ (is_ia64_vms): Change return type to bfd_boolean.
+ (guess_is_rela): Likewise.
+ (slurp_rela_relocs): Likewise.
+ (slurp_rel_relocs): Likewise.
+ (dump_relocations): Likewise.
+ (process_file_header): Likewise.
+ (get_program_headers): Likewise.
+ (process_program_headers): Likewise.
+ (process_section_headers): Likewise.
+ (process_section_groups): Likewise.
+ (dump_ia64_vms_dynamic_fixups): Likewise.
+ (dump_ia64_vms_dynamic_relocs): Likewise.
+ (process_ia64_vms_dynamic_relocs): Likewise.
+ (process_relocs): Likewise.
+ (dump_ia64_unwind): Likewise.
+ (ia64_process_unwind): Likewise.
+ (dump_hppa_unwind): Likewise.
+ (slurp_hppa_unwind_table): Likewise.
+ (hppa_process_unwind): Likewise.
+ (decode_arm_unwind_bytecode): Likewise.
+ (decode_tic6x_unwind_bytecode): Likewise.
+ (decode_arm_unwind): Likewise.
+ (dump_arm_unwind): Likewise.
+ (arm_process_unwind): Likewise.
+ (process_unwind): Likewise.
+ (get_32bit_dynamic_section): Likewise.
+ (get_64bit_dynamic_section): Likewise.
+ (process_dynamic_section): Likewise.
+ (process_version_sections): Likewise.
+ (process_symbol_table): Likewise.
+ (process_syminfo): Likewise.
+ (apply_relocations): Likewise.
+ (disassemble_section): Likewise.
+ (dump_section_as_strings): Likewise.
+ (dump_section_as_bytes): Likewise.
+ (load_specific_debug_section): Likewise.
+ (load_debug_section): Likewise.
+ (display_debug_section): Likewise.
+ (process_section_contents): Likewise.
+ (process_attributes): Likewise.
+ (process_nds32_specific): Likewise.
(process_gnu_liblist): Likewise.
+ (print_core_note): Likewise.
+ (print_gnu_note): Likewise.
+ (print_v850_note): Likewise.
+ (process_netbsd_elf_note): Likewise.
+ (print_stapsdt_note): Likewise.
+ (print_ia64_vms_note): Likewise.
+ (process_note): Likewise.
+ (process_notes_at): Likewise.
+ (process_corefile_note_segments): Likewise.
+ (process_v850_notes): Likewise.
+ (process_note_sections): Likewise.
+ (process_notes): Likewise.
+ (process_arch_specific): Likewise.
+ (get_file_header): Likewise.
+ (process_object): Likewise.
+ (process_archive): Likewise.
+ (process_file): Likewise.
+ (section_subset): Make static.
+ (get_mips_reg_size): Return a signed integer.
+ (process_object): Reverse the logic of the return value.
+ (process_archive): Likewise.
+ (process_file): Likewise.
+ (process_program_headers): Fix snafu - if the program headers are
+ not available then this is not a cause to fail.
+ (process_corefile_note_segments): Likewise.
+
+2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
+
+ * readelf.c (get_ver_flags): Tidy the formatting of the string
+ returned
+
+2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
+
+ * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
+ `isum' unsigned.
+ <SHT_GNU_verneed>: Likewise.
+
+2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
+
+ * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
+ the number of entries processed by the section size. Don't
+ break out of the loop if `ent.vd_next' is 0.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * testsuite/binutils-all/dw5.S: New file.
+ * testsuite/binutils-all/dw5.W: New file.
+ * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (display_debug_macro): Support DWARF-5. Rename
+ DW_MACRO_GNU_*.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
+ DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
+ and DW_OP_reinterpret.
+ (read_and_display_attr_value): Support DW_AT_call_value,
+ DW_AT_call_data_value, DW_AT_call_target and
+ DW_AT_call_target_clobbered.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (fetch_indirect_line_string): New function.
+ (abbrev_attr): New field implicit_const.
+ (add_abbrev_attr): New parameter implicit_const.
+ (process_abbrev_section): Support DW_FORM_implicit_const.
+ (decode_location_expression): Support DW_OP_entry_value.
+ (read_and_display_attr_value): Add parameter implicit_const. Support
+ DW_FORM_line_strp and DW_FORM_implicit_const.
+ (read_and_display_attr): Add parameter implicit_const.
+ (process_debug_info): Support line_str and DWARF-5.
+ (read_debug_line_header): Support DWARF-5.
+ (display_formatted_table): New function.
+ (display_debug_lines_raw): New parameter file. Support DWARF-5.
+ (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
+ (display_debug_lines): Pass file parameter.
+ (display_debug_macro): Update read_and_display_attr_value caller.
+ (display_debug_abbrev): Support DW_FORM_implicit_const.
+ (display_loclists_list): New function.
+ (display_loc_list): Support .debug_loclists.
+ (display_debug_ranges_list): New function from display_debug_ranges.
+ (display_debug_rnglists_list): New function.
+ (display_debug_ranges): Support .debug_rnglists.
+ (debug_displays): Add .debug_line_str, .debug_loclists and
+ .debug_rnglists.
+ * dwarf.h: Include dwarf2.h
+ (DWARF2_Internal_LineInfo): Add li_offset_size.
+ (DWARF2_Internal_CompUnit): Add cu_unit_type.
+ (enum dwarf_section_display_enum): Add line_str.
+ * readelf.c (process_section_headers): Add rnglists and loclists.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (display_block): Add parameter delimiter.
+ (decode_location_expression): Update display_block callers.
+ (read_and_display_attr_value): Add parameter delimiter.
+ (read_and_display_attr, display_debug_macro): Update
+ read_and_display_attr_value caller.
+
+2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
+ and off.
+ (display_loc_list_dwo): Use dwarf_vma for offset.
+ (display_debug_loc): Use dwarf_vma for offset, base_address.
+ (struct range_entry, range_entry_compar): Use dwarf_vma for
+ ranges_offset.
+ (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
+ base_address.
+
+2017-02-23 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (display_tag_value): Use an explicit signed type for
+ the tag parameter.
+ (display_gnu_attributes): Use an unsigned integer type for
+ attribute tags.
+ (display_power_gnu_attribute): Likewise.
+ (display_s390_gnu_attribute): Likewise.
+ (display_sparc_hwcaps): Likewise.
+ (display_sparc_hwcaps2): Likewise.
+ (display_sparc_gnu_attribute): Likewise.
+ (display_mips_gnu_attribute): Likewise.
+ (display_tic6x_attribute): Likewise.
+ (display_raw_attribute): Likewise.
+ (process_attributes): Likewise.
+ (process_arm_specific): Delete redundant function.
+ (process_power_specific): Likewise.
+ (process_s390_specific): Likewise.
+ (process_sparc_specific): Likewise.
+ (process_tic6x_specific): Likewise.
+ (process_msp430x_specific): Likewise.
+ (display_public_gnu_attributes): New function. Displays known
+ information about an unknown gnu attribute.
+ (display_generic_attribute): New function. Calls
+ display_tag_value for non-nul tags.
+ (process_arch_specific): Call process_attributes even for
+ architectures not known to specifically support gnu attributes.
+
+2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (decode_location_expression): Display also OP.
+
+2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
+
+ * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
+ new line between the heading and the first version definition
+ entry.
+
+2017-02-20 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21156
+ * dwarf.c (cu_tu_indexes_read): Move into...
+ (load_cu_tu_indexes): ... here. Change the variable into
+ tri-state. Change the function into boolean, returning
+ false if the indicies could not be loaded.
+ (find_cu_tu_set): Return NULL if the indicies could not be
+ loaded.
+
+2017-02-17 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21156
+ * readelf.c (find_section_in_set): Test for invalid section
+ indicies.
+
+2017-02-17 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (get_section_type_name): Add decoding of GNU section
+ types.
+
+2017-02-15 Nick Clifton <nickc@redhat.com>
+
+ * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
+ Maintainers section.
+
+2017-02-14 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21159
+ * readelf.c (dump_section_as_strings): Reset the start address if
+ no decompression is perfromed.
+ (dump_section_as_bytes): Likewise.
+
+2017-02-14 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21158
+ * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
+ empty symbol name.
+
+2017-02-14 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21157
+ * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
+ pairs.
+ (parse_number): Exit early if passed an empty string.
+
+2017-02-14 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21155
+ * readelf.c (IN_RANGE): New macro. Tests for an address + offset
+ being within a given range.
+ (target_specific_reloc_handling): Use macro to test for underflow
+ as well as overflow of reloc offset.
+
+2017-02-13 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21150
+ * nm.c (file_symbol): Add test of string length before testing
+ string characters.
-2016-06-21 Graham Markall <graham.markall@embecosm.com>
-
- * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
- case.
-
-2016-06-15 Nick Clifton <nickc@redhat.com>
-
- * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
- reloc.
-
-2016-06-14 John Baldwin <jhb@FreeBSD.org>
-
- * objcopy.c (do_elf_stt_common): Use correct type.
-
-2016-06-14 Alan Modra <amodra@gmail.com>
-
- * ar.c: Expand uses of bfd_my_archive.
- * size.c: Likewise.
-
-2016-06-14 Alan Modra <amodra@gmail.com>
+2017-02-13 Nick Clifton <nickc@redhat.com>
- PR ld/20241
- * bucomm.c (bfd_get_archive_filename): Return file name within thin
- archive.
+ PR binutils/21135
+ * readelf.c (dump_section_as_bytes): Handle the case where
+ uncompress_section_contents returns false.
+ (dump_section_as_bytes, load_specific_debug_section): Likewise.
-2016-06-02 Nick Clifton <nickc@redhat.com>
+2017-02-13 Nick Clifton <nickc@redhat.com>
- PR 20089
- * objcopy.c (group_signature): Fail if the input symbol table has
- not been loaded, or if the sh_info field of the group header is 0.
+ PR binutils/21149
+ * readelf.c (get_compression_header): Add size parameter. Check
+ size against sizeof compression header before attempting to
+ extract the header.
+ (process_section_headers): Pass size to get_compression_header.
+ (dump_section_as_strings): Likewise.
+ (dump_section_as_bytes): Likewise.
+ (load_specific_debug_section): Likewise.
- * dwarf.c (display_debug_frames): Do not display any
- interpretation if the block consists solely of DW__CFA_NOPs.
+2017-02-13 Nick Clifton <nickc@redhat.com>
-2016-05-31 Alan Modra <amodra@gmail.com>
-
- * objcopy.c: Formatting, whitespace throughout.
- (copy_main): Init newsym->othersym.
- (parse_symflags): Make len a size_t. Adjust uses.
-
-2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/14625
- * NEWS: Mention --enable-64-bit-archive.
-
-2016-05-18 Nick Clifton <nickc@redhat.com>
-
- PR 20096
- * objcopy.c (copy_relocations_in_section): Also check for the
- symbol pointed to by sym_ptr_ptr being NULL.
-
-2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
-
- * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
- * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
- source.
- * testsuite/binutils-all/mips/mips.exp: Run the new test.
+ PR binutils/21148
+ * readelf.c (process_version_sections): Include size of auxillary
+ version information when checking for buffer overflow.
-2016-05-18 Nick Clifton <nickc@redhat.com>
+2017-02-13 Nick Clifton <nickc@redhat.com>
- * po/sv.po: Updated Swedish translation.
+ PR binutils/21147
+ * readelf.c (process_section_contents): Fix off by one error
+ reporting un-dumped sections.
-2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
+2017-02-13 Nick Clifton <nickc@redhat.com>
- * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
- <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
- <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
- <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
- <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
- <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
- `d_val' rather than `d_ptr' member of the dynamic entry.
+ PR binutils/21139
+ * readelf.c (target_specific_reloc_handling): Add num_syms
+ parameter. Check for symbol table overflow before accessing
+ symbol value. If reloc pointer is NULL, discard all saved state.
+ (apply_relocations): Pass num_syms to target_specific_reloc_handling.
+ Call target_specific_reloc_handling with a NULL reloc pointer
+ after processing all of the relocs.
-2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
+2017-02-13 Nick Clifton <nickc@redhat.com>
- * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
- procedure.
- * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
- with the `strip-10' test.
+ PR binutils/21137
+ * readelf.c (target_specific_reloc_handling): Add end parameter.
+ Check for buffer overflow before writing relocated values.
+ (apply_relocations): Pass end to target_specific_reloc_handling.
-2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
+2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
+ Nick Clifton <nickc@redhat.com>
- * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
- test for the V850.
+ PR 20343
+ * doc/binutils.texi (ar): Extend documentation of the --plugin
+ option. Include a description of where the plugins should be
+ located.
+ (nm): Likewise.
-2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
+2017-01-23 Nick Clifton <nickc@redhat.com>
- * readelf.c (print_mips_ases): Add DSPR3.
-
-2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
-
- * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
- (arm_attr_public_tags): Define DSP_extension attribute.
-
-2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
-
- * doc/binutils.texi (nm): Update description of --size-sort.
-
-2016-05-09 Nick Clifton <nickc@redhat.com>
-
- PR binutils/20063
- * readelf.c (get_32bit_section_headers): Warn if an out of range
- sh_link or sh_info field is encountered.
- (get_64bit_section_headers): Likewise.
-
-2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
-
- * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
-
-2016-05-03 Nick Clifton <nickc@redhat.com>
-
- * po/sv.po: Updated Swedish translation.
-
-2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
-
- * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
- PC relocation for AVR target.
- (is_none_reloc): Return true if reloc is any of AVR diff
- relocations.
-
-2016-04-29 Nick Clifton <nickc@redhat.com>
-
- PR 19938
- * readelf.c (get_solaris_segment_type): New function.
- (get_segment_type): Call it.
-
-2016-04-28 Nick Clifton <nickc@redhat.com>
-
- * po/zh_CN.po: Updated Chinese (simplified) translation.
-
-2016-04-28 Nick Clifton <nickc@redhat.com>
-
- PR target/19722
- * testsuite/binutils-all/aarch64/illegal.s: New test.
- * testsuite/binutils-all/aarch64/illegal.d: New test driver.
-
-2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
-
- * resres.c: Likewise.
-
-2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
-
- * Makefile.in: Regenerated with automake 1.11.6.
- * aclocal.m4: Likewise.
- * doc/Makefile.in: Likewise.
+ * MAINTAINERS: Add Bernd to Past Maintainers section.
+ (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
+ section.
-2016-04-14 Nick Clifton <nickc@redhat.com>
+2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
- PR target/19938
- * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
- string sections possibly having the SHF_STRINGS flag bit set.
- * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
- * testsuite/binutils-all/readelf.s: Likewise.
- * testsuite/binutils-all/readelf.s-64: Likewise.
- * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
- * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
+ * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
-2016-04-13 Nick Clifton <nickc@redhat.com>
+2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
- PR target/19938
- * readelf.c (get_solaris_section_type): New function: Returns the
- name of Solaris specific section types.
- (get_solaris_dynamic_type): New function: Return the name of
- Solaris specific dynamic types.
- (get_dynamic_type): Use get_solaris_dynamic_type.
- (get_section_type_name): Use get_solaris_section_type.
- (get_solaris_symbol_visibility): New function: Returns Solaris
- specific symbol visibilities.
- (print_dynamic_symbol): Use get_solaris_symbol_visibility.
- (process_symbol_table): Likewise.
+ * objdump.c (dump_section_header): Extract max section name length
+ from data parameter, use this when formatting output.
+ (find_longest_section_name): New function.
+ (dump_headers): Calculate longest section name when in wide mode,
+ reformat to unify printing of header line.
-2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
+2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
- * dwarf.h (init_dwarf_regnames_s390): Declare.
- * dwarf.c (dwarf_regnames_s390): New.
- (init_dwarf_regnames_s390): New.
- (init_dwarf_regnames): Call it.
- * objdump.c (dump_dwarf): Likewise.
+ PR 21059
+ * arlex.l: Support processing with flex 2.6.3.
+ * deflex.l: Likewise.
-2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
+2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
- * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
- * testsuite/binutils-all/mips/mips16-undecoded.s: New test
+ * resbin.c: Optional dialog control data immediately follows
+ the control description without alignment.
+ * testsuite/binutils-all/windres/controldata.rc: New test.
source.
- * testsuite/binutils-all/mips/mips.exp: Run the new test.
-
-2016-04-04 Nick Clifton <nickc@redhat.com>
-
- PR 19872
- * dwarf.c (display_debug_aranges): Skip warning about unrecognised
- version number if the version is zero.
-
-2016-03-29 Alan Modra <amodra@gmail.com>
-
- * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
- (get_dynamic_data): Likewise.
-
-2016-03-22 Nick Clifton <nickc@redhat.com>
-
- PR 19851
- * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
- with run time size check.
-
- * configure: Regenerate.
-
-2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
-
- * readelf.c (decode_ARC_machine_flags): Handle nps400.
+ * testsuite/binutils-all/windres/controldata.rsd: New test.
-2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
+2017-01-12 Nick Clifton <nickc@redhat.com>
- * readelf.c (get_machine_flags): Move arc processing into...
- (decode_ARC_machine_flags): ... new function. Remove use of
- EF_ARC_CPU_GENERIC, change default case from "generic arc" to
- "unknown arc". Merged ABI printing between two machine types.
-
-2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
-
- * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
- to the architecture list.
-
-2016-03-21 Nick Clifton <nickc@redhat.com>
-
- * dlltool.c: Replace use of alloca with call to xmalloc.
- * dllwrap.c: Likewise.
- * nlmconv.c: Likewise.
- * objdump.c: Likewise.
- * resrc.c: Likewise.
- * winduni.c: Likewise.
- * configure: Regenerate.
-
-2016-03-07 Nick Clifton <nickc@redhat.com>
-
- PR binutils/19775
- * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
- Run the new proc.
- * testsuite/binutils-all/empty: New, empty, file.
-
-2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
-
- * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
-
-2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
-
- PR ld/19645
- * NEWS: Mention --elf-stt-common= for objcopy.
- * doc/binutils.texi: Document --elf-stt-common= for objcopy.
- * objcopy.c (do_elf_stt_common): New.
- (command_line_switch): Add OPTION_ELF_STT_COMMON.
- (copy_options): Add --elf-stt-common=.
- (copy_usage): Add --elf-stt-common=.
- (copy_object): Also check do_elf_stt_common for ELF targets.
- (copy_file): Handle do_elf_stt_common.
- (copy_main): Handle OPTION_ELF_STT_COMMON.
- * readelf.c (apply_relocations): Support STT_COMMON.
- * testsuite/binutils-all/common-1.s: New file.
- * testsuite/binutils-all/common-1a.d: Likewise.
- * testsuite/binutils-all/common-1b.d: Likewise.
- * testsuite/binutils-all/common-1c.d: Likewise.
- * testsuite/binutils-all/common-1d.d: Likewise.
- * testsuite/binutils-all/common-1e.d: Likewise.
- * testsuite/binutils-all/common-1f.d: Likewise.
- * testsuite/binutils-all/common-2.s: Likewise.
- * testsuite/binutils-all/common-2a.d: Likewise.
- * testsuite/binutils-all/common-2b.d: Likewise.
- * testsuite/binutils-all/common-2c.d: Likewise.
- * testsuite/binutils-all/common-2d.d: Likewise.
- * testsuite/binutils-all/common-2e.d: Likewise.
- * testsuite/binutils-all/common-2f.d: Likewise.
- * testsuite/binutils-all/objcopy.exp
- (objcopy_test_elf_common_symbols): New proc.
- Run objcopy_test_elf_common_symbols for ELF targets
-
-2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/19647
- * readelf.c (get_section_type_name): Add a missing break.
-
-2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
-
- * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
-
-2016-02-15 Nick Clifton <nickc@redhat.com>
-
- * readelf.c (get_section_type_name): Add hex prefix to offsets
- printed for LOPROC and LOOS values. Ensure that a result is
- always returned for the V850 target, even when an unrecognised
- processor specific value is encountered.
- (process_section_headers): Display key values in the order in
- which they appear to the user. Add the "C (compressed)" value to
- the list.
-
-2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
-
- * doc/binutils.texi: Fix a typo.
-
-2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
-
- * testsuite/binutils-all/objdump.exp: Update expected default
- architecture value for ARC binaries.
-
-2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/19547
- * testsuite/binutils-all/objcopy.exp
- (objcopy_test_without_global_symbol): New proc.
- Run objcopy_test_without_global_symbol.
- * testsuite/binutils-all/pr19547.c: New file.
-
-2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/19523
- * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
- runtest.
- * Makefile.in: Regenerated.
- * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
- proc.
- Run test_gnu_debuglink for native ELF build.
-
-2016-01-20 Nick Clifton <nickc@redhat.com>
-
- PR 19495
- * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
- do not support inserting leading underscores.
-
-2016-01-20 Mickael Guene <mickael.guene@st.com>
-
- * readelf.c (get_elf_section_flags): Display y letter for section
- with SHF_ARM_NOREAD section flag in readelf section output.
- (process_section_headers): Add y letter in readelf section output
- key mapping for ARM architecture.
- * objdump.c (dump_section_header): Display NOREAD attributes as
- well.
- * doc/binutils.texi (objdump): Note that it is correct for
- sections to have both the READONLY and NOREAD attributes.
-
-2016-01-19 John Baldwin <jhb@FreeBSD.org>
-
- * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
-
-2016-01-19 John Baldwin <jhb@FreeBSD.org>
+ PR binutils/20876
+ * NEWS: Mention the new feature.
+ * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
+ New proc to test the location of separate debug info files using
+ the build-id method.
- * readelf.c (get_freebsd_elfcore_note_type): New
- (process_note): Add support for FreeBSD core notes.
-
-2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
- Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
+2017-01-10 Nick Clifton <nickc@redhat.com>
- * readelf.c (get_machine_flags): Add support for newer ARC ELF
- header flags.
+ PR 21034
+ * stabs.c (parse_stab_members): Fix thinko checking for g++
+ version 1 stabs information.
-2016-01-18 Alan Modra <amodra@gmail.com>
+2017-01-09 Nick Clifton <nickc@redhat.com>
- * configure: Regenerate.
+ * objdump.c (display_file): Add new parameter 'last_file'. If
+ last_file is true, do not call bfd_close at the end of the
+ function.
+ (main): Set the value of the last_file parameter when calling
+ display_file.
-2016-01-17 Alan Modra <amodra@gmail.com>
+2017-01-09 Alan Modra <amodra@gmail.com>
- * configure: Regenerate.
+ * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
+ comment.
-2016-01-17 Alan Modra <amodra@gmail.com>
+2017-01-06 Nick Clifton <nickc@redhat.com>
- * testsuite/lib/binutils-common.exp (is_elf_format): Return true
- for m68hc11/12 and xgate triples.
+ * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
-2016-01-17 Alan Modra <amodra@gmail.com>
+2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
- * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
+ PR 20958
+ * syslex.l (option): Add noyywrap
+ (yywrap): Delete.
-2016-01-01 Alan Modra <amodra@gmail.com>
+2017-01-02 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
-For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
+For older changes see ChangeLog-2016
\f
-Copyright (C) 2016 Free Software Foundation, Inc.
+Copyright (C) 2017 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright