aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
2010-10-11binutils/:Andreas Schwab3-1/+33
* binutils-all/m68k/objdump.exp: Add fnop test. * binutils-all/m68k/fnop.s: New file. opcodes/: * m68k-opc.c (m68k_opcodes): Move fnop before fbf.
2010-10-09Use BYTE_GET_SIGNED on r_addend.H.J. Lu4-7/+19
2010-10-08 H.J. Lu <hongjiu.lu@intel.com> * dwarf.c (byte_get_signed): Make it extern. * dwarf.h (byte_get_signed): New. * readelf.c (BYTE_GET_SIGNED): New. (slurp_rela_relocs): Use BYTE_GET_SIGNED on r_addend. (dump_relocations): Properly dump r_addend.
2010-10-08 * nm.c (value_format_64bit): Define appropriately for __MSVCRT__.Joseph Myers2-0/+14
(set_print_radix): Update for __MSVCRT__ definition of value_format_64bit.
2010-10-08Fix build with -DDEBUG=7Alan Modra2-5/+10
2010-10-05 * bucomm.c (bfd_nonfatal, bfd_nonfatal_message): Don't clobber errno.Alan Modra2-2/+6
2010-10-05 * bucomm.c (bfd_nonfatal): Flush stdout before output to stderr.Alan Modra3-15/+44
(bfd_nonfatal_message, report, list_matching_formats): Likewise. (list_supported_targets): Tidy. * objdump.c (free_only_list): Formatting. (slurp_dynamic_symtab): Non-zero exit status for "not a dynamic object". (update_source_path): Delete redundant check for NULL filename. (disassemble_bytes): Error if disassemble_fn returns a value that won't increment address. (disassemble_data): Don't capitalize error message. (read_section_stabs): Likewise. (main): Return non-zero exit status on bad options.
2010-10-03Set BFD target to "plugin" for "nm --plugin".H.J. Lu2-1/+11
2010-10-03 H.J. Lu <hongjiu.lu@intel.com> PR binutils/12088 * nm.c (plugin_target): New. (main): Set plugin_target to "plugin" for --plugin. (display_file): Pass plugin_target to bfd_openr if target isn't set.
2010-09-29 * lib/utils-lib.exp (is_elf_format): Merge with gas and ld versions.Alan Modra2-23/+45
2010-09-27Fix unportable shell quoting.Ralf Wildenhues2-1/+5
/: Sync from GCC: PR bootstrap/44621 * configure.ac: Fix unportable shell quoting. * configure: Regenerate. config/: * po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting. bfd/: * configure: Regenerate. gas/: * configure: Regenerate. gold/: * configure: Regenerate. intl/: * configure: Regenerate. ld/: * configure: Regenerate. opcodes/: * configure: Regenerate. binutils/: * configure: Regenerate. gprof/: * configure: Regenerate.
2010-09-23 * binutils-all/ar.exp: Don't run unique_symbol on msp or hpux.Alan Modra5-4/+18
* binutils-all/copy-2.d: Update not-target list. * binutils-all/note-1.d: Don't run on h8300. * binutils-all/objcopy.exp: Don't run strip-10 on msp or hpux. (objcopy_test): Remove h8300-rtems from xfails.
2010-09-22MAINTAINERS: add myself for Blackfin partsMike Frysinger2-0/+5
I know a thing or two about Blackfin parts, and if I can't find the answer, I can usually locate someone who does. Especially since Jie and Bernd no longer work for ADI :(. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-09-18Fix date.H.J. Lu1-1/+1
2010-09-18Add a target argument.H.J. Lu2-6/+24
2010-09-15 H.J. Lu <hongjiu.lu@intel.com> * emul_aix.c (ar_emul_aix_append): Add a target argument and ignore it if it is set. (ar_emul_aix5_append): Likewise. (ar_emul_aix_replace): Likewise. (ar_emul_aix5_replace): Likewise.
2010-09-16 * binutils-all/i386/i386.exp: Don't run on linuxaout.Alan Modra2-1/+5
2010-09-15Pass "plugin" as target for "ar --plugin" when opening a BFD file.H.J. Lu4-23/+55
2010-09-15 H.J. Lu <hongjiu.lu@intel.com> * ar.c (plugin_target): New. (main): Set plugin_target to "plugin" for --plugin. (open_inarch): Initialize target to plugin_target. (replace_members): Pass plugin_target to ar_emul_replace and ar_emul_append. * binemul.h (ar_emul_append): Add a target argument. (ar_emul_default_append): Likewise. (ar_emul_replace): Likewise. (ar_emul_default_replace): Likewise. (bin_emulation_xfer_struct): Add a target argument to ar_append and ar_replace. * binemul.c (ar_emul_append): Updated. Pass target to bfd_openr. (do_ar_emul_default_append): Likewise. (ar_emul_default_append): Likewise. (ar_emul_replace): Likewise. (ar_emul_default_replace): Likewise.
2010-09-10 * objcopy.c: Add --interleave-width option to allow interleavingNick Clifton6-25/+129
of more than one byte at a time. (copy_width): New variable. (copy_options): Add --interleave-width. (copy_section): When interleaving copy in units of copy_width bytes. (copy_main): Parse the new option. * doc/binutils: Document the new option. * NEWS: Mention the new feature. * binutils-all/objcopy.exp: Add test of new --interleave-width option.
2010-09-09 * dwarf.c (decode_location_expression): Fix data adjustmentJakub Jelinek2-1/+6
for DW_OP_GNU_implicit_pointer in v3+.
2010-09-09binutils/Tristan Gingold2-0/+6
2010-09-09 Tristan Gingold <gingold@adacore.com> * NEWS: Add entry to NEWS for hppa/som. ld/ 2010-09-09 Tristan Gingold <gingold@adacore.com> * NEWS: Add a entry for alpha-vms.
2010-09-09 * dwarf.h (debug_info): Add offset_info and dwarf_version fields.Jakub Jelinek3-10/+77
* dwarf.c (decode_location_expression): Add offset_size and dwarf_version arguments. Prefix DIE offset with 0x for DW_OP_call{2,4,_ref}. Fix up DW_OP_call_ref operand size, complain if in frame info section. Handle DW_OP_GNU_implicit_pointer. (read_and_display_attr_value, display_debug_loc, display_debug_frames): Adjust decode_location_expression callers. (process_debug_info): Save offset_size and dwarf_version values into debug_information array. * dwarf2.h (DW_OP_GNU_implicit_pointer): New.
2010-09-07 * ldwrite.c (clone_section): Call bfd_copy_private_section_data onNick Clifton2-1/+15
newly cloned section. * ld-x86-64/split-by-file.rd: New test. * ld-x86-64/split-by-file1.s: New test source code. * ld-x86-64/split-by-file2.s: New test source code. * ld-x86-64/x86-64.exp: Run the new test. * readelf.c (process_section_headers): Mention meaning of 'l' section flag for x86-64 targets.
2010-09-03binutils/Jan Kratochvil4-5/+20
* dwarf.c (regname): New declaration. (decode_location_expression): Print for registers also regname output. binutils/testsuite/ * binutils-all/objdump.W: Update DW_OP_reg5 expected output. gas/testsuite/ * gas/elf/dwarf2-1.d: Update DW_OP_reg5 expected output. * gas/elf/dwarf2-2.d: Likewise. * gas/i386/dw2-compress-1.d: Likewise.
2010-09-02 * dwarf.c (init_dwarf_regnames_i386, init_dwarf_regnames_x86_64): New.Richard Henderson4-8/+44
(init_dwarf_regnames): Use them. * dwarf.h: Declare them. * objdump.c (dump_dwarf): Use bfd_get_arch + bfd_get_mach to set up the regnames, rather than using elf_machine_code.
2010-09-02 * objdump.c (dump_dwarf): Use bfd_arch_bits_per_address.Richard Henderson2-3/+5
2010-08-30remove file committed by mistakeNathan Froyd1-7/+0
2010-08-27opcodes/Nathan Froyd1-0/+7
* ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate on E500 and E500MC.
2010-08-25Move gas/ld NEWS from binutils to gas/ld.H.J. Lu2-13/+0
2010-08-25 * NEWS: Mention ampersand in macro change.Alan Modra2-0/+6
2010-08-23Add --input-osabi and --output-osabi to elfedit.H.J. Lu6-8/+140
binutils/ 2010-08-23 H.J. Lu <hongjiu.lu@intel.com> * elfedit.c (input_elf_osabi): New. (output_elf_osbi): Likewise. (osabis): Likewise. (elf_osabi): Likewise. (update_elf_header): Support updating ELF OSABI. (make_qualified_name): Break long line. (command_line_switch): Add OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI. (options): Likewise. (usage): Add --input-osabi and --output-osabi. (main): Handle OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI. * doc/binutils.texi: Document --input-osabi and --output-osabi for elfedit. binutils/testsuite/ 2010-08-23 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit-3.d: New. * binutils-all/elfedit.exp: Run elfedit-3.
2010-08-23 binutils/Maciej W. Rozycki2-1/+6
* readelf.c (display_mips_gnu_attribute): Replace GCC options with a textual description of a MIPS32r2 64-bit FPU. ld/testsuite/ * ld-mips-elf/attr-gnu-4-04.d: Adjust Tag_GNU_MIPS_ABI_FP for the new MIPS32r2 64-bit FPU description. * ld-mips-elf/attr-gnu-4-40.d: Likewise. * ld-mips-elf/attr-gnu-4-44.d: Likewise.
2010-08-20 binutils/Maciej W. Rozycki1-0/+3
* ChangeLog: Add a missing entry for 2010-04-20's commit. ld/testsuite/ * ld-mips-elf/attr-gnu-4-01.d: Correct Tag_GNU_MIPS_ABI_FP. * ld-mips-elf/attr-gnu-4-02.d: Likewise. * ld-mips-elf/attr-gnu-4-10.d: Likewise. * ld-mips-elf/attr-gnu-4-11.d: Likewise. * ld-mips-elf/attr-gnu-4-15.d: Likewise. * ld-mips-elf/attr-gnu-4-20.d: Likewise. * ld-mips-elf/attr-gnu-4-22.d: Likewise. * ld-mips-elf/attr-gnu-4-25.d: Likewise.
2010-08-19binutils/Alan Modra2-0/+7
* NEWS: Mention change in linker script expression evaluation. ld/ * ld.texinfo (Expression Section): Detail expression evaluation. (Builtin Functions <ADDR>): Correct. (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally the same as ADDR. (Builtin Functions <SEGMENT_START>): Typo fix. * ldexp.c (new_number): New function. (make_abs, exp_get_abs_int): Cope with NULL expld.result.section. (fold_unary <'~', '!', '-'>): Don't make_abs. (fold_binary): Simplify result section logic. Return NULL section for logical ops. (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to a consistent result. (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs. (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise. (fold_name <NAME>): No need to handle absolute symbols differently from relative ones. (fold_name <ORIGIN>): Don't return valid result when lang_first_phase_enum. Return new_rel_from_abs, not new_abs. (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel. (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning a plain number to dot, assume the value is relative to expld.section. Make terms not in an output section, absolute. * ldlang.c (print_assignment): Fix style nit. (lang_size_sections_1): Cope with NULL expld.result.section. (lang_do_assignments_1): Likewise. ld/testsuite/ * ld-scripts/memory.t: Remove ORIGIN fudge.
2010-08-13 PR binutils/11889Nick Clifton2-31/+130
* readelf.c (get_32bit_elf_symbols): Check for a corrupt sh_entsize. (get_64bit_elf_symbols): Likewise. (process_symbol_table): Likewise. (process_section_groups): Check for corrupt headers. (process_version_sections): Check for corrupt indicies. (process_corefile_note_segment): Likewise.
2010-08-13 bfd/Nathan Sidwell2-0/+15
* elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B variant. binutils/ * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B variants.
2010-08-13 * dwarf.c (process_debug_info): Don't subtract section addressAlan Modra2-4/+8
when calculating location of cu abbrev within section.
2010-08-12 PR binutils/11742Nick Clifton2-1/+8
* readelf.c (get_archive_member_name): Do not read beyond the end of the ar_name field.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-8/+6
* dwarf.c (display_debug_lines): Mark file argument unused. Do not try to load .debug_info section.
2010-08-02 * readelf.c (apply_relocations): D30V is really REL.Alan Modra2-2/+10
2010-07-23Add support for v850E2 and v850E2V3Nick Clifton2-2/+13
2010-07-22 * readelf.c: Add Moxie support.Alan Modra2-0/+14
2010-07-20include/elf/Alan Modra2-2/+7
* internal.h (ELF_TBSS_SPECIAL): New macro, extracted from.. (ELF_SECTION_SIZE): ..here. (ELF_SECTION_IN_SEGMENT_1): Add "strict" arg. (ELF_SECTION_IN_SEGMENT_STRICT): New macro. bfd/ * elf.c (assign_file_positions_for_load_sections): Check that zero size sections are allocated in segments too. (assign_file_positions_for_non_load_sections): Warn if zero size alloc sections are found here. (copy_elf_program_header): Don't drop zero size sections from segment map. (copy_private_bfd_data): Check for changes in zero size sections. binutils/ * readelf.c (process_program_headers): Don't ignore all zero size sections. ld/testsuite/ * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.r: Update.
2010-07-19binutils/testsuite/:Andreas Schwab7-19/+15
* binutils-all/readelf.s: Ignore "Key to Flags" contents. * binutils-all/readelf.s-64: Likewise. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. gas/testsuite/: * gas/i386/x86-64-unwind.d: Ignore "Key to Flags" contents. * gas/ia64/alias-ilp32.d: Likewise. * gas/ia64/alias.d: Likewise. * gas/ia64/group-1.d: Likewise. * gas/ia64/group-2.d: Likewise. * gas/ia64/secname-ilp32.d: Likewise. * gas/ia64/secname.d: Likewise. * gas/ia64/unwind-ilp32.d: Likewise. * gas/ia64/unwind.d: Likewise. * gas/mmix/byte-1.d: Likewise. * gas/mmix/loc-1.d: Likewise. * gas/mmix/loc-2.d: Likewise. * gas/mmix/loc-3.d: Likewise. * gas/mmix/loc-4.d: Likewise. * gas/mmix/loc-5.d: Likewise. ld/testsuite/: * ld-mmix/bspec1.d: Ignore "Key to Flags" contents. * ld-mmix/bspec2.d: Likewise. * ld-mmix/local1.d: Likewise. * ld-mmix/local3.d: Likewise. * ld-mmix/local5.d: Likewise. * ld-mmix/local7.d: Likewise. * ld-mmix/undef-3.d: Likewise. * ld-sh/sh64/crange1.rd: Likewise. * ld-sh/sh64/crange2.rd: Likewise. * ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise.
2010-07-19* readelf.c (process_section_headers): Update key to flags.Andreas Schwab2-1/+5
2010-07-17 * objcopy.c (copy_usage): Tweak previous typofix.Dave Korn2-1/+5
2010-07-17Fix a typo in "objcopy --help".H.J. Lu2-1/+5
2010-07-17 H.J. Lu <hongjiu.lu@intel.com> * objcopy.c (copy_usage): Fix a typo.
2010-07-152010-07-15 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+8
* dllwrap.c (main): Make sure is_leading_underscore gets initialized with correct default.
2010-07-15Fix a typo.H.J. Lu7-6/+15
2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/i386/compressed-1a.d: Fix a typo. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/x86-64/compressed-1a.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise.
2010-07-14Add addr2line, objcopy and strip tests for compressed debug sections.H.J. Lu13-5/+784
binutils/testsuite/ 2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp (binutils_assemble): Use default_binutils_assemble_flags. (binutils_assemble_flags): New. * lib/utils-lib.exp (default_binutils_assemble): Renamed to ... (default_binutils_assemble_flags): This. Add asflags and pass it to target_assemble. (run_dump_test): Support assembler flags. * binutils-all/i386/compressed-1.s: New. * binutils-all/i386/compressed-1a.d: Likewise. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/i386/i386.exp: Likewise. * binutils-all/x86-64/compressed-1.s: Likewise. * binutils-all/x86-64/compressed-1a.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. * binutils-all/x86-64/x86-64.exp: Likewise. gas/testsuite/ 2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp (ADDR2LINE): New. (ADDR2LINEFLAGS): Likewise. * gas/i386/i386.exp: Run dw2-compress-2 and x86-64-dw2-compress-2. * gas/i386/dw2-compress-2.d: New. * gas/i386/dw2-compress-2.s: Likewise. * gas/i386/x86-64-dw2-compress-2.d: Likewise. * gas/i386/x86-64-dw2-compress-2.s: Likewise. * lib/gas-defs.exp (run_dump_test): Support addr2line as dump program. (slurp_options): Allow numbers in options.
2010-07-06 * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.Alan Modra2-4/+6
2010-07-05Don't generate .debug_line section if it isn't empty.H.J. Lu2-30/+6
binutils/testsuite/ 2010-07-05 H.J. Lu <hongjiu.lu@intel.com> PR gas/10531 PR gas/11789 * binutils-all/objdump.W: Remove bogus line debug info. gas/ 2010-07-05 Jim Wilson <wilson@codesourcery.com> PR gas/10531 PR gas/11789 * dwarf2dbg.c (dwarf2_finish): Don't generate .debug_line section if it isn't empty. gas/testsuite/ 2010-07-05 H.J. Lu <hongjiu.lu@intel.com> PR gas/10531 PR gas/11789 * gas/i386/dw2-compress-1.d: Remove bogus line debug info. * gas/elf/dwarf2-1.d: New. * gas/elf/dwarf2-1.s: Likewise. * gas/elf/dwarf2-2.d: Likewise. * gas/elf/dwarf2-2.s: Likewise. * gas/elf/dwarf2-3.d: Likewise. * gas/elf/dwarf2-3.s: Likewise. * gas/i386/debug1.d: Likewise. * gas/i386/debug1.s: Likewise. * gas/elf/elf.exp: Run dwarf2-1, dwarf2-2 and dwarf2-3. * gas/i386/i386.exp: Run debug1 for both 32bit and 64bit.
2010-07-03bfd/ChangeLog:Cary Coutant3-10/+38
* compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED. * dwarf2.c (read_and_uncompress_section): New function. (read_section): Call it. (find_line): Likewise. binutils/ChangeLog: * objdump.c (load_specific_debug_section): Decompress section contents before applying relocations. * readelf.c (load_specific_debug_section): Update section size after decompression. gas/ChangeLog: * Makefile.am: Add compress-debug.c and compress-debug.h. * Makefile.in: Regenerate. * config.in: Add HAVE_ZLIB_H. * configure.in: Check for zlib.h. * configure: Regenerate. * as.c (parse_args): Add --compress-debug-sections and --nocompress-debug-sections. * as.h (flag_compress_debug): New variable. * compress-debug.c: New file. * compress-debug.h: New file. * write.c: Include compress-debug.h. (compress_frag): New function. (compress_debug): New function. (write_object_file): Compress debug sections if requested.