linux-nat: Exploit /proc/<pid>/mem for writing
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index bb08d93c3c42697bcb4a4c9c983763f8473cedf8..71dd6e2fb25a94b7d13761a03180c4dd235f0be8 100644 (file)
@@ -1,3 +1,274 @@
+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>
+
+       * 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
This page took 0.026146 seconds and 4 git commands to generate.