aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
2011-03-25 * ar.c (write_archive): Plug memory leak.Nick Clifton2-0/+2
2011-03-25 * ar.c (delete_members): Plug memory leak.Nick Clifton2-2/+9
2011-03-25 * ar.c (move_members): Plug memory leak.Nick Clifton2-5/+13
2011-03-25 * strings.c (print_strings): Plug memory leak.Nick Clifton2-2/+10
2011-03-25 Replace bfd_vma type and analog types by dwarf_vma and analogs.Nick Clifton3-187/+248
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.
2011-03-17 PR 12590Alan Modra2-2/+9
* ar.c (ranlib_main): Init arg_index properly. (usage): Describe --target.
2011-03-16 * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.Jakub Jelinek2-1/+51
(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. * 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-142011-03-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+4
* objcopy.c (set_pe_subsystem): Free subsystem.
2011-03-142011-03-08 Michael Snyder <msnyder@vmware.com>Michael Snyder2-3/+3
* wrstabs.c (stab_start_struct_type): Close memory leak.
2011-03-142011-03-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+7
* readelf.c (process_version_sections): Free symbols.
2011-03-142011-03-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* nm.c (display_rel_file): Free symsizes.
2011-03-10 * common.h (EM_V850): V850s now supplied by Renesas.Nick Clifton2-1/+5
* readelf.c (get_machine_name): Update EM_V850 entry.
2011-03-03objdump: fix typo in help messageMike Frysinger12-12/+18
2011-03-01 PR binutils/12523Alan Modra2-0/+6
* readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
2011-02-28ChangeLog binutils/Kai Tietz9-15/+36
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. ChangeLog gas/ 2011-02-28 Kai Tietz <kai.tietz@onevision.com> * depend.c (register_dependency): Use filename_(n)cmp. * dwarf2dbg.c (get_filenum): Likewise. * ecoff.c (add_file): Likewise. (ecoff_generate_asm_lineno): Likewise. * input-scrub.c (new_logical_line_flags): Likewise. * listing.c (file_info): Likewise. (listing_newline): Likewise. * remap.c (remap_debug_filename): Likewise. * stabs.c (generate_asm_file): Likewise. (stabs_generate_asm_lineno): Likewise.
2011-02-24 * readelf.c (decode_arm_unwind): Implement decoding of remainingNick Clifton2-12/+83
ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
2011-02-23ChangeLog include/Kai Tietz3-84/+254
2011-02-23 Kai Tietz <kai.tietz@onevision.com> * dwarf2.h (_ELF_DWARF2_H): Renamed to _DWARF2_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): Removed. ChangeLog binutils/ 2011-02-23 Kai Tietz <kai.tietz@onevision.com> * 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.
2011-02-13Remove freebsd1 from libtool.m4 macros and config.rpath.Ralf Wildenhues2-10/+6
/: Import from Libtool and gnulib: 2011-01-27 Gerald Pfeifer <gerald@pfeifer.com> Prepare for supporting FreeBSD 10. * config.rpath: Remove handling of freebsd1* which soon would match FreeBSD 10.0. 2011-01-20 Gerald Pfeifer <gerald@pfeifer.com> (tiny change) Remove support for FreeBSD 1.x. * libtool.m4 (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. bfd/: * configure: Regenerate. gas/: * configure: Regenerate. ld/: * configure: Regenerate. opcodes/: * configure: Regenerate. binutils/: * configure: Regenerate. gprof/: * configure: Regenerate.
2011-02-08 PR binutils/12467Nick Clifton2-3/+22
* 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. * elf.c (assign_file_positions_for_load_sections): Set the program header offset and entry size to zero if there are no program headers.
2011-01-26binutils/Jan Kratochvil2-1/+12
* dwarf.c (display_gdb_index): Support version 4, warn on version 3.
2011-01-19 * readelf.c (process_object): Free dynamic_section after use.Maciej W. Rozycki2-0/+10
2011-01-18Reset dump_sects after processing each archive member.H.J. Lu2-0/+13
2011-01-18 H.J. Lu <hongjiu.lu@intel.com> PR binutils/12408 * readelf.c (process_archive): Free and reset dump_sects after processing each archive member.
2011-01-11* readelf.c (print_symbol): Handle symbol characters as unsigned.Andreas Schwab2-8/+14
Whitespace fixes.
2011-01-10 * po/da.po: Updated Danish translation.Nick Clifton2-1092/+2220
2011-01-06 * bucomm.c (get_file_size): Check for negative sizes and issue aNick Clifton2-1/+9
warning message if encountered.
2011-01-03 * lib/binutils-common.exp (regexp_diff): Use "==" instead of "eq".Dave Anglin2-2/+6
2011-01-01Update copyright in comments to 2011.H.J. Lu1-1/+1
2011-01-01Update copyright to 2011.H.J. Lu2-1/+5
binutils/ 2011-01-01 H.J. Lu <hongjiu.lu@intel.com> * version.c (print_version): Update copyright to 2011. gas/ 2011-01-01 H.J. Lu <hongjiu.lu@intel.com> * gas.c (parse_args): Update copyright to 2011. gold/ 2011-01-01 H.J. Lu <hongjiu.lu@intel.com> * version.cc (print_version): Update copyright to 2011. ld/ 2011-01-01 H.J. Lu <hongjiu.lu@intel.com> * ldver.c (ldversion): Update copyright to 2011. opcodes/ 2011-01-01 H.J. Lu <hongjiu.lu@intel.com> * i386-gen.c (process_copyright): Update copyright to 2011.
2011-01-01Rotate binutils ChangeLogs.H.J. Lu2-1070/+1078
2011-01-01 * binutils-all/copy-2.d: Change "hppa" to "hppa*" in not-target list.Dave Anglin4-2/+12
* binutils-all/copy-3.d: Add hppa*-*-hpux* to not-target list. * binutils-all/objcopy.exp (reverse-bytes): xfail on 32-bit hpux.
2010-12-31bfd/Richard Sandiford2-1/+7
2010-12-23 Robert Millan <rmh@gnu.org> * config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu. * configure.host: Likewise. * configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec', `bfd_elf32_ntradlittlemips_freebsd_vec', `bfd_elf32_tradbigmips_freebsd_vec', `bfd_elf32_tradlittlemips_freebsd_vec', `bfd_elf64_tradbigmips_freebsd_vec' and `bfd_elf64_tradlittlemips_freebsd_vec'. * configure: Regenerate. * elf32-mips.c: New target for FreeBSD support (same as traditional MIPS but overrides ELF_OSABI with ELFOSABI_FREEBSD). * elf64-mips.c: Likewise. * elfn32-mips.c: Likewise. * targets.c (_bfd_target_vector): Add `bfd_elf32_ntradbigmips_freebsd_vec', `bfd_elf32_ntradlittlemips_freebsd_vec', `bfd_elf32_tradbigmips_freebsd_vec', `bfd_elf32_tradlittlemips_freebsd_vec', `bfd_elf64_tradbigmips_freebsd_vec' and `bfd_elf64_tradlittlemips_freebsd_vec'. ld/ 2010-12-14 Robert Millan <rmh@gnu.org> * configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu. * emulparams/elf32btsmip_fbsd.sh: New file. * emulparams/elf32btsmipn32_fbsd.sh: Likewise. * emulparams/elf32ltsmip_fbsd.sh: Likewise. * emulparams/elf32ltsmipn32_fbsd.sh: Likewise. * emulparams/elf64btsmip_fbsd.sh: Likewise. * emulparams/elf64ltsmip_fbsd.sh: Likewise. * Makefile.am: Add build rules for `eelf32btsmip_fbsd.c', `eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c', `eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and `eelf64ltsmip_fbsd.c'. * Makefile.in: Regenerate. gas/ 2010-12-19 Robert Millan <rmh@gnu.org> Richard Sandiford <rdsandiford@googlemail.com> * config/tc-mips.c (ELF_TARGET): New macro. Generates target names accordingly to whether TE_FreeBSD and whether TE_TMIPS are defined. (mips_target_format): Refactor code using ELF_TARGET(). (support_64bit_objects): Likewise. * configure.in: Recognize mips-freebsd and mips-kfreebsd-gnu. * configure.tgt: Likewise. * configure: Regenerate. binutils/testsuite/ * binutils-all/readelf.exp: Handle MIPS FreeBSD targets. gas/testsuite/ * gas/mips/e32el-rel2.d: Accept any file format. * gas/mips/elf-rel.d: Likewise. * gas/mips/elf-rel2.d: Likewise. * gas/mips/elf-rel3.d: Likewise. * gas/mips/elfel-rel.d: Likewise. * gas/mips/elfel-rel2.d: Likewise. * gas/mips/elfel-rel3.d: Likewise. * gas/mips/ldstla-32-mips3-shared.d: Likewise. * gas/mips/ldstla-32-mips3.d: Likewise. * gas/mips/ldstla-32-shared.d: Likewise. * gas/mips/ldstla-32.d: Likewise. * gas/mips/ldstla-n64-shared.d: Likewise. * gas/mips/ldstla-n64.d: Likewise. * gas/mips/noat-1.d: Likewise. * gas/mips/set-arch.d: Likewise. * gas/mips/tls-o32.d: Likewise. ld/testsuite/ * ld-mips-elf/mips-elf-flags.exp: Handle FreeBSD targets. * ld-mips-elf/mips-elf.exp: Likewise. * ld-mips-elf/mips16-call-global.d: Accept any file format. * ld-mips-elf/mips16-intermix.d: Likewise.
2010-12-152010-12-15 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-5/+10
* dwarf.c (display_gdb_index): Fix printf types for used formatters.
2010-12-12Fix typos in elfedit documentation.H.J. Lu2-4/+9
2010-12-12 Peter Breitenlohner <peb@mppmu.mpg.de> PR binutils/12306 * doc/binutils.texi: Fix typos in elfedit documentation.
2010-12-10 * binemul.h (do_ar_emul_append): Declare.Alan Modra5-84/+72
* binemul.c (any_ok): New function. (do_ar_emul_append): Rename from do_ar_emul_default_append. Make global, add check arg. Adjust callers. (ar_emul_default_replace): Tidy. * configure.tgt (powerpc-*-aix[5-9]*,rs6000-*-aix[5-9]*): Use bin_aix_emulation. * emul_aix.c (bin_aix5_emulation, ar_emul_aix_internal): Delete. (ar_emul_aix5_append, ar_emul_aix5_replace): Delete. (check_aix): New function. (ar_emul_aix_append, ar_emul_aix_replace): Rewrite.
2010-12-09 gas/Maciej W. Rozycki2-8/+22
* config/tc-mips.c (file_ase_mips16): Adjust comment. (append_insn): Update file_ase_mips16. (mips_after_parse_args): Don't set file_ase_mips16 here. gas/testsuite/ * gas/mips/elf_ase_mips16.d: Update test for new MIPS16 ASE flag semantics. * gas/mips/elf_ase_mips16-2.d: New test. * gas/mips/nop.s: Source for the new test. * gas/mips/mips.exp: Run the new test. binutils/testsuite/ * lib/binutils-common.exp (regexp_diff): Implement inverse matching, requested by `!'.
2010-12-09bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignoreMike Frysinger2-0/+62
This seems to cover a few random targets as well as --enable-targets=all. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-08 * ar.c: Formatting.Alan Modra2-29/+31
(usage): Correct help strings. (decode_options): Correct getopt_long short options. Remove duplicate non-handled option message. (main): Don't handle -M specially.
2010-12-08 * ar.c (long_options): Add target.Alan Modra2-4/+16
(decode_options): Handle the --target option. (open_inarch): Check for plugin's target, default to --target (replace_members): Use generic `target'.
2010-12-08 * ar.c (operation): New global variable.Alan Modra2-187/+232
(show_version): Likewise. (show_help): Likewise. (long_options): Likewise. (usage): Fix help string argument order. (decode_options): New. (ranlib_main): Use getopt_long. (main): Use decode_options.
2010-12-08 * ar.c (main): Split ranlib path.Alan Modra2-86/+117
(ranlib_usage): New (ranlib_main): New
2010-12-03 * dwarf.c: #include "bfd_stdint.h".Doug Evans6-8/+162
(do_gdb_index): New global. (display_gdb_index): New function. (dwarf_select_sections_by_names) Add "gdb_index". (dwarf_select_sections_all): Set do_gdb_index. (debug_displays): Add .gdb_index. * dwarf.h (do_gdb_index): Declare. * objdump.c (usage): Add gdb_index. * readelf.c (usage): Add gdb_index. (process_section_headers): Process ".gdb_index". * doc/binutils.texi (readelf): Document gdb_index dump. (objdump): Ditto.
2010-12-012010-12-01 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+22
PR binutils/11065 * dlltool.c (dll_name_set_by_exp_name): New variable. (def_name): Allow setting of dll_name by .def file. (def_library): Likewise. (main): Set dll_name_set_by_exp_name, if dll_name is set indirect by exp_name.
2010-11-26 * dwarf.c (decode_location_expression, display_debug_frames): MoveAlan Modra2-12/+19
code handling DW_EH_PE_pcrel into.. (get_encoded_value): ..here.
2010-11-26update japanese translationAlan Modra2-423/+499
2010-11-25Update translationsAlan Modra7-4809/+8394
2010-11-21Add and use elfcomm.c/elfcomm.h.H.J. Lu10-1212/+902
2010-11-21 H.J. Lu <hongjiu.lu@intel.com> PR binutils/12235 * elfcomm.c: New. * elfcomm.h: Likewise. * Makefile.am (HFILES): Add elfcomm.h. (CFILES): Add elfcomm.c. (ELFLIBS): New. (readelf_SOURCES): Add $(ELFLIBS). (elfedit_SOURCES): Likewise. (objdump_SOURCES): Likewise. * Makefile.in: Regenerated. * dwarf.c: Include "elfcomm.h". (byte_get): Removed. (byte_get_little_endian): Likewise. (byte_get_big_endian): Likewise. (byte_get_signed): Likewise. (error): Likewise. (warn): Likewise. * dwarf.h (dwarf_vma): Defined with HOST_WIDEST_INT. (dwarf_size_type): Likewise. (byte_get): Removed. (byte_get_signed): Likewise. (byte_get_little_endian): Likewise. (byte_get_big_endian): Likewise. (error): Likewise. (warn): Likewise. * elfedit.c: Include "elfcomm.h". Don't include "aout/ar.h". Call error () instead of non_fatal (). (streq): Removed. (strneq): Likewise. (const_strneq): Likewise. (non_fatal): Likewise. (BYTE_GET): Likewise. (BYTE_PUT): Likewise. (byte_get): Likewise. (byte_put): Likewise. (byte_get_little_endian): Likewise. (byte_get_big_endian): Likewise. (byte_put_little_endian): Likewise. (byte_put_big_endian): Likewise. (adjust_relative_path): Likewise. (archive_info): Likewise. (setup_archive): Likewise. (release_archive): Likewise. (setup_nested_archive): Likewise. (get_archive_member_name): Likewise. (get_archive_member_name_at): Likewise. (make_qualified_name): Likewise. * objdump.c: Include "elfcomm.h". * readelf.c: Include "elfcomm.h". Don't include "aout/ar.h". (BYTE_GET): Removed. (BYTE_GET_SIGNED): Removed. (streq): Likewise. (strneq): Likewise. (const_strneq): Likewise. (byte_put): Likewise. (byte_put_little_endian): Likewise. (byte_put_big_endian): Likewise. (adjust_relative_path): Likewise. (archive_info): Likewise. (setup_archive): Likewise. (release_archive): Likewise. (setup_nested_archive): Likewise. (get_archive_member_name): Likewise. (get_archive_member_name_at): Likewise. (make_qualified_name): Likewise.
2010-11-20binutils/testsuite/Richard Sandiford3-106/+161
* lib/binutils-common.exp (regexp_diff): New procedure. * lib/utils-lib.exp (regexp_diff): Delete. gas/testsuite/ * lib/gas-defs.exp (regexp_diff): Delete. (run_dump_test): Remove final "" argument in call to regexp_diff. (run_list_test): Likewise. (run_list_test_stdin): Likewise. * gas/all/gas.exp (test_cond): Likewise. * gas/elf/elf.exp (run_elf_list_test): Likewise. * gas/m68k/all.exp: Likewise. * gas/mep/complex-relocs.exp (regexp_test): Likewise. * gas/mt/relocs.exp (regexp_test): Likewise. * gas/symver/symver.exp (run_error_test): Likewise. ld/testsuite/ * lib/ld-lib.exp (regexp_diff, simple_diff): Delete.
2010-11-20binutils/testsuite/Richard Sandiford3-57/+164
* lib/binutils-common.exp: New file. * lib/utils-lib.exp (load_common_lib): New function. Load binutils-common.exp. (is_elf_format): Delete. gas/testsuite/ * lib/gas-defs.exp (load_common_lib): New function. Load binutils-common.exp. (is_elf_format, is_aout_format, is_pecoff_format): Delete. ld/testsuite/ * lib/ld-lib.exp (load_common_lib): New function. Load binutils-common.exp. (is_elf_format, is_elf64, is_aout_format, is_pecoff_format): Delete.
2010-11-18 PR binutils/11742Alan Modra2-13/+34
* readelf.c (get_archive_member_name): Formatting. Properly handle full size ar_name.
2010-11-17 * ar.c (print_contents): Don't internationalize strings without words.Alan Modra6-44/+54
* dwarf.c (process_extended_line_op): Likewise. (process_debug_info): Likwise. (display_debug_lines_raw): Likewise. (display_debug_lines_decoded): Likewise. (display_debug_abbrev): Likewise. * readelf.c (process_file_header): Likewise. (GET_OP): Likewise. (decode_arm_unwind): Likewise. (process_mips_specific): Likewise. * resrc.c (run_cmd): Likewise. (rcparse_warning): Likewise. * objdump.c (dump_headers): Don't print "Pg".