aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2010-11-05 * ChangeLog: Add missing 'PR' designator to previous entry.Dave Korn1-0/+1
2010-11-05 * config/obj-coff.c (weak_altname2name): Don't infer from the presenceDave Korn2-11/+8
of a period that the symbol has been already uniquify-d. (weak_uniquify): Don't worry that the symbol might have been already uniquify-d.
2010-11-04 * config/tc-ppc.c (nop_limit): New var.Alan Modra2-0/+52
(OPTION_NOPS): Define. (md_longopts): Add --nops. (md_parse_option): Handle it. (md_show_usage): Publish. (ppc_handle_align): Pad with a branch followed by nops if more than nop_limit nops.
2010-11-03Properly fold _GLOBAL_OFFSET_TABLE_ in Intel syntax.H.J. Lu5-1/+22
gas/ 2010-11-03 H.J. Lu <hongjiu.lu@intel.com> PR gas/12186 * config/tc-i386-intel.c (i386_intel_fold): Properly fold _GLOBAL_OFFSET_TABLE_. gas/testsuite/ 2010-11-03 H.J. Lu <hongjiu.lu@intel.com> PR gas/12186 * gas/i386/gotpc.s: Add more _GLOBAL_OFFSET_TABLE_ test. * gas/i386/gotpc.d: Updated.
2010-11-02bfd:Joseph Myers38-1/+363
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for Tag_ABI_compatibility, treat odd tags as strings and even ones as integers. (elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment, elf32_tic6x_array_alignment_to_tag): New. (elf32_tic6x_merge_attributes): Handle more attributes. Set type for merged attributes. (elf_backend_obj_attrs_order): Define. binutils: * readelf.c (display_tic6x_attribute): Handle more attributes. gas: * config/tc-tic6x.c (OPTION_MPID, OPTION_MPIC, OPTION_MNO_PIC): New enum values. (md_longopts): Add options mpid, mpic and mno-pic. (tic6x_pid_type, tic6x_pid, tic6x_pic, tic6x_pid_type_table, tic6x_pid_types, tic6x_use_pid): New. (md_parse_option): Handle new options. (md_show_usage): Output help text for new options. (tic6x_set_attributes): Set PID and PIC attributes. * doc/as.texinfo: Document -mpid=, -mpic and -mno-pic. * doc/c-tic6x.texi (TIC6X Options): Likewise. gas/testsuite: * gas/tic6x/attr-array-directive-1.d, gas/tic6x/attr-array-directive-1.s, gas/tic6x/attr-array-directive-2.d, gas/tic6x/attr-array-directive-2.s, gas/tic6x/attr-array-directive-3.d, gas/tic6x/attr-array-directive-3.s, gas/tic6x/attr-array-directive-4.d, gas/tic6x/attr-array-directive-4.s, gas/tic6x/attr-conformance-directive-1.d, gas/tic6x/attr-conformance-directive-1.s, gas/tic6x/attr-conformance-directive-2.d, gas/tic6x/attr-conformance-directive-2.s, gas/tic6x/attr-pic-directive-1.d, gas/tic6x/attr-pic-directive-1.s, gas/tic6x/attr-pic-directive-2.d, gas/tic6x/attr-pic-directive-2.s, gas/tic6x/attr-pic-opts-mno-pic.d, gas/tic6x/attr-pic-opts-mpic.d, gas/tic6x/attr-pid-directive-1.d, gas/tic6x/attr-pid-directive-1.s, gas/tic6x/attr-pid-directive-2.d, gas/tic6x/attr-pid-directive-2.s, gas/tic6x/attr-pid-opts-mpid-far.d, gas/tic6x/attr-pid-opts-mpid-near.d, gas/tic6x/attr-pid-opts-mpid-no.d, gas/tic6x/attr-stack-directive-1.d, gas/tic6x/attr-stack-directive-1.s, gas/tic6x/attr-stack-directive-2.d, gas/tic6x/attr-stack-directive-2.s, gas/tic6x/attr-wchar-directive-1.d, gas/tic6x/attr-wchar-directive-1.s, gas/tic6x/attr-wchar-directive-2.d, gas/tic6x/attr-wchar-directive-2.s: New tests. include/elf: * tic6x-attrs.h (Tag_ABI_wchar_t, Tag_ABI_stack_align_needed, Tag_ABI_stack_align_preserved, Tag_ABI_PID, Tag_ABI_PIC, Tag_ABI_array_object_alignment, Tag_ABI_array_object_align_expected, Tag_ABI_conformance): Define. ld/testsuite: * ld-tic6x/attr-array-16-16.d, ld-tic6x/attr-array-16-4.d, ld-tic6x/attr-array-16-416.d, ld-tic6x/attr-array-16-48.d, ld-tic6x/attr-array-16-8.d, ld-tic6x/attr-array-16-816.d, ld-tic6x/attr-array-16.s, ld-tic6x/attr-array-4-16.d, ld-tic6x/attr-array-4-4.d, ld-tic6x/attr-array-4-416.d, ld-tic6x/attr-array-4-48.d, ld-tic6x/attr-array-4-8.d, ld-tic6x/attr-array-4-816.d, ld-tic6x/attr-array-4.s, ld-tic6x/attr-array-416-16.d, ld-tic6x/attr-array-416-4.d, ld-tic6x/attr-array-416-416.d, ld-tic6x/attr-array-416-48.d, ld-tic6x/attr-array-416-8.d, ld-tic6x/attr-array-416-816.d, ld-tic6x/attr-array-416.s, ld-tic6x/attr-array-48-16.d, ld-tic6x/attr-array-48-4.d, ld-tic6x/attr-array-48-416.d, ld-tic6x/attr-array-48-48.d, ld-tic6x/attr-array-48-8.d, ld-tic6x/attr-array-48-816.d, ld-tic6x/attr-array-48.s, ld-tic6x/attr-array-8-16.d, ld-tic6x/attr-array-8-4.d, ld-tic6x/attr-array-8-416.d, ld-tic6x/attr-array-8-48.d, ld-tic6x/attr-array-8-8.d, ld-tic6x/attr-array-8-816.d, ld-tic6x/attr-array-8.s, ld-tic6x/attr-array-816-16.d, ld-tic6x/attr-array-816-4.d, ld-tic6x/attr-array-816-416.d, ld-tic6x/attr-array-816-48.d, ld-tic6x/attr-array-816-8.d, ld-tic6x/attr-array-816-816.d, ld-tic6x/attr-array-816.s, ld-tic6x/attr-conformance-10-10.d, ld-tic6x/attr-conformance-10-11.d, ld-tic6x/attr-conformance-10-none.d, ld-tic6x/attr-conformance-10.s, ld-tic6x/attr-conformance-11-10.d, ld-tic6x/attr-conformance-11-11.d, ld-tic6x/attr-conformance-11-none.d, ld-tic6x/attr-conformance-11.s, ld-tic6x/attr-conformance-none-10.d, ld-tic6x/attr-conformance-none-11.d, ld-tic6x/attr-conformance-none-none.d, ld-tic6x/attr-conformance-none.s, ld-tic6x/attr-pic-0.s, ld-tic6x/attr-pic-00.d, ld-tic6x/attr-pic-01.d, ld-tic6x/attr-pic-1.s, ld-tic6x/attr-pic-10.d, ld-tic6x/attr-pic-11.d, ld-tic6x/attr-pid-0.s, ld-tic6x/attr-pid-00.d, ld-tic6x/attr-pid-01.d, ld-tic6x/attr-pid-02.d, ld-tic6x/attr-pid-1.s, ld-tic6x/attr-pid-10.d, ld-tic6x/attr-pid-11.d, ld-tic6x/attr-pid-12.d, ld-tic6x/attr-pid-2.s, ld-tic6x/attr-pid-20.d, ld-tic6x/attr-pid-21.d, ld-tic6x/attr-pid-22.d, ld-tic6x/attr-stack-16-16.d, ld-tic6x/attr-stack-16-8.d, ld-tic6x/attr-stack-16-816.d, ld-tic6x/attr-stack-16.s, ld-tic6x/attr-stack-8-16.d, ld-tic6x/attr-stack-8-8.d, ld-tic6x/attr-stack-8-816.d, ld-tic6x/attr-stack-8.s, ld-tic6x/attr-stack-816-16.d, ld-tic6x/attr-stack-816-8.d, ld-tic6x/attr-stack-816-816.d, ld-tic6x/attr-stack-816.s, ld-tic6x/attr-wchar-0.s, ld-tic6x/attr-wchar-00.d, ld-tic6x/attr-wchar-01.d, ld-tic6x/attr-wchar-02.d, ld-tic6x/attr-wchar-1.s, ld-tic6x/attr-wchar-10.d, ld-tic6x/attr-wchar-11.d, ld-tic6x/attr-wchar-12.d, ld-tic6x/attr-wchar-2.s, ld-tic6x/attr-wchar-20.d, ld-tic6x/attr-wchar-21.d, ld-tic6x/attr-wchar-22.d: New tests.
2010-11-01 * config/tc-mips.c (macro)[M_LD_OB, M_SD_OB]: Use the offsetMaciej W. Rozycki2-2/+15
reloc supplied. (mips_ip)['o']: Initialise offset_reloc.
2010-10-29bfd:Joseph Myers7-1/+33
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check Tag_ABI_compatibility not Tag_compatibility. (elf32_tic6x_merge_attributes): Update compatibility attribute name in comment. Return FALSE if merging common attributes fails. binutils: * readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility not hardcoded 32. Display name of this attribute. gas: * doc/c-tic6x.texi (TIC6X Directives): Mention Tag_ABI_compatibility. gas/testsuite: * gas/tic6x/attr-compatibility-directive-1.d, gas/tic6x/attr-compatibility-directive-1.s, gas/tic6x/attr-compatibility-directive-2.d, gas/tic6x/attr-compatibility-directive-2.s: New tests. include/elf: * tic6x-attrs.h (Tag_ABI_compatibility): Define. ld/testsuite: * ld-tic6x/attr-compatibility-gnu-gnu.d, ld-tic6x/attr-compatibility-gnu-other.d, ld-tic6x/attr-compatibility-gnu.s, ld-tic6x/attr-compatibility-other-gnu.d, ld-tic6x/attr-compatibility-other-other.d, ld-tic6x/attr-compatibility-other.s: New tests.
2010-10-29Add compressed debug section support to binutils and ld.H.J. Lu8-162/+139
bfd/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> Cary Coutant <ccoutant@google.com> * archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS and BFD_DECOMPRESS. * bfd.c (BFD_COMPRESS): New. (BFD_DECOMPRESS): Likewise. (BFD_FLAGS_SAVED): Likewise. (bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED. * compress.c (bfd_uncompress_section_contents): Removed. (get_uncompressed_size): New. (decompress_contents): Likewise. (bfd_compress_section_contents): Likewise. (bfd_get_full_section_contents): Likewise. (bfd_is_section_compressed): Likewise. (bfd_init_section_decompress_status): Likewise. (bfd_init_section_compress_status): Likewise. * dwarf2.c (dwarf_debug_sections): New. (dwarf_debug_section_enum): Likewise. (read_section): Remove section_name and compressed_section_name. Add dwarf_debug_section_enum. Try compressed debug section. (read_indirect_string): Updated. (read_abbrevs): Likewise. (decode_line_info): Likewise. (read_debug_ranges): Likewise. (find_line): Updated. * ecoff.c (bfd_debug_section): Add compress_status and compressed_size. * elf.c (_bfd_elf_make_section_from_shdr): Call bfd_is_section_compressed to check if a DWARF debug section is compressed. Call bfd_init_section_compress_status or bfd_init_section_decompress_status if needed. * elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents with bfd_get_full_section_contents. * merge.c (_bfd_add_merge_section): Likewise. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise. * simple.c (bfd_simple_get_relocated_section_contents): Likewise. * elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and BFD_DECOMPRESS. (TARGET_LITTLE_SYM): Likewise. * libbfd-in.h (dwarf_debug_section): New. (dwarf_debug_sections): Likewise. * libbfd.c (_bfd_generic_get_section_contents): Issue an error when getting contents on compressed/decompressed section. * section.c (COMPRESS_SECTION_NONE): New. (COMPRESS_SECTION_DONE): Likewise. (DECOMPRESS_SECTION_SIZED): Likewise. (BFD_FAKE_SECTION): Add compress_status and compressed_size. (bfd_malloc_and_get_section): Replace bfd_get_section_contents with bfd_get_full_section_contents. * bfd-in2.h: Regenerated. * libbfd.h: Likewise. binutils/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> * addr2line.c (process_file): Set BFD_DECOMPRESS. * objcopy.c (do_debug_sections): New. (OPTION_COMPRESS_DEBUG_SECTIONS): New. (OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise. (copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and OPTION_DECOMPRESS_DEBUG_SECTIONS. (copy_usage): Add --compress-debug-sections and --decompress-debug-sections. (copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS. (copy_section): Replace bfd_get_section_contents with bfd_get_full_section_contents. (copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and OPTION_DECOMPRESS_DEBUG_SECTIONS. Check do_debug_sections to rename DWARF debug sections. * objdump.c (load_specific_debug_section): Replace bfd_get_section_contents with bfd_get_full_section_contents. Remove bfd_uncompress_section_contents. (dump_section): Replace bfd_get_section_contents with bfd_get_full_section_contents. (display_file): Set BFD_DECOMPRESS if needed. * readelf.c (uncompress_section_contents): Set buffer to NULL to indiate decompression failure. (load_specific_debug_section): Always call uncompress_section_contents. * doc/binutils.texi: Document --compress-debug-sections and --decompress-debug-sections. binutils/testsuite/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/compress.exp: New. * binutils-all/dw2-1.S: Likewise. * binutils-all/dw2-2.S: Likewise. * binutils-all/libdw2-compressed.out: Likewise. * binutils-all/libdw2.out: Likewise. gas/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> * write.c (compress_debug): Optimize section flags check. gas/testsuite/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> * elf/dwarf2-1.s: Replace .zdebug_abbrev section with .debug_abbrev section. * elf/dwarf2-2.3: Likewise. * elf/dwarf2-1.d: Pass --compress-debug-sections to assembler. Updated. * elf/dwarf2-2.d: Likewise. * gas/i386/i386.exp: Remove xfail on dw2-compress-2 and x86-64-dw2-compress-2. ld/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after bfd_openr returns. * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise. * scripttempl/elf.sc: Include compressed DWARF debug sections. ld/testsuite/ 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/compress.exp: New. * ld-elf/compress1.s: Likewise. * ld-elf/compress1a.d: Likewise. * ld-elf/compress1b.d: Likewise. * ld-elf/compress1c.d: Likewise.
2010-10-29bfd:Joseph Myers11-6/+106
2010-10-29 Bernd Schmidt <bernds@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch of DSBT attributes. binutils: 2010-10-29 Bernd Schmidt <bernds@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT. gas: 2010-10-29 Bernd Schmidt <bernds@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * config/tc-tic6x.c (OPTION_MDSBT, OPTION_MNO_DSBT): New enum values. (md_longopts): Add mdsbt and mno-dsbt. (tic6x_dsbt): New static variable. (md_parse_option): Handle OPTION_MDSBT and OPTION_MNO_DSBT. (md_show_usage): Output help text for -mdsbt and -mno-dsbt. (TAG): Add comma at the end. (tic6x_set_attributes): Set Tag_ABI_DSBT. * doc/as.texinfo: Document -mdsbt and -mno-dsbt. * doc/c-tic6x.texi (TIC6X Options): Likewise. (TIC6X Directives): Mention Tag_ABI_DSBT. gas/testsuite: 2010-10-29 Bernd Schmidt <bernds@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * gas/tic6x/attr-dsbt-directive-1.d, gas/tic6x/attr-dsbt-directive-1.s, gas/tic6x/attr-dsbt-directive-2.d, gas/tic6x/attr-dsbt-directive-2.s, gas/tic6x/attr-dsbt-opts-mdsbt.d, gas/tic6x/attr-dsbt-opts-mno-dsbt.d: New tests. include/elf: 2010-10-29 Bernd Schmidt <bernds@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * tic6x-attrs.h (Tag_ABI_DSBT): New. ld/testsuite: 2010-10-29 Bernd Schmidt <bernds@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d, ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s, ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests.
2010-10-28Add directory section for info document.Alan Modra2-6/+9
2010-10-28ld/testsuite/Thomas Schwinge4-3/+9
* ld-scripts/script.exp: Sort all filename globs. gas/testsuite/ * gas/iq2000/load-hazards.exp: Sort all filename globs. * gas/iq2000/yield.exp: Likewise. * gas/mt/errors.exp: Likewise.
2010-10-282010-10-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2-6/+16
* config/tc-s390.c (md_begin): Only add to hash table if cpu and mode mask fit. 2010-10-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * s390-opc.txt: cfxr, cfdr and cfer z900 -> g5.
2010-10-28 * gas/elf/elf.exp (groupautob): Don't run on xtensa.Alan Modra4-3/+14
* gas/elf/groupautoa.d: Change test name. * gas/elf/groupautob.d: Change test name.
2010-10-28 * config/tc-d30v.c (d30v_cons_align): Don't align .eh_frame.Alan Modra2-1/+6
2010-10-272010-10-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2-2/+6
* gas/all/gas.exp: Don't run byte test on s390.
2010-10-26 * gas/i386/x86-64-relax-1.s: Use .balign. not .align.Alan Modra3-5/+7
* gas/i386/x86-64-relax-1.d: Remove label match, match pe output.
2010-10-26 * gas/i386/relax-1.s: Use .p2align, not .align.Alan Modra5-5/+10
* gas/i386/relax-2.s: Likewise. * gas/i386/relax-1.d: Remove label match. * gas/i386/relax-2.d: Likewise. Correct test name.
2010-10-26 * i386/relax-1.d: Generalize regexes a bit.Dave Korn3-4/+9
* i386/relax-2.d: Likewise.
2010-10-26 * config/obj-coff.c (coff_format_ops): Fix typo.Alan Modra2-1/+5
2010-10-25gas/Richard Sandiford2-63/+4
* config/tc-mips.c (macro2): Delete.
2010-10-252010-10-25 Chao-ying Fu <fu@mips.com>Chao-ying Fu3-0/+17
* gas/mips/mips32-dsp.d, gas/mips/mips32-dsp.s: Add madd, maddu, msub, msubu, mult, multu.
2010-10-25 bfd/Nathan Sidwell2-0/+6
* elf32-tic6x.c: Add attribution. gas/ * config/tc-tic6x.c: Add attribution. opcodes/ * tic6x-dis.c: Add attribution.
2010-10-25 * obj.h (struct format_ops): Add adjust_symtab.Alan Modra7-8/+27
* config/obj-multi.h (obj_adjust_symtab): Define. * config/obj-aout.c (aout_format_ops): Init new field. * config/obj-coff.c (coff_format_ops): Likewise. * config/obj-ecoff.c (ecoff_format_ops): Likewise. * config/obj-elf.c (elf_format_ops): Likewise.
2010-10-25Add a new testcase for PR gas/12049.H.J. Lu4-2/+96
2010-10-25 H.J. Lu <hongjiu.lu@intel.com> PR gas/12049 * gas/i386/i386.exp: Run relax-1 and relax-2 for all 32bit targets. Run x86-64-relax-1. * gas/i386/x86-64-relax-1.d: New. * gas/i386/x86-64-relax-1.s: Likewise.
2010-10-25 PR gas/12049Alan Modra2-0/+13
* write.c (relax_frag): Don't allow forward branches to temporarily becomde backward branches.
2010-10-24 * gas/mips/mips.exp: Simplify enabling of MIPS16 testing.Maciej W. Rozycki2-4/+5
2010-10-24 * gas/mips/at-1.d: Handle ECOFF relocations.Maciej W. Rozycki6-144/+152
* gas/mips/eret-1.d: Handle ECOFF. * gas/mips/eret-2.d: Likewise. * gas/mips/eret-3.d: Likewise. * gas/mips/mips.exp: Only run "aent" for ELF.
2010-10-24 * gas/mips/ld.s: Adjust to let SD, L.D, S.D, LDC1 and SDC1Maciej W. Rozycki59-97/+8749
macros to be tested, according to the "tsd", "tl_d", "ts_d", "tldc1" and "tsdc1" symbols. * gas/mips/sd.d: New test. * gas/mips/ecoff@sd.d: Likewise, ECOFF version. * gas/mips/mips1@ecoff@sd.d: Likewise, MIPS I/ECOFF version. * gas/mips/r3000@ecoff@sd.d: Likewise, R3000/ECOFF version. * gas/mips/r3900@ecoff@sd.d: Likewise, R3900/ECOFF version. * gas/mips/mips2@ecoff@sd.d: Likewise, MIPS II/ECOFF version. * gas/mips/mips32@ecoff@sd.d: Likewise, MIPS32/ECOFF version. * gas/mips/mips32r2@ecoff@sd.d: Likewise, MIPS32r2/ECOFF version. * gas/mips/sd-forward.d: New test. * gas/mips/ecoff@sd-forward.d: Likewise, ECOFF version. * gas/mips/mips1@ecoff@sd-forward.d: Likewise, MIPS I/ECOFF version. * gas/mips/r3000@ecoff@sd-forward.d: Likewise, R3000/ECOFF version. * gas/mips/r3900@ecoff@sd-forward.d: Likewise, R3900/ECOFF version. * gas/mips/mips2@ecoff@sd-forward.d: Likewise, MIPS II/ECOFF version. * gas/mips/mips32@ecoff@sd-forward.d: Likewise, MIPS32/ECOFF version. * gas/mips/mips32r2@ecoff@sd-forward.d: Likewise, MIPS32r2/ECOFF version. * gas/mips/l_d.d: New test. * gas/mips/mips1@l_d.d: Likewise, MIPS I version. * gas/mips/r3000@l_d.d: Likewise, R3000 version. * gas/mips/r3900@l_d.d: Likewise, R3900 version. * gas/mips/l_d-forward.d: New test. * gas/mips/mips1@l_d-forward.d: Likewise, MIPS I version. * gas/mips/r3000@l_d-forward.d: Likewise, R3000 version. * gas/mips/r3900@l_d-forward.d: Likewise, R3900 version. * gas/mips/s_d.d: New test. * gas/mips/mips1@s_d.d: Likewise, MIPS I version. * gas/mips/r3000@s_d.d: Likewise, R3000 version. * gas/mips/r3900@s_d.d: Likewise, R3900 version. * gas/mips/s_d-forward.d: New test. * gas/mips/mips1@s_d-forward.d: Likewise, MIPS I version. * gas/mips/r3000@s_d-forward.d: Likewise, R3000 version. * gas/mips/r3900@s_d-forward.d: Likewise, R3900 version. * gas/mips/ldc1.d: New test. * gas/mips/ldc1-forward.d: Likewise. * gas/mips/sdc1.d: Likewise. * gas/mips/sdc1-forward.d: Likewise. * gas/mips/sd-n32.d: Likewise. * gas/mips/sd-n64.d: Likewise. * gas/mips/sd-f-n32.d: Likewise. * gas/mips/sd-f-n64.d: Likewise. * gas/mips/l_d-n32.d: Likewise. * gas/mips/l_d-n64.d: Likewise. * gas/mips/l_d-f-n32.d: Likewise. * gas/mips/l_d-f-n64.d: Likewise. * gas/mips/s_d-n32.d: Likewise. * gas/mips/s_d-n64.d: Likewise. * gas/mips/s_d-f-n32.d: Likewise. * gas/mips/s_d-f-n64.d: Likewise. * gas/mips/ldc1-n32.d: Likewise. * gas/mips/ldc1-n64.d: Likewise. * gas/mips/ldc1-f-n32.d: Likewise. * gas/mips/ldc1-f-n64.d: Likewise. * gas/mips/sdc1-n32.d: Likewise. * gas/mips/sdc1-n64.d: Likewise. * gas/mips/sdc1-f-n32.d: Likewise. * gas/mips/sdc1-f-n64.d: Likewise. * gas/mips/mips.exp: Run the new tests.
2010-10-24 * gas/mips/ld.s: Adjust to let data objects be onlyMaciej W. Rozycki13-0/+665
defined/declared (as appropriate) at the end of assembly, based on the presence or not of the "forward" symbol. * gas/mips/ld-forward.d: New test. * gas/mips/mips1@ld-forward.d: Likewise. MIPS I version. * gas/mips/r3000@ld-forward.d: Likewise, R3000 version. * gas/mips/ecoff@ld-forward.d: Likewise, ECOFF version. * gas/mips/r3900@ecoff@ld-forward.d: Likewise, R3900/ECOFF version. * gas/mips/mips2@ecoff@ld-forward.d: Likewise, MIPS II/ECOFF version. * gas/mips/mips32@ecoff@ld-forward.d: Likewise, MIPS32/ECOFF version. * gas/mips/mips32r2@ecoff@ld-forward.d: Likewise, MIPS32r2/ECOFF version. * gas/mips/ld-n32-forward.d: New test. * gas/mips/ld-n64-forward.d: Likewise. * gas/mips/mips.exp: Run the new tests.
2010-10-24 * gas/mips/ld-n32.d: New test.Maciej W. Rozycki4-0/+1816
* gas/mips/ld-n64.d: Likewise. * gas/mips/mips.exp: Run the new tests.
2010-10-24 * gas/mips/ld.d: Rename to...Maciej W. Rozycki10-15/+439
* gas/mips/mips1@ld.d: ... this. * gas/mips/ld-ilocks.d: Rename to... * gas/mips/ld.d: ... this. * gas/mips/r3000@ld.d: New test, R3000 version. * gas/mips/ecoff@ld.d: Likewise, ECOFF version. * gas/mips/r3900@ecoff@ld.d: Likewise, R3900/ECOFF version. * gas/mips/mips2@ecoff@ld.d: Likewise, MIPS II/ECOFF version. * gas/mips/mips32@ecoff@ld.d: Likewise, MIPS32/ECOFF version. * gas/mips/mips32r2@ecoff@ld.d: Likewise, MIPS32r2/ECOFF version. * gas/mips/mips.exp: Remove "ld-ilocks" and run "ld" over all architectures matching "mips1".
2010-10-24 * gas/mips/mips.exp (run_dump_test_arch): Check for the presenceMaciej W. Rozycki2-3/+29
of a file-format-specific test too. (run_dump_test_arches): Pull elf, ecoff and aout variables for use by the above.
2010-10-24 * gas/mips/ld.s: Remove "l.d", "s.d" and "sd" instructions.Maciej W. Rozycki4-136/+6
* gas/mips/ld.d: Adjust accordingly. * gas/mips/ld-ilocks.d: Likewise
2010-10-24 * gas/mips/ld.s: Remove ".set mips1".Maciej W. Rozycki5-11/+15
* gas/mips/ld.d: Remove "-march=r4000" and "-mmips:4000" from gas/objdump options. * gas/mips/ld-ilocks.d: Add "-32" to gas options. * gas/mips/mips.exp: Run the two cases with run_dump_test_arches.
2010-10-24 * gas/mips/ld.s: Remove MIPS III bits.Maciej W. Rozycki6-662/+9
* gas/mips/ld.d: Adjust accordingly. * gas/mips/ld-ilocks.d: Likewise. * gas/mips/ld-ilocks-addr32.d: Remove file. * gas/mips/mips.exp: Adjust accordingly.
2010-10-24 * gas/mips/ld.d: Spell out reloc names.Maciej W. Rozycki4-750/+756
* gas/mips/ld-ilocks.d: Likewise. * gas/mips/ld-ilocks-addr32.d: Likewise.
2010-10-232010-10-23 Mark Mitchell <mark@codesourcery.com>Mark Mitchell15-37/+82
* config/obj-elf.c (elf_adjust_symtab): New. Move group section processing here from elf_frob_file. Ensure that group signature symbols have the name of the group. (elf_frob_file): Move group section processing to elf_adjust_symtab. * config/obj-elf.h (elf_adjust_symtab): Declare. (obj_adjust_symtab): Define. * config/tc-arm.c (arm_adjust_symtab): Call elf_adjust_symtab. 2010-10-23 Mark Mitchell <mark@codesourcery.com> * gas/elf/elf.exp: Add group0c test. * gas/elf/group0c.d: New. * gas/elf/group0a.d: Expect ".group" for the name of group sections. * gas/elf/group0b.d: Likewise. * gas/elf/group1a.d: Likewise. * gas/elf/group1b.d: Likewise. * gas/elf/groupautoa.d: Likewise. * gas/elf/groupautob.d: Likewise. * gas/elf/section4.d: Likewise. * gas/ia64/group-1.d: Likewise. Adjust hard-coded constants. 2010-10-22 Mark Mitchell <mark@codesourcery.com> * binutils-all/group-5.d: Expect ".group" for the name of group sections. * binutils-all/strip-2.d: Likewise. 2010-10-23 Mark Mitchell <mark@codesourcery.com> * ld-elf/group10.d: Expect ".group" for the name of group sections. * ld-elf/group2.d: Likewise. * ld-elf/group7.d: Likewise.
2010-10-22 ld:Rainer Orth2-1/+12
* emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to elf32-sparc-sol2. * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to elf64-sparc-sol2. gas: * config/tc-sparc.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define as elf32-sparc-sol2. (ELF64_TARGET_FORMAT): Define as elf64-sparc-sol2. bfd: * elfxx-sparc.c (tpoff): Define bed, static_tls_size. Consider static_tls_alignment. * elf32-sparc.c (TARGET_BIG_SYM): Redefine to bfd_elf32_sparc_sol2_vec. (TARGET_BIG_NAME): Redefine to elf32-sparc-sol2. (elf32_bed): Redefine to elf32_sparc_sol2_bed. (elf_backend_static_tls_alignment): Redefine to 8. Include elf32-target.h. (elf_backend_static_tls_alignment): Undef again for VxWorks. * elf64-sparc.c (TARGET_BIG_SYM): Redefine to bfd_elf64_sparc_sol2_vec. (TARGET_BIG_NAME): Redefine to elf64-sparc-sol2. (ELF_OSABI): Undef. (elf64_bed): Redefine to elf64_sparc_sol2_bed. (elf_backend_static_tls_alignment): Redefine to 16. Include elf64-target.h. * config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*. Set targ_defvec to bfd_elf32_sparc_sol2_vec. [BFD64] (sparc-*-solaris2*): Set targ_defvec to bfd_elf32_sparc_sol2_vec. Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in targ_selvecs. * configure.in: Handle bfd_elf32_sparc_sol2_vec, bfd_elf64_sparc_sol2_vec. * configure: Regenerate. * targets.c (bfd_elf32_sparc_sol2_vec): Declare. (bfd_elf64_sparc_sol2_vec): Declare. (_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec, bfd_elf64_sparc_sol2_vec.
2010-10-22 * gas/all/fwdexp.d: Also look for f8ffffff.Nick Clifton6-1/+16
* gas/arm/msr-reg-thumb.d: Skip for non-ELF based targets. * gas/arm/vldr.d: Likewise. * gas/arm/thumb2_ldmstm.d: Allow for extra NOPs at the end of the disassembly. * gas/cfi/cfi.exp (cfi-arm-1): Only run for ELF based ARM targets.
2010-10-21bfd:Joseph Myers21-40/+64
* elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for attribute renaming. (elf_backend_obj_attrs_section): Change to ".c6xabi.attributes". binutils: * readelf.c (display_tic6x_attribute): Update for attribute renaming. gas: * config/tc-tic6x.c (tic6x_arch_attribute, tic6x_arches, md_assemble, tic6x_set_attributes): Update for attribute renaming. * doc/c-tic6x.texi: Update for attribute renaming. gas/testsuite: * gas/tic6x/attr-arch-directive-1.d, gas/tic6x/attr-arch-directive-2.d, gas/tic6x/attr-arch-directive-3.d, gas/tic6x/attr-arch-directive-4.d, gas/tic6x/attr-arch-directive-4.s, gas/tic6x/attr-arch-directive-5.d, gas/tic6x/attr-arch-directive-5.s, gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d, gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d, gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d, gas/tic6x/attr-arch-opts-none-1.d, gas/tic6x/attr-arch-opts-none-2.d, gas/tic6x/attr-arch-opts-override-1.d, gas/tic6x/attr-arch-opts-override-2.d: Update for attribute renaming and renumbering. include/elf: * tic6x-attrs.h (Tag_C6XABI_Tag_CPU_arch): Change to Tag_ISA, value 4. * tic6x.h (Values for Tag_C6XABI_Tag_CPU_arch): Rename for attribute renaming. ld: * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use .c6xabi.attributes, not __TI_build_attributes. ld/testsuite: * ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d, ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d, ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d, ld-tic6x/attr-arch-c64x+-c62x.d, ld-tic6x/attr-arch-c64x+-c64x+.d, ld-tic6x/attr-arch-c64x+-c64x.d, ld-tic6x/attr-arch-c64x+-c674x.d, ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d, ld-tic6x/attr-arch-c64x-c62x.d, ld-tic6x/attr-arch-c64x-c64x+.d, ld-tic6x/attr-arch-c64x-c64x.d, ld-tic6x/attr-arch-c64x-c674x.d, ld-tic6x/attr-arch-c64x-c67x+.d, ld-tic6x/attr-arch-c64x-c67x.d, ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d, ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d, ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d, ld-tic6x/attr-arch-c67x+-c62x.d, ld-tic6x/attr-arch-c67x+-c64x+.d, ld-tic6x/attr-arch-c67x+-c64x.d, ld-tic6x/attr-arch-c67x+-c674x.d, ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d, ld-tic6x/attr-arch-c67x-c62x.d, ld-tic6x/attr-arch-c67x-c64x+.d, ld-tic6x/attr-arch-c67x-c64x.d, ld-tic6x/attr-arch-c67x-c674x.d, ld-tic6x/attr-arch-c67x-c67x+.d, ld-tic6x/attr-arch-c67x-c67x.d: Update for attribute renaming.
2010-10-19Add testcase for PR gas/12049.H.J. Lu6-0/+64
2010-10-19 H.J. Lu <hongjiu.lu@intel.com> PR gas/12049 * gas/i386/i386.exp: Run relax-1 and relax-2. * gas/i386/relax-1.d: New. * gas/i386/relax-1.s: Likewise. * gas/i386/relax-2.d: Likewise. * gas/i386/relax-2.s: Likewise.
2010-10-19 * write.c (relax_segment): Correct address on frag added to stopAlan Modra2-6/+10
leb128/align frags bouncing.
2010-10-19 PR gas/12049Alan Modra3-9/+33
* frags.h (struct frag): Add "region" field. * write.c (relax_frag): Don't add "stretch" to forward reference target if there is an intervening org or align. (relax_segment): Set region.
2010-10-182010-10-18 Kai Tietz <kaI.tietz@onevision.com>Kai Tietz3-2/+7
* gas/i386/disp32.d: Adjust initial symbol check. * gas/i386/x86-64-disp32.d: Likewise.
2010-10-18 * gas/mips/ld.d: Spell out section offsets and addendsMaciej W. Rozycki5-785/+801
explicitly. Clean up some regexps. * gas/mips/ld-ilocks.d: Likewise. Add missing "$" prefixes to the names of FP registers. * gas/mips/ld-ilocks-addr32.d: Likewise. * gas/mips/ld.s: Align sections to 4k, adjust padding.
2010-10-18 * gas/mips/ld.d: Use wildcard address matching.Maciej W. Rozycki4-1872/+1878
* gas/mips/ld-ilocks.d: Likewise. * gas/mips/ld-ilocks-addr32.d: Likewise.
2010-10-18 * gas/mips/mips.exp (run_dump_test_arch): Get the name of theMaciej W. Rozycki2-4/+14
architecture to check against for an architecture-specific test from the properties instead of the name passed.
2010-10-18 * config/tc-mips.c (macro)[ldd_std]: Fix the relaxation variantMaciej W. Rozycki2-20/+6
for absolute addressing.
2010-10-18 opcodes/Maciej W. Rozycki5-25/+38
* mips-opc.c (mips_builtin_opcodes): Move M_LD_OB and M_SD_OB macros before their corresponding MIPS III hardware instructions. gas/ * config/tc-mips.c (macro)[M_LD_OB, M_SD_OB]: Handle 64-bit ABIs. gas/testsuite/ * gas/mips/lineno.s: Convert to o32. * gas/mips/lineno.d: Adjust patterns accordingly. Force the o32 ABI.
2010-10-18 * config/tc-mips.c (mips_pseudo_table): Add "sbss".Maciej W. Rozycki2-0/+19
(s_change_sec): Handle it.