summaryrefslogtreecommitdiff
path: root/gas
Commit message (Collapse)AuthorAgeFilesLines
* bfd/Alan Modra2005-04-123-40/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * libcoff.h: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am: Run "make dep-am". (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command. (sysroff.o, defparse.o, deflex.o): Likewise. (nlmheader.o, rcparse.o, rclex.o): Likewise. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. gas/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ * Makefile.am: Run "make dep-am". (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command. * Makefile.in: Regenerate. * config.in: Regenerate.
* * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.Bob Wilson2005-04-112-1/+6
|
* * gas/all/gas.exp: Don't run fastcall labels test onMark Kettenis2005-04-112-1/+6
| | | | i*86-*-openbsd*.
* * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.Mark Kettenis2005-04-112-1/+8
|
* gas/Jan Beulich2005-04-119-71/+231
| | | | | | | | | | | | | | | | | | | | | | | | 2005-04-11 Jan Beulich <jbeulich@novell.com> * NEWS: Mention these changes and their effects. * macro.c (get_token): Use is_name_beginner/is_part_of_name/ is_name_ender. (check_macro): Likewise. (buffer_and_nest): Likewise. Permit multiple labels. Don't discard labels together with the closing pseudo-op. (macro_expand_body): Adjust comment. Range-check input before use. Adjust mis-spelled diagnostic. Use is_name_beginner. * read.c (try_macro): New. (read_a_source_file): New static variable last_eol. Don't list macro expansion lines more than once. Call try_macro. (s_macro): Set section of line_label to absolute instead of undefined. * doc/as.texinfo: Add information on the caveats of these changes. gas/testsuite/ 2005-04-11 Jan Beulich <jbeulich@novell.com> * gas/macros/dot.[ls]: New. * gas/macros/macros.exp: Run new test.
* * symbols.c (symbol_X_add_number): Change return type to "offsetT *".Alan Modra2005-04-113-4/+9
| | | | * symbols.h (symbol_X_add_number): Update prototype.
* 2005-04-10 Eric Christopher <echristo@redhat.com>Eric Christopher2005-04-102-1/+5
| | | | * symbols.c (symbol_X_add_number): Fix warning.
* 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-102-3/+8
| | | | | * config/tc-m68k.c (md_begin): Support 64bit host. (get_num): Support 64bit BFD on 32bit host.
* 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-102-2/+6
| | | | * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
* * read.c (assign_symbol): Remove const from parm. Fix xcallocAlan Modra2005-04-092-11/+16
| | | | | | call. Don't do the COFF hacks for multi-emulation gas. Move demand_empty_rest_of_line back to caller. (s_set, equals): demand_empty_rest_of_line here.
* PR gas/827Alan Modra2005-04-096-130/+149
| | | | | | | | | | | | | | | | | * as.h (rs_dummy): Define. * symbols.c (symbol_X_add_number): New function. * symbols.h (symbol_X_add_number): Declare. * stabs.c (aout_process_stab): Tidy symbol frag setting. * read.c (assign_symbol): New function, split out from s_set. Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy. Fix COFF hacks for multi-emulation gas. (s_set): Call assign_symbol. Remove "register" keyword. (set_zero_frag): New function. (pseudo_set): Always check for assignment to section syms. Always set segment and frag of symbol, and likewise extern for aout/bout. Handle assignment of sym=sym+/-const specially. Don't special case exp.X_add_number non-zero for O_symbol expressions. (equals): Use assign_symbol.
* * config/tc-xtensa.c (xtensa_create_xproperty_segments): SkipBob Wilson2005-04-082-3/+8
| | | | SEC_MERGE sections.
* gas/H.J. Lu2005-04-075-0/+19
| | | | | | | | | | | | | | 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.
* po/rw.po: New translation: KinyarwandaNick Clifton2005-04-064-2/+3108
| | | | configure.in (ALL_LINGUAS): Add rw
* * config/tc-xtensa.c (branch_align_power): New.Bob Wilson2005-04-052-8/+40
| | | | | | (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.
* * config/tc-xtensa.c: Warning fixes throughout.Bob Wilson2005-04-052-197/+177
| | | | | | | | | | | | | | | | | | (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.
* bfd/H.J. Lu2005-04-052-10/+9
| | | | | | | | | | | | | | | | | | | | | | | 2005-04-04 H.J. Lu <hongjiu.lu@intel.com> * elf.c (bfd_elf_set_group_contents): Ignore linker created group section. (assign_section_numbers): Accept link_info. Check SHT_GROUP sections for relocatable files only. Remove the linker created group sections. (_bfd_elf_compute_section_file_positions): Pass link_info to assign_section_numbers. * elfxx-ia64.c (elfNN_ia64_object_p): New. (elf_backend_object_p): Defined. gas/ 2005-04-04 H.J. Lu <hongjiu.lu@intel.com> * config/tc-ia64.c (start_unwind_section): Undo the change of 2004-08-18. (generate_unwind_image, dot_endp): Likewise.
* Patch from David Mosberger, to avoid nop.f on Itanium2.Jim Wilson2005-04-022-8/+29
| | | | | | | * config/tc-ia64.c (ia64_handle_align): Move le_nop and le_nop_stop arrays and initializers to file scope. (md_begin): When generating code for anything other than Itanium 1, use MMI instead of MFI NOP bundles as a filler.
* gas/Jan Beulich2005-04-012-1/+7
| | | | | | | 2005-04-01 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push immediates.
* Support the .f_floating, .d_floating, .g_floating and .h_floating directivesNick Clifton2005-04-018-5/+48
| | | | for the VAX target in order to be more compatible with the VAX MACRO assembler.
* elf-rel.d: Call gas with -k. Thanks toMatt Thomas for figuring out.Nick Clifton2005-04-013-1/+10
| | | | vax.exp: Run elf-rel.[sd] for NetBSD-ELF and Linux.
* Add a check for <unistd.h> providing a prototype for getopt() which is ↵Nick Clifton2005-04-014-0/+83
| | | | | | compatible with the one in include/getopt.h. If so then define HAVE_DECL_GETOPT.
* gas/Jan Beulich2005-04-016-0/+28
| | | | | | | | | | | | 2005-04-01 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook. gas/testsuite/ 2005-04-01 Jan Beulich <jbeulich@novell.com> * gas/i386/bss.[sd]: New. * gas/i386/i386.exp: Run new test.
* gas/Jan Beulich2005-04-016-1/+32
| | | | | | | | | | | | 2005-04-01 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S. (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case. gas/testsuite/ 2005-04-01 Jan Beulich <jbeulich@novell.com> * gas/i386/x86-64-pcrel.[sd]: New. * gas/i386/i386.exp: Run new test.
* * bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename fromJulian Brown2005-03-302-1/+6
| | | | | | | | | | | | bfd_elf32_is_arm_mapping_symbol_name. * bfd/bfd-in2.h: Regenerate. * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from bfd_elf32_is_arm_mapping_symbol_name. * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name. (arm_elf_find_function): Likewise. (elf32_arm_output_symbol_hook): Likewise. * gas/config/tc-arm.c (arm_adjust_symtab): Likewise.
* * bfd/bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.Julian Brown2005-03-304-87/+33
| | | | | | | | | | | | | | | | | | | | * bfd/bfd-in2.h: Regenerate. * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to bfd_elf32_is_arm_mapping_symbol_name. (elf32_arm_output_symbol_hook): Likewise. (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for mapping symbols. (is_arm_mapping_symbol_name): Function moved from here... * bfd/cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed and made global. * gas/config/tc-arm.c (mapping_state): Change documentation in function comment to cross-reference spec instead. Change type of mapping symbols to BSF_NO_TYPE. (arm_adjust_symtab): Don't change type of mapping symbols here. * gas/testsuite/gas/arm/mapping.d: Update expected output. * ld/testsuite/ld-arm/arm-app-abs32.d: Likewise. * ld/testsuite/ld-arm/arm-app.d: Likewise. * ld/testsuite/ld-arm/mixed-app.d: Likewise.
* * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.Aaron W. LaFramboise2005-03-305-76/+159
| | | | | | * config.in: Regenerate. * configure: Regenerate. * configure.in: Check for ffs decl and alphabetize.
* gas/testsuite/H.J. Lu2005-03-2916-43/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-29 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run segment and inval-seg for i386. Run x86-64-segment and x86-64-inval-seg for x86-64. * gas/i386/intel.d: Expect movw for moving between memory and segment register. * gas/i386/naked.d: Likewise. * gas/i386/opcode.d: Likewise. * gas/i386/x86-64-opcode.d: Likewise. * gas/i386/opcode.s: Use movw for moving between memory and segment register. * gas/i386/x86-64-opcode.s: Likewise. * : Likewise. * gas/i386/inval-seg.l: New. * gas/i386/inval-seg.s: New. * gas/i386/segment.l: New. * gas/i386/segment.s: New. * gas/i386/x86-64-inval-seg.l: New. * gas/i386/x86-64-inval-seg.s: New. * gas/i386/x86-64-segment.l: New. * gas/i386/x86-64-segment.s: New. include/opcode/ 2005-03-29 H.J. Lu <hongjiu.lu@intel.com> * i386.h (i386_optab): Don't allow the `l' suffix for moving moving between memory and segment register. Allow movq for moving between general-purpose register and segment register. opcodes/ 2005-03-29 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (SEG_Fixup): New. (Sv): New. (dis386): Use "Sv" for 0x8c and 0x8e.
* bfd/Daniel Jacobowitz2005-03-296-2/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bfd-in2.h, libbfd.h: Regenerated. * reloc.c: Add ARM TLS relocations. * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS relocations. (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto) (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto) (elf32_arm_tls_ie32_howto): New. (elf32_arm_howto_from_type): Support TLS relocations. (elf32_arm_reloc_map): Likewise. (elf32_arm_reloc_type_lookup): Likewise. (TCB_SIZE): Define. (struct elf32_arm_obj_tdata): New. (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define. (elf32_arm_mkobject): New function. (struct elf32_arm_relocs_copied): Add pc_count. (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD) (GOT_TLS_IE): Define. (struct elf32_arm_link_hash_table): Add tls_ldm_got. (elf32_arm_link_hash_newfunc): Initialize tls_type. (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type. (elf32_arm_link_hash_table_create): Initialize tls_ldm_got. (dtpoff_base, tpoff): New functions. (elf32_arm_final_link_relocate): Handle TLS relocations. (IS_ARM_TLS_RELOC): Define. (elf32_arm_relocate_section): Warn about TLS mismatches. (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count. (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle TLS relocations and pc_count. (elf32_arm_adjust_dynamic_symbol): Check non_got_ref. (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local calls. (elf32_arm_size_dynamic_sections): Handle TLS. (elf32_arm_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject): Define. gas/ * config/tc-arm.c (arm_parse_reloc): Add TLS relocations. (md_apply_fix3): Mark TLS symbols. (tc_gen_reloc): Handle TLS relocations. (arm_fix_adjustable): Ignore TLS relocations. (s_arm_elf_cons): Support expressions after decorated symbols. gas/testuite/ * gas/arm/tls.s, gas/arm/tls.d: New files. * gas/arm/arm.exp: Run TLS test. include/elf/ * arm.h: Add TLS relocations. ld/testsuite/ * ld-arm/tls-lib.s, ld-arm/tls-lib.d, ld-arm/tls-lib.r, ld-arm/tls-app.s, ld-arm/tls-app.d, ld-arm/tls-app.r: New files. * ld-arm/arm-lib.ld, ld-arm/arm-dyn.ld: Increase data segment alignment. * ld-arm/arm-elf.exp: Run TLS tests.
* * gas/config/tc-arm.c (marked_pr_dependency): New bitmap, bit NJulian Brown2005-03-294-25/+52
| | | | | | | | | | | | | | | indicates whether personality routine index N has been output for this section. (mapping_state): tc_segment_info_data now struct not enum. (arm_elf_change_section): Likewise, and marked_pr_dependency is now handled on section change. (create_unwind_entry): Previous code to output dependency removed. (s_arm_unwind_fnend): Output dependency if it hasn't been done already for this section. * gas/config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct arm_segment_info_type. (arm_segment_info_type): New struct. * gas/testsuite/gas/arm/unwind.d: Update expected output.
* * config/tc-xtensa.c (do_align_targets): Update comment.Bob Wilson2005-03-292-77/+37
| | | | | | | | | | | (xtensa_frob_label): Compute "freq" before possibly switching frags. Insert a LOOP_END frag before every loop target, and do not overload DESIRE_ALIGN_IF_TARGET frags with loop end information. (xg_assemble_vliw_tokens): Use do_align_targets. (xtensa_fix_target_frags): Remove code to convert a DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a negatable branch at the end of a loop. (frag_can_negate_branch): Delete.
* gas/H.J. Lu2005-03-2819-20/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-28 David Mosberger <davidm@hpl.hp.com> H.J. Lu <hongjiu.lu@intel.com> PR 803 NEWS: Mention "-mtune=[itanium1|itanium2]". * config/tc-ia64.c (md): Add tune. (md_parse_option): Accepted "-mtune=[itanium1|itanium2]". (md_show_usage): Add "-mtune=[itanium1|itanium2]". (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and B unit NOPs are discouraged for McKinley-derived cores. (md_begin): Don't hardcode the "extra_goodness()" function in the comment... (ia64_init): Set md.tune to itanium2. * doc/as.texinfo: Add -mtune=[itanium1|itanium2]". * doc/c-ia64.texi: Likewise. gas/testsuite/ 2005-03-28 H.J. Lu <hongjiu.lu@intel.com> PR 803 * gas/ia64/dv-imply.d: Pass -mtune=itanium1 to as. * gas/ia64/dv-mutex.d : Likewise. * gas/ia64/dv-safe.d: Likewise. * gas/ia64/dv-srlz.d.nop: Likewise. * gas/ia64/ldxmov-1.d: Likewise. * gas/ia64/opc-b.d: Likewise. * gas/ia64/opc-f.d: Likewise. * gas/ia64/opc-i.d: Likewise. * gas/ia64/opc-m.d: Likewise. * gas/ia64/operand-or.d: Likewise. * gas/ia64/pcrel.d: Likewise. * gas/ia64/pseudo.d: Likewise. * gas/ia64/tls.d: Likewise. ld/testsuite/ 2005-03-28 H.J. Lu <hongjiu.lu@intel.com> PR 803 * ld-ia64/ia64.exp: Pass -mtune=itanium1 to as.
* * config/obj-coff.c (coff_frob_symbol): When crashing because of aIan Lance Taylor2005-03-272-1/+7
| | | | bad C_EFCN symbol, print its name.
* * config/tc-xtensa.c (use_longcalls): Delete.Bob Wilson2005-03-263-68/+68
| | | | | | | | | | | | | (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if the use_longcalls flag is set. Do this before checking the segment. (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never expand direct calls at this point. (xtensa_set_frag_assembly_state): Set use_longcalls flag. (xtensa_find_unmarked_state_frags): Likewise. (md_assemble): Do not disable longcalls by setting is_specific_opcode. (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes. (convert_frag_immed): Remove unnecessary check of is_specific_opcode. * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
* * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.Hans-Peter Nilsson2005-03-253-140/+86
|
* * config/tc-cris.h: Convert to ISO C90.Hans-Peter Nilsson2005-03-253-186/+115
| | | | | | | | * config/tc-cris.c: Ditto. (md_estimate_size_before_relax): Remove obsolete comment for parameter "segment_type". (md_begin): Document reason for cast of hash_insert argument. (md_atof): Correct type of parameter "type".
* Convert unmaintained files over to ISO-C90 and fix formatting.Nick Clifton2005-03-2457-12209/+10052
|
* * gas/cris/range-err-1.s: Adjust expected messages for hosts withHans-Peter Nilsson2005-03-242-2/+7
| | | | 64-bit longs.
* * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's bindingJim Blandy2005-03-232-1/+6
| | | | attributes properly.
* Accept any C library to accompany a GNU Linux implementation, not just the GNUNick Clifton2005-03-234-12/+20
| | | | C library.
* Convert to ISO C90 formattingNick Clifton2005-03-235-1793/+1639
|
* gas/testsuite/Alan Modra2005-03-222-14/+18
| | | | | | | | | | * gas/elf/section5.s: Don't start directives in first column. ld/testsuite/ * ld-elf/tbss.s: Don't start directives in first column. * ld-scripts/weak1.s: Likewise. * ld-scripts/weak2.s: Likewise. * ld-undefined/weak-undef.s: Likewise. * ld-undefined/undefined.exp: Enable tests for hppa-elf.
* * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16Maciej W. Rozycki2005-03-212-2/+12
| | | | | | relocations correctly as well. (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16 relocations in mergeable sections section-relative either.
* * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.Bob Wilson2005-03-212-0/+5
|
* (sh_elf_final_processing): Fix compile time warning by providing a prototypeNick Clifton2005-03-213-1/+14
| | | | for sh_symbian_find_elf_flags.
* Fix typo introduced byprevious delta.Nick Clifton2005-03-212-1/+6
|
* Update instructions that use the "never" value in the conditional field to useNick Clifton2005-03-213-6/+13
| | | | "le" instead. This is so that the disassembler will disassemble them.
* * configure.tgt: Handle setting of bfd_gas for fmt=multi targetsAlan Modra2005-03-212-17/+18
| | | | | | along with other formats that set bfd_gas. Remove unnecessary setting of bfd_gas. Delete strongarm cases in generic_target switch.
* PR gas/780Alan Modra2005-03-212-36/+54
| | | | | | | | * config/tc-m68k.c (TRUNC, SEXT): Define. (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above. (m68k_ip): Truncate or sign extend expressions as appropriate. (get_num): Likewise. (md_apply_fix3): Use SEXT.
* * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.Alan Modra2005-03-216-189/+358
| | | | | | | | | | (OBJ_FORMAT_HFILES): Prune config/obj-vms.h. (obj-vms.o): Delete rule. Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * doc/Makefile.in: Regenerate. * po/POTFILES.in: Regenerate.