]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/ChangeLog
MIPS/readelf: Simplify GOT[1] data availability check
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
index 4c78f7940fbdc41654f64f42115f7d34c210e16b..7f8e29d9eeb031a8057a1b524546358c088b2a43 100644 (file)
@@ -1,9 +1,310 @@
-2017-02-27  Rudy Y  <rudyy.id@gmail.com>
+2017-04-25  Maciej W. Rozycki  <macro@imgtec.com>
 
-       PR 20881
-       * dlltool.c (secdata): Align .idata$6 on 2 byte boundary.
-       (make_one_lib_file): Export a symbol called __nm_<symbol> for use
-       with auto-importing.
+       * readelf.c (process_mips_specific): Remove error reporting from
+       GOT[1] processing.
+
+2017-04-25  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * readelf.c (process_mips_specific): Remove null GOT data check.
+
+2017-04-25  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * 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.
+
+2017-04-23  Alan Modra  <amodra@gmail.com>
+
+       PR 21418
+       * ar.c (main): Check -a, -b, -i and -N args are given.
+
+2017-04-23  Alan Modra  <amodra@gmail.com>
+
+       PR 21417
+       * ar.c (main): Check that an archive file is given after options.
+
+2017-04-23  Alan Modra  <amodra@gmail.com>
+
+       PR 21415
+       * objdump.c (disassemble_section): Check bfd_get_section_contents
+       status.
+
+2017-04-23  Alan Modra  <amodra@gmail.com>
+
+       PR 21408
+       * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
+       file_table.
+
+2017-04-21  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21378
+       * readelf.c (print_gnu_build_attribute_name): Check for an
+       overlarge name field.
+
+2017-04-13  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21379
+       * readelf.c (process_dynamic_section): Detect over large section
+       offsets in the DT_SYMTAB entry.
+
+2017-04-13  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21345
+       * readelf.c (process_mips_specific): Catch an unfeasible memory
+       allocation before it happens and print a suitable error message.
+
+2017-04-13  Nick Clifton  <nickc@redhat.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.
+
+2017-04-10  John Delsignor  <john.delsignore@roguewave.com>
+
+       PR binutils/21319
+       * dwarf.c (display_gdb_index): Correct test for a corrupt address
+       table size.
+
+2017-04-05  Jiong Wang  <jiong.wang@arm.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.
+
+2017-04-04  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.
+
+2017-04-03  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.
+
+2017-04-03  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.
+
+2017-03-31  Pip Cet  <pipcet@gmail.com>
+
+       * NEWS: Use "WebAssembly" consistently.
+       * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
+
+2017-03-30  Pip Cet  <pipcet@gmail.com>
+
+       * 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.
+
+2017-03-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
+
+       * configure.ac (AC_CHECK_DECLS): Add asprintf.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2017-03-02  Nick Clifton  <nickc@redhat.com>
+
+       * 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.
+
+2017-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf.c (debug_displays_assert): New static assertion.
+
+2017-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
+
+2017-03-01  Nick Clifton  <nickc@redhat.com>
+
+       * 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.
+       (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>