* objcopy.c (copy_main): Initialize context variable.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index 3db85fcc93d3fcd59b1691720a7754a16ae0850b..d2e6dd0ebc7989e9bec42345917152a13bbf5cf0 100644 (file)
-2011-05-03  Jakub Jelinek  <jakub@redhat.com>
-
-       * MAINTAINERS: Add myself as DWARF2 maintainer.
-
-2011-05-02  Alan Modra  <amodra@gmail.com>
-
-       PR binutils/12720
-       Revert the following change
-       Michael Snyder  <msnyder@vmware.com>
-       * ar.c (move_members): Plug memory leak.
-       (delete_members): Plug memory leak.
-
-2011-04-28  Tom Tromey  <tromey@redhat.com>
-
-       * NEWS: Add note about --dwarf-depth, --dwarf-start, and
-       dwarf-mode.el.
-       * objdump.c (suppress_bfd_header): New global.
-       (usage): Update.
-       (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
-       (options): Add dwarf-depth and dwarf-start entries.
-       (dump_bfd): Use suppress_bfd_header.
-       (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
-       * doc/binutils.texi (objcopy): Document --dwarf-depth and
-       --dwarf-start.
-       (readelf): Likewise.
-       * dwarf-mode.el: New file.
-       * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
-       (read_and_display_attr_value): Also check debug_info_p.
-       (process_debug_info): Handle dwarf_start_die and
-       dwarf_cutoff_level.
-       * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
-       * readelf.c (usage): Update.
-       (OPTION_DWARF_DEPTH): New macro.
-       (OPTION_DWARF_START): Likewise.
-       (options): Add dwarf-depth and dwarf-start entries.
-       (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
-
-2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
-
-       * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
-
-2011-04-27  Tristan Gingold  <gingold@adacore.com>
-
-       * dwarf.c (process_extended_line_op): Handle
-       DW_LNE_HP_source_file_correlation.
-
-2011-04-27  Nick Clifton  <nickc@redhat.com>
-
-       * po/da.po: Updated Danish translation.
-
-2011-04-21  Tom Tromey  <tromey@redhat.com>
-
-       * readelf.c (print_stapsdt_note): New function.
-       (process_note): Use it.
-
-2011-04-21  Tom Tromey  <tromey@redhat.com>
-
-       * readelf.c (get_stapsdt_note_type): New function.
-       (process_note): Recognize "stapsdt" notes.
-
-2011-04-21  Tom Tromey  <tromey@redhat.com>
-
-       * readelf.c (process_corefile_note_segment): Change header field
-       widths.
-       (process_note): Change field widths.
-
-2011-04-21  Tom Tromey  <tromey@redhat.com>
-
-       * readelf.c (print_gnu_note): New function.
-       (process_note): Use it.
-
-2011-04-21  Jie Zhang  <jzhang918@gmail.com>
-
-       * MAINTAINERS: Update my email address.
-
-2011-04-11  Kai Tietz  <ktietz@redhat.com>
-
-       * windres.c (usage): Add new --preprocessor-arg option.
-       (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
-       (option long_options): Add preprocessor-arg option.
-       (main): Handle it.
-       * doc/binutils.texi: Add documentation for --preprocessor-arg
-       option.
-       * NEWS: Add line about new --preprocessor-arg option for windres.
-
-2011-04-08  John Marino  <binutils@marino.st>
-
-       * arlex.l: Prevent redefinition of YY_NO_UNPUT.
-       * syslex.l: Likewise.
-
-2011-04-07  Paul Brook  <paul@codesourcery.com>
-
-       * readelf.c (arm_section_get_word): Handle C6000 relocations.
-       (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
-       decode_tic6x_unwind_bytecode, expand_prel31): New functions.
-       (decode_arm_unwind): Split out common code from ARM specific bits.
-       (dump_arm_unwind): Use expand_prel31.
-       (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
-       (process_unwind): Add SHT_C6000_UNWIND.
-
-2011-04-06  Joseph Myers  <joseph@codesourcery.com>
-
-       * configure.in (thumb-*-pe*): Remove.
-       * configure: Regenerate.
-
-2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
-
-       * MAINTAINERS: Update my email address.
-
-2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
-
-       PR binutils/12632
-       * objcopy.c (copy_unknown_object): Make the archive element
-       readable.
-
-2011-04-03  David S. Miller  <davem@davemloft.net>
-
-       * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
-       accurately, rather than how they are represented internally.
-
-2011-03-31  Tristan Gingold  <gingold@adacore.com>
-
-       * makefile.vms (readelf.exe): New target.
-
-2011-03-31  Tristan Gingold  <gingold@adacore.com>
-
-       * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
+2013-02-15  Kai Tietz  <ktietz@redhat.com>
+
+       * objcopy.c (copy_main): Initialize context variable.
+
+2013-02-15  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/15033
+       * objcopy.c (enum change_action): Delete.
+       (struct section_list): Delete remove, copy, change_vma, change_lma
+       and set_flags fields.  Add context field.
+       (find_section_list): Add a context parameter.  Add support for
+       wildcard characters in section names.
+       (is_strip_section): Check for sections being both  copied and
+       removed.
+       (copy_object): Pass context to find_section_list.
+       (setup_section): Likewise.
+       (copy_section): Likewise.
+       (copy_main): Likewise.
+       * doc/binutils: Document the new behaviour.
+       * NEWS: Mention the new feature
 
-2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
+2013-02-14  Nick Clifton  <nickc@redhat.com>
 
-       * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
-       (dump_relocations): Likewise.
+       PR binutils/15125
+       * objcopy.c (copy_object): Provide a helpful warning message when
+       adding a gnu_debuglink section to an object which already contains
+       one.
 
-2011-03-31  Tristan Gingold  <gingold@adacore.com>
+2013-02-07  Nick Clifton  <nickc@redhat.com>
 
-       * readelf.c (get_ia64_vms_note_type): New function.
-       (print_ia64_vms_note): Ditto.
-       (process_note): Recognize VMS/ia64 specific notes.
-       Display them.
-       (process_corefile_note_segment): Decode VMS notes.
+       * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
+       corrupt archive uses long names but has no long name table.
 
-2011-03-30  Catherine Moore  <clm@codesourcery.com>
+2013-02-06  Sandra Loosemore  <sandra@codesourcery.com>
+            Andrew Jenner <andrew@codesourcery.com>
 
-       * addr2line.c (translate_addresses): Sign extend the pc
-       if sign_extend_vma is enabled.
+       Based on patches from Altera Corporation.
 
-2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
+       * readelf.c: Include elf/nios2.h.
+       (dump_relocations): Add case for EM_ALTERA_NIOS2.
+       (get_nios2_dynamic_type): New.
+       (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
+       (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
+       (is_16bit_abs_reloc): Likewise.
+       (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
+       * NEWS: Note Altera Nios II support.
+       * MAINTAINERS: Add Nios II maintainers.
 
-       * readelf.c (process_gnu_liblist): Stop memory leak.
+2013-01-29  Xi Wang  <xi.wang@gmail.com>
 
-2011-03-29  Alan Modra  <amodra@gmail.com>
+       * readelf.c (process_version_sections): Fix overflow checks to
+       avoid undefined behaviour.
 
-       * coffdump.c: Include bfd_stdint.h
+2013-01-28  Doug Evans  <dje@google.com>
 
-2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
+       * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
 
-       * coffdump.c (coff_dump): Correct spelling error.
-       (show_usage): Replace SYSROFF by COFF.
+2013-01-28  Robert Schiele  <rschiele@gmail.com>
 
-2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+       * objcopy.c (parse_flags): Add merge and strings section flags.
 
-       * coffdump.c (dump_coff_scope): Use double typecast for pointer P
-       to allow compilation for all targets.
+2013-01-25  Cary Coutant  <ccoutant@google.com>
 
-2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+       * dwarf.c (display_loc_list): Update offset for each line
+       printed.
+       (print_addr_index): New function.
+       (display_loc_list_dwo): Update offset for each line printed.
+       Fix problems displaying loclists in .dwo files.  Add support
+       for type 4 entries.
+       (display_debug_loc): Remove custom header for .dwo files.
+       (display_debug_addr): Adjust formatting.
 
-       * dwarf.c (process_debug_info): Use offset_size to determine
-       the bit-size of the computation unit's offset.
-       (decode_location_expression): Use dwarf_vmatoa function to display
-       DW_OP_addr OP.
-       (process_debug_info): Use dwarf_vma type for local variables
-       length and type_offset.
+2013-01-25  Marco Atzeri  <marco.atzeri@gmail.com>
 
-2011-03-25  Michael Snyder  <msnyder@vmware.com>
+       * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
 
-       * strings.c (print_strings): Plug memory leak.
-       * ar.c (move_members): Plug memory leak.
-       (delete_members): Plug memory leak.
-       (write_archive): Plug memory leak.
-       * ieee.c (ieee_add_bb11): Plug memory leak.
-       (ieee_function_type): Likewise.
-       (ieee_class_baseclass): Likewise.
-       * prdbg.c (pr_function_type): Close memory leaks.
-       (pr_method_type): Likewise.
-       (tg_class_static_member): Likewise.
-       (tg_class_method_variant): Likewise.
-       (tg_class_static_method_variant): Likewise.
-       * stabs.c (parse_stab_enum_type): Fix memory leaks.
-       (parse_stab_struct_type): Likewise.
-       (parse_stab_struct_fields): Likewise.
-       (parse_stab_one_struct_field): Likewise.
-       (parse_stab_members): Likewise.
-       (stab_demangle_qualified): Likewise.
-       * objdump.c (dump_reloc_set): Free malloced memory.
-       * bucomm.c (make_tempname): Stop memory leak.
+2013-01-24  Doug Evans  <dje@google.com>
 
-2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+       * dwarf.c (display_debug_addr): Add missing parentheses to expression.
 
-       Replace bfd_vma type and analog types by dwarf_vma and analogs.
-       Use dwarf specific print functions to display these type values.
-       * dwarf.h (dwarf_signed_vma): New type;
-       (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
-       (DWARF2_External_PubNames): Likewise.
-       (DWARF2_External_CompUnit): Likewise.
-       (DWARF2_External_ARange): Likewise.
-       (read_leb128): Change return type to dwarf_vma.
-       * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
-       check byte_size values.
-       (dwarf_vmatoa): Change parameter type to dwarf_vma.
-       (dwarf_svmatoa): New static function.
-       (read_leb128): Change return type to dwarf_vma.
-       (read_sleb128): New static function.
-       (struct State_Machine_Registers): Change address field type to
-       dwarf_vma.
-       (process_extended_line_op): Adapt to type changes.
-       (fetch_indirect_string): Likewise.
-       (idisplay_block): Likewise.
-       (decode_location_expression): Likewise.
-       (read_and_display_attr_value): Likewise.
-       (process_debug_info): Likewise.
-       (display_debug_lines_raw): Likewise.
-       (display_debug_lines_decoded): Likewise.
-       (SLEB macro): Use new read_sleb128 function.
+2013-01-24  Nick Clifton  <nickc@redhat.com>
 
-2011-03-17  Alan Modra  <amodra@gmail.com>
+       * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
 
-       PR 12590
-       * ar.c (ranlib_main): Init arg_index properly.
-       (usage): Describe --target.
+2013-01-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
-2011-03-16  Jakub Jelinek  <jakub@redhat.com>
+       * readelf.c: Add strings for NT_S390_LAST_BREAK and
+       NT_S390_SYSTEM_CALL.
 
-       * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
-       (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
-       DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
-       (get_AT_name): Handle DW_AT_GNU_call_site_value,
-       DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
-       DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
-       DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
-       DW_AT_GNU_all_source_call_sites.
-       (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
-       handling.
-
-2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
-
-       * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
-       (decode_location_expression): Handle DW_OP_GNU_entry_value.
-       (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
-       (get_AT_name): Likewise.
-
-2011-03-14  Michael Snyder  <msnyder@vmware.com>
-
-       * objcopy.c (set_pe_subsystem): Free subsystem.
-
-       * wrstabs.c (stab_start_struct_type): Close memory leak.
-
-       * readelf.c (process_version_sections): Free symbols.
-
-       * nm.c (display_rel_file): Free symsizes.
-
-2011-03-10  Nick Clifton  <nickc@redhat.com>
-
-       * readelf.c (get_machine_name): Update EM_V850 entry.
-
-2011-03-03  Mike Frysinger  <vapier@gentoo.org>
-
-       * objdump.c (usage): Fix single typo.
-       * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
-       po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
-
-2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
-
-       PR binutils/12523
-       * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
-
-2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
-
-       * debug.c (debug_start_source): Use filename_(n)cmp.
-       * ieee.c (ieee_finish_compilation_unit): Likewise.
-       (ieee_lineno): Likewise.
-       * nlmconv.c (main): Likewise.
-       * objcopy.c (strip_main): Likewise.
-       (copy_main): Likewise.
-       * objdump.c (show_line): Likewise.
-       (dump_reloc_set): Likewise.
-       * srconv.c (main): Likewise.
-       * wrstabs.c (stab_lineno): Likewise.
+2013-01-18  Nick Clifton  <nickc@redhat.com>
 
-2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
+       PR binutils/15026
+       * addr2line.c (translate_addresses): When pretty printing, print
+       unknown function names on the same line as unknown symbol names.
 
-       * readelf.c (decode_arm_unwind): Implement decoding of remaining
-       ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
+2013-01-17  Nickolai Zeldovich  <nickolai@csail.mit.edu>
 
-2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
+       * objdump.c (dump_target_specific): Fix NULL pointer test.
 
-       * dwarf.c (read_leb128): Use bfd_vma instead of
-       long type.
-       (dwarf_vmatoa): New helper routine.
-       (process_extended_line_op): Use for adr bfd_vma
-       type and print those typed values via BFD_VMA_FMT
-       or via dwarf_vmatoa for localized prints.
-       (fetch_indirect_string): Adjust offset's type.
-       (decode_location_expression): Adjust argument types
-       and uvalue type.
-       (read_and_display_attr_value): Likewise.
-       (read_and_display_attr): Likewise.
-       (decode_location_expression): Adjust printf format.
-       (process_debug_info): Likewise.
-       (display_debug_lines_raw): Likewise.
-       (display_debug_lines_decoded): Likewise.
-       (display_debug_pubnames): Likewise.
-       (display_debug_loc): Likewise.
-       (display_debug_aranges): Likewise.
-       * dwarf.h (DWARF2_External_LineInfo,
-       DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
-       DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
-       DWARF2_Internal_CompUnit, DWARF2_External_ARange,
-       DWARF2_Internal_ARange): Added..
-       (read_leb128): Adjust return type.
+2013-01-16  Alan Modra  <amodra@gmail.com>
 
-2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+       PR binutils/15018
+       * stabs.c (parse_stab_members): Always set physname here to avoid
+       gcc warning..
+       (parse_stab_argtypes): ..and don't duplicate the init here.
 
-       * configure: Regenerate.
+2013-01-10  Will Newton <will.newton@imgtec.com>
 
-2011-02-08  Nick Clifton  <nickc@redhat.com>
+       * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
+       (dump_relocations): Add EM_METAG.
+       (get_machine_name): Correct case for Meta.
+       (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
+       (is_none_reloc): Add support for Meta NONE reloc.
 
-       PR binutils/12467
-       * readelf.c (process_program_headers): Issue a warning if there
-       are no program headers but the file header has a non-zero program
-       header offset.
-       (process_section_headers): Issue a warning if there are no section
-       headers but the file header has a non-zero section header offset.
-       (process_section_groups): Reword the no section message so that it
-       can be distinguished from the one issued by process_section_headers.
+2013-01-08  Yufeng Zhang  <yufeng.zhang@arm.com>
 
-2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
-           Doug Evans  <dje@google.com>
+       * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
+       and NT_ARM_HW_WATCH.
 
-       * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
+2013-01-07  Roland McGrath  <mcgrathr@google.com>
 
-2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
+       * objcopy.c (deterministic): Make int rather than bfd_boolean,
+       initialize to -1.
+       (strip_options, copy_options): Add -U/--disable-deterministic-archives.
+       (default_deterministic): New function.
+       (strip_main, copy_main): Handle -U.  Call default_deterministic.
+       (copy_usage, strip_usage): Describe -U.  Cite whether -D or -U is
+       the default based on DEFAULT_AR_DETERMINISTIC.
+       * doc/binutils.texi (objcopy, strip): Describe -U and effect of
+       configure options on -D.
 
-       * readelf.c (process_object): Free dynamic_section after use.
+       * ar.c (default_deterministic): Comment fix.
 
-2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
+2013-01-07  Patrice Dumas  <pertusus@free.fr>
 
-       PR binutils/12408
-       * readelf.c (process_archive): Free and reset dump_sects
-       after processing each archive member.
+       * doc/binutils.texi: Fix ordering of top level nodes.
+       Replace erroneous uses of @itemx with @item.
 
-2011-01-11  Andreas Schwab  <schwab@redhat.com>
+2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
 
-       * readelf.c (print_symbol): Handle symbol characters as unsigned.
-       Whitespace fixes.
+       * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
 
-2011-01-10  Nick Clifton  <nickc@redhat.com>
+2013-01-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
 
-       * po/da.po: Updated Danish translation.
+       * MAINTAINERS: Add myself as AArch64 co-maintainer.
 
-2011-01-06  Vladimir Siminov  <sv@sw.ru>
+2013-01-02  H.J. Lu  <hongjiu.lu@intel.com>
 
-       * bucomm.c (get_file_size): Check for negative sizes and issue a
-       warning message if encountered.
+       * version.c (print_version): Update copyright year to 2013.
 
-2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
+For older changes see ChangeLog-2012
+\f
+Copyright (C) 2013 Free Software Foundation, Inc.
 
-       * version.c (print_version): Update copyright to 2011.
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.
 
-For older changes see ChangeLog-2010
-\f
 Local Variables:
 mode: change-log
 left-margin: 8
This page took 0.029079 seconds and 4 git commands to generate.