aboutsummaryrefslogtreecommitdiff
path: root/gas/config
AgeCommit message (Collapse)AuthorFilesLines
2005-05-17* config/tc-v850,h (TC_FIX_TYPE): Define. (TC_INIT_FIX_TYPE): Define.Nick Clifton2-10/+43
* config/tc-v850.c (md_assemble): When creating a fix record the operand in the tc_fix_data field. (md_apply_fix3): When applying a resolved fix use the operand's insertion procedure to store the value, if the operand has been recorded. * gas/v850/split-lo16.s: Add test for a lo() pseudo reloc corrupting an ld.w instruction. * gas/v850/split-lo16.d: Add expected, correct (ie not corrupt) output.
2005-05-13 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify errorBob Wilson1-9/+11
message. (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
2005-05-11 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,Alan Modra1-4/+28
BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
2005-05-10gas/Michael Matz1-0/+6
* frags.c (frag_grow): Don't be too greedy in allocating memory. * config/tc-hppa.c (pa_block): Check arguments to .block[z]. gas/testsuite/ * gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for .block.
2005-05-10 PR binutils/886Hans-Peter Nilsson1-58/+58
* config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly. Handle label-without-colon before ordinary dot-pseudo as an ordinary label. Don't leak memory for label-without-colon alone on a line. Don't mmixal-munge operands for dot-pseudos.
2005-05-09gas/Jan Beulich1-1/+7
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (optimize_disp): Discard displacement entirely when zero and not required by encoding constraints. gas/testsuite/ 2005-05-09 Jan Beulich <jbeulich@novell.com> * gas/i386/tlsd.[sd]: Adjust to not assume zero displacement will actually be present in memory addressing. * gas/i386/tlspic.[sd]: Likewise.
2005-05-092005-05-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+18
PR 936 * config/tc-sh64.c (sh64_fake_label): New. * config/tc-sh64.h (TC_FAKE_LABEL): New. * doc/internals.texi (TC_FAKE_LABEL): Document. * write.c (TC_FAKE_LABEL): New. (adjust_reloc_syms): Use it. (write_object_file): Likewise.
2005-05-09gas/Jan Beulich1-3/+4
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (parse_insn): Disallow use of prefix separator and comma in Intel mode. include/opcode/ 2005-05-09 Jan Beulich <jbeulich@novell.com> * i386.h (i386_optab): Add ht and hnt.
2005-05-09gas/Jan Beulich1-9/+25
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode names to match ABI. Add more registers for 32-bit and 64-bit modes. Make name array static and const. Adjust lookup to account for NULL entries (standing for unused register numbers).
2005-05-09gas/Jan Beulich1-5/+17
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (parse_insn): Consider all matching instructions when checking for string instruction after string-only prefix.
2005-05-07gas/H.J. Lu1-1/+2
2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 940 * config/tc-ia64.c (start_unwind_section): Properly check comdat group with SHF_GROUP. gas/testsuite/ 2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 940 * gas/ia64/group-2.d: New. * gas/ia64/group-2.s: New. * gas/ia64/ia64.exp: Add "group-2".
2005-05-06 * config/tc-xtensa.c: Remove excess whitespace.Bob Wilson5-144/+144
* config/tc-xtensa.h: Likewise. * config/xtensa-istack.h: Likewise. * config/xtensa-relax.c: Likewise. * config/xtensa-relax.h: Likewise.
2005-05-05Fix ia64-hpux build failure, patch from Steve Ellcey.Jim Wilson1-0/+3
* config/tc-ia64.c (MIN): Undef.
2005-05-052005-05-05 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+3
bfd/ * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks. * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need elf-vxworks.lo. * configure: Regenerate. * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo. (BFD32_BACKENDS_CFILES): Add elf-vxworks.c. (elf32-i386.lo): Depend on elf-vxworks.h. (elf-vxworks.lo): New rule. * Makefile.in: Regenerate. * elf-bfd.h (elf_backend_data): Update type of elf_backend_emit_relocs. (_bfd_elf_link_output_relocs): Update prototype. * elflink.c (_bfd_elf_link_output_relocs): Always use bed->elf_backend_emit_relocs when outputting relocations. * elfxx-target.h (elf_backend_emit_relocs): Default to _bfd_elf_link_output_relocs. * targets.c (bfd_elf32_i386_vxworks_vec): Declare. (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec. * elf32-i386.c: Add elf32-i386-vxworks target BFD. (elf_i386_plt0_entry): Remove padding. (elf_i386_pic_plt0_entry): Ditto. (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define. (PLT_NON_JUMP_SLOT_RELOCS): Define. (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and plt0_pad_byte fields. (elf_i386_link_hash_table_create): Zero them. (elf_i386_create_dynamic_sections): Create static relocation section. (allocate_dynrelocs): Allocate space for static PLT relocations. (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT symbols. Give PLT symbols function type. Don't strip PLT sections if we have exported symbols from them. (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on VxWorks. (elf_i386_finish_dynamic_sections): Allow different pad bytes. Add relocation for GOT location. Fill in PLT static relocations. (elf_i386_vxworks_link_hash_table_create): New function. (elf_i386_vxworks_link_output_symbol_hook): New function. * elf-vxworks.h: New file. gas/ * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS. gas/testsuite/ * gas/i386/i386.exp: Don't run divide test on vxworks. ld/ * Makefile.am: Add eelf_i386_vxworks. * Makefile.in: Regenerate. * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks. * emulparams/elf_i386_vxworks.sh: New file. * emulparams/vxworks.sh: New file. * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
2005-05-05Don't assume a valueT is 4 bytes.Nick Clifton1-12/+11
2005-05-05Update the address and phone number of the FSFNick Clifton152-292/+292
2005-05-05Make -mlittle-endian switch set the target_big_endian variable to false.Nick Clifton1-3/+3
2005-05-03 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct sectionAlan Modra3-55/+16
list traversal. Use bfd_section_list_prepend. * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate over the section list. * config/tc-xtensa.c (xtensa_remove_section): Delete. (xtensa_insert_section): Delete. (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove and bfd_section_list_prepend. (xtensa_reorder_seg_list): Use bfd_section_list_remove and bfd_section_list_insert_after.
2005-05-03* config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations of ↵Nick Clifton3-16/+17
bfd_section_list... macros. * config/tc-mmix.c (mmix_frob_file): Likewise. * config/tc-xtensa.c (xtensa_remove_section): Likewise. (xtensa_insert_section): Likewise. * macro.c (macro_hash): Remove static. * macro.h (macro_hash): Provide an external declaration.
2005-04-29 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.Ben Elliston3-3/+57
(GENERIC_OBJS): Likewise, remove bignum-copy.o. (bignum-copy.o): Remove. * Makefile.in: Regenerate. * makefile.vms (OBJS): Remove bignum-copy.obj. * symbols.h (local_symbol_make): Remove declaration. (verify_symbol_chain_2): Likewise. * symbols.c (local_symbol_make): Make static. (max_indent_level): Likewise. (verify_symbol_chain_2): Remove. * macro.c (macro_hash): Make static. * messages.c (fprint_value): Remove. * read.h (get_absolute_expr): Remove. (emit_leb128_expr): Likewise. (do_s_func): Likewise. * read.c (do_s_func): Make static. (emit_leb128_expr): Likewise. (get_absolute_expr): Likewise. * as.h (as_howmuch): Remove declaration. (fprint_value): Likewise. * as.c (myname): Make static. * input-scrub.c (as_howmuch): Remove. (as_1_char): Likewise. * input-file.h (input_file_is_open): Remove. * input-file.c (input_file_is_open): Likewise. * expr.h (expr_build_unary): Remove declaration. (expr_build_binary): Likewise. * expr.c (expr_build_unary): Remove. (expr_build_binary): Likewise. * hash.h (hash_replace): Remove declaration. (hash_delete): Likewise. * hash.c (hash_replace): Remove. (hash_delete): Likewise. * bignum-copy.c (bignum_copy): Move from here .. * config/tc-vax.c (bignum_copy): .. to here. * bignum.h (LOG_TO_BASE_2_OF_10): Remove. (bignum_copy): Remove extern declaration. * sb.h (string_count): Remove extern declaration. (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise. (sb_name): Likewise. * sb.c (dsize): Replace preprocessor macro with static int. (string_count): Make static. (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise. (sb_name): Likewise. * config/obj-coff.c (dim_index): Make static. * config/tc-i386.c (GOT_symbol): Likewise. (output_invalid_buf): Likewise. * doc/internals.texi (Warning and error messages): Remove the prototype for fprint_value.
2005-04-26gas/H.J. Lu1-0/+2
2005-04-26 H.J. Lu <hongjiu.lu@intel.com> * config/obj-multi.h (FAKE_LABEL_NAME): Defined. * read.c (pseudo_set): Disallow symbol set to common symbol. PR 857 * write.c (write_object_file): Report common symbol name when disallowing local symbol set to common symbol. (adjust_reloc_syms): Disallow local symbol set to undefined symbol. gas/testsuite/ 2005-04-26 H.J. Lu <hongjiu.lu@intel.com> * gas/all/assign.s: Make `x' and `y' global.
2005-04-22 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.Bob Wilson1-11/+3
(future_alignment_required): Remove ifdefs that use it.
2005-04-22 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.Bob Wilson1-103/+32
(xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into... (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only" parameters. (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements, convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
2005-04-21 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]Christian Groessler1-1/+1
array.
2005-04-202005-04-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu10-16/+8
* config/obj-aout.h (S_IS_EXTERN): Removed. * config/obj-bout.h (S_IS_EXTERN): Likewise. * config/obj-coff.h (S_IS_EXTERN): Likewise. * symbols.c (S_IS_EXTERN): Likewise. * symbols.h (S_IS_EXTERN): Likewise. * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with S_IS_EXTERNAL. * config/tc-d10v.c (md_apply_fix3): Likewise. * config/tc-ia64.c (ia64_fix_adjustable): Likewise. * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise. * config/tc-m32r.c (m32r_fix_adjustable): Likewise. * config/tc-mmix.c (mmix_adjust_symtab): Likewise. * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise. (shmedia_md_convert_frag): Likewise. * symbols.c (print_symbol_value_1): Likewise. * write.c (write_object_file): Likewise.
2005-04-20(get_aligned_diff): Change type of branch_align to offsetT so that itsNick Clifton1-1/+1
signedness matches that of target_size.
2005-04-20(macro): Use sprintf_vma to convert a > 32 bit number into a readable string.Nick Clifton1-9/+16
(load_register): Likewise.
2005-04-20 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.Andreas Schwab1-0/+6
2005-04-19 * config/tc-sparc.c (md_assemble): If sparc_ip gives us aDavid S. Miller1-4/+6
NULL insn, exit early. Remove now spurious NULL checks. (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn to NULL and exit.
2005-04-19gas/Jan Beulich8-40/+7
2005-04-19 Jan Beulich <jbeulich@novell.com> * symbols.h (symbol_find_base): Remove prototype. * symbols.c (save_symbol_name): Remove code section conditional upon STRIP_UNDERSCORE. (symbol_find): Remove. (symbol_find_base): Rename to symbol_find. * subsegs.c (section_symbol): Replace use of symbol_find_base with symbol_find. * config/obj-coff.c (tag_insert): Remove code section conditional upon STRIP_UNDERSCORE. (obj_coff_def): Likewise. (obj_coff_endef): Replace use of symbol_find_base with symbol_find. (coff_frob_symbol): Likewise. (yank_symbols): Likewise. (c_section_symbol): Likewise. * config/obj-coff.h (DO_NOT_STRIP): Remove. * config/tc-arm.c (symbol_locate): Remove code section conditional upon STRIP_UNDERSCORE. * config/tc-h8300.h (DO_NOT_STRIP): Remove. * config/tc-h8500.h (DO_NOT_STRIP): Remove. * config/tc-sh.h (DO_NOT_STRIP): Remove. * config/tc-w65.h (DO_NOT_STRIP): Remove. * config/tc-z8k.h (DO_NOT_STRIP): Remove.
2005-04-19 * config/tc-ia64.c (md_assemble): Fix error message for wrongAndreas Schwab1-1/+1
access to application registers. testsuite/: * gas/ia64/invalid-ar.l: Adapt to changed error message.
2005-04-19gas/Jan Beulich1-6/+0
2005-04-19 Jan Beulich <jbeulich@novell.com> * config/te-sysv32.h: Remove. * Makefile.am (TARG_ENV_HFILES): Remove reference to config/te-sysv32.h. * Makefile.in (TARG_ENV_HFILES): Likewise.
2005-04-19gas/Jan Beulich1-2/+0
2005-04-19 Jan Beulich <jbeulich@novell.com> PR/847 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero- length symbols.
2005-04-18gas/ChangeLog:Mark Kettenis1-0/+1
* config/tc-i386.c (md_begin): Allow hyphens in mnemonics. include/opcode/ChangeLog: * i386.h: Insert hyphens into selected VIA PadLock extensions. Add xcrypt-ctr. Provide aliases without hyphens. opcodes/ChangeLog: * i386-dis.c: Insert hyphens into selected VIA PadLock extensions. Add xcrypt-ctr.
2005-04-18* config/tc-mips.c (normalize_constant_expr): Don't check forMaciej W. Rozycki1-5/+9
HAVE_32BIT_GPRS. (check_absolute_expr): Only call normalize_constant_expr() if HAVE_32BIT_GPRS. (mips_ip): Likewise. * config/tc-mips.c (check_absolute_expr): Fix formatting.
2005-04-15* config/tc-mips.c (normalize_constant_expr): Fix formatting.Maciej W. Rozycki1-1/+1
2005-04-15gas/Jan Beulich1-0/+21
2005-04-15 Jan Beulich <jbeulich@novell.com> * config/obj-elf.c (obj_elf_struct): New. (elf_pseudo_table). Use it for .offset and .struct. gas/testsuite/ 2005-04-15 Jan Beulich <jbeulich@novell.com> * gas/elf/struct.[sd]: New. * gas/elf/elf.exp: Run new test.
2005-04-15 * config/tc-xtensa.c (get_aligned_diff): Handle target_size largerBob Wilson1-0/+3
than the section alignment.
2005-04-14 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.Bob Wilson2-18/+20
* config/tc-xtensa.c (xg_translate_sysreg_op, xtensa_translate_old_userregs_ops, xtensa_find_unaligned_branch_targets, xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags, relax_frag_add_nop): Support 64-bit host. (xtensa_mark_literal_pool_location, xtensa_move_literals): Use tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
2005-04-14* config/tc-mips.c (macro) [ldd_std]: Don't attempt the GPMaciej W. Rozycki1-1/+2
optimization for constant addresses.
2005-04-13gas/:Maciej W. Rozycki1-33/+54
* config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro. (normalize_address_expr): New function to sign-extend address offsets that fit into 32 bits in 32-bit mode. (macro_build_ldst_constoffset): Use normalize_address_expr() instead of a handcoded sequence. (load_register): Likewise. Report oversized numbers in a useful way. (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only for constant addresses. Report oversized numbers in a useful way. (mips_ip): Use normalize_address_expr() for addresses. gas/testsuite/: * gas/mips/ldstla-32.s: Exclude offsets that are now meant to fail and include more instructions/offsets that are meant to succeed. Use $4 instead $3 to avoid register dependencies. * gas/mips/ldstla-32.d: Update accordingly. * gas/mips/ldstla-32-shared.d: Likewise. * gas/mips/ldstla-32-mips3.d: New test based on the above, except for mips3. * gas/mips/ldstla-32-mips3-shared.d: Similarly, for PIC. * gas/mips/ldstla-32-mips3.s: Source for the new tests. * gas/mips/ldstla-32-1.s: New test for offsets that are meant to fail. * gas/mips/ldstla-32-mips3-1.s: Likewise, for mips3. * gas/mips/ldstla-32-1.l: Stderr output for the new test. * gas/mips/ldstla-32-mips3-1.l: Likewise. * gas/mips/mips.exp: Run the new tests.
2005-04-12include/opcode/ChangeLog:Mark Kettenis1-23/+17
* i386.h (i386_optab): Mark VIA PadLock instructions as ImmExt and adjust them accordingly. gas/ChangeLog: * config/tc-i386.c (output_insn): Handle VIA PadLock instructions similar to other instructions now that they're marked as ImmExt.
2005-04-12PR gas/818Nick Clifton1-4/+5
* config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3] synonyms.
2005-04-11 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.Bob Wilson1-1/+1
2005-04-102005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-3/+3
* config/tc-m68k.c (md_begin): Support 64bit host. (get_num): Support 64bit BFD on 32bit host.
2005-04-102005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-2/+2
* config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
2005-04-08 * config/tc-xtensa.c (xtensa_create_xproperty_segments): SkipBob Wilson1-3/+3
SEC_MERGE sections.
2005-04-07gas/H.J. Lu1-0/+7
2005-04-06 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (tc_gen_reloc): Don't turn BFD_RELOC_X86_64_32S into BFD_RELOC_32. gas/testsuite/ 2005-04-06 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/x86-64-pcrel.s: Test R_X86_64_32S. * gas/i386/x86-64-pcrel.d: Updated.
2005-04-05 * config/tc-xtensa.c (branch_align_power): New.Bob Wilson1-8/+32
(xtensa_find_unaligned_branch_targets, get_aligned_diff, future_alignment_required): Use branch_align_power to check section alignment as well as xtensa_fetch_width when aligning branch targets.
2005-04-05 * config/tc-xtensa.c: Warning fixes throughout.Bob Wilson1-197/+158
(xtensa_fetch_width): Change to unsigned. (assemble_nop, xtensa_find_unaligned_branch_targets, xtensa_find_unaligned_loops, xg_assemble_vliw_tokens, is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags, min_bytes_to_other_loop_end, unrelaxed_frag_min_size, unrelaxed_frag_max_size, xtensa_fix_short_loop_frags, count_insns_to_loop_end, unrelaxed_frag_min_insn_count, get_text_align_max_fill_size, get_text_align_nop_count, get_text_align_nth_nop_size, get_noop_aligned_address, get_aligned_diff, convert_frag_align_next_opcode, convert_frag_immed_finish_loop, xtensa_create_property_segments, xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up types, avoiding size_t and using offsetT and addressT appropriately. (get_text_align_power): Clean up types. Avoid incorrect bound. (get_text_align_fill_size): Clean up types. Restructure for clarity.