aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2003-04-05 * gas/m68hc11/bug-1825.d (_table): Update.Stephane Carrez3-1/+20
* gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs
2003-04-05 * gas/m68hc11/insns.s: Add %page and %addr checks.Stephane Carrez5-6/+23
* gas/m68hc11/insns12.s: Likewise. * gas/m68hc11/insns-dwarf2.d: Update. * gas/m68hc11/insns.d: Update.
2003-04-05 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.Stephane Carrez2-19/+86
(M6811_OP_PAGE_ADDR): New internal define. (get_operand): New modifier %page and %addr to obtain page and address part of a far-function. (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation relocs. (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier. (find_opcode): Add comment. (md_estimate_size_before_relax): Force relocation of STATE_UNDEXED_OFFSET types when the symbol is not absolute. (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32 on the symbol itself so that DWARF2 strings are merged correctly.
2003-04-042003-04-04 Chris Demetriou <cgd@broadcom.com>Chris Demetriou5-0/+144
* gas/mips/mips5.d: New test. * gas/mips/mips5.l: New test stderr listing. * gas/mips/mips5.s: New test source file. * gas/mips/mips.exp: Run the mips5 test.
2003-04-04Namespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and ↵Svein Seldal4-325/+333
s/c3x/tic3x/. 2003 copyright update
2003-04-03Mention support for Xtensa architectureNick Clifton2-0/+6
2003-04-032003-04-03 Philip Blundell <philb@gnu.org>Phil Blundell3-0/+12
* gas/arm/offset.s: New test. * gas/arm/arm.exp (run_errors_test): Run it.
2003-04-022003-04-02 Philip Blundell <philb@gnu.org>Phil Blundell2-0/+5
* config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
2003-04-02[ gas/ChangeLog ]Chris Demetriou19-27/+395
2003-04-02 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (macro2): Adjust implementation of M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly in the case where the source and destination registers are the same. [ gas/testsuite/ChangeLog ] 2003-04-02 Chris Demetriou <cgd@broadcom.com> * gas/mips/ulh.d: Adjust for ulh and ulhu macro assembly changes. * gas/mips/mips.exp: Define new "gpr_ilocks" architecture property, and add it to mips2 (and later) chips and r3900. * gas/mips/uld2.s: New test source file. * gas/mips/ulh2.s: Likewise. * gas/mips/ulw2.s: Likewise. * gas/mips/uld2.l: New test stderr listing. * gas/mips/ulh2.l: Likewise. * gas/mips/ulw2.l: Likewise. * gas/mips/uld2-eb.d: New test. * gas/mips/uld2-el.d: Likewise. * gas/mips/ulh2-eb.d: Likewise. * gas/mips/ulh2-el.d: Likewise. * gas/mips/ulw2-eb-ilocks.d: Likewise. * gas/mips/ulw2-eb.d: Likewise. * gas/mips/ulw2-el-ilocks.d: Likewise. * gas/mips/ulw2-el.d: Likewise. * gas/mips/mips.exp: Run new tests for appropriate architectures.
2003-04-01Add Xtensa port (omitted from previous delta)Nick Clifton1-0/+73
2003-04-01Add Xtensa portNick Clifton24-181/+12365
2003-04-01Fixes for iWMMXt contribution.Nick Clifton2-179/+267
2003-03-262003-03-26 Eric Christopher <echristo@redhat.com>Eric Christopher2-6/+12
* config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
2003-03-25Add iWMMXt supportNick Clifton10-3/+1369
2003-03-24Rename the all occurances of C54X to TIC54X.Nick Clifton5-635/+641
2003-03-21 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec toAndreas Schwab2-2/+7
avoid aliasing issue.
2003-03-21 * config/tc-s390.c (s390_arch_size): Initialize to zero.Martin Schwidefsky2-21/+62
(current_arch_mask): Rename to current_mode_mask. (current_arch_requested): Remove variable. (current_cpu): New variable. (init_default_arch): Set defaults values for s390_arch_size, current_mode_mask and current_cpu. (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}. (md_begin): Replace current_arch_mask by current_cpu. (md_assemble): Adapt check and error message to current_mode_mask and current_cpu.
2003-03-13(buffer_and_nest): Store more to sb instead of '\n'.Nick Clifton3-18/+24
(get_line_sb): Return end of line character or '\n' if it is zero or non-existent.
2003-03-12* config/tc-mips.c (mips_validate_fix): New function.Alexandre Oliva3-0/+94
* config/tc-mips.h (TC_VALIDATE_FIX): Define. (mips_validate_fix): Declare.
2003-03-12* gas/mips/branch-misc-2.s: Add branch to symbol in anotherAlexandre Oliva3-8/+19
section. * gas/mips/branch-misc-2.l: Update error messages and warnings.
2003-03-12* Reverted 2003-03-02's patch.Alexandre Oliva2-46/+28
2003-03-12* Reverted previous patch.Alexandre Oliva12-120/+94
2003-03-11 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.Richard Henderson4-24/+57
(TC_DWARF2_EMIT_OFFSET): Provide default. (out_debug_aranges, out_debug_info): Use it. * config/tc-ia64.c (ia64_dwarf2_emit_offset): New. (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ... (ia64_gen_real_reloc_type): ... here. * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2003-03-09 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.Thiemo Seufer2-28/+7
(s_mips_ent): Likewise.
2003-03-04fix spelling typo.Nick Clifton1-1/+1
2003-03-04(mcu_types): Add recenly announced x1122 and x1123 devices, add missed x437.Nick Clifton2-16/+24
(md_show_usage): Sort device list.
2003-03-03Fix sh-elf linker relaxation:Joern Rennecke3-10/+39
gcc: * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and subtarget_asm_isa_spec. (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define. (ASM_SPEC): Define as SH_ASM_SPEC. (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h. Use subtarget_asm_relax_spec and subtarget_asm_isa_spec. * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC. (SUBTARGET_ASM_ISA_SPEC): Undef / define. gcc/testsuite: gcc.dg/sh-relax.c: New test. include/elf: * sh.h (EF_SH_MERGE_MACH): Make sure SH2E & SH3/SH3E merge to SH3E, and SH2E & SH4 merge to SH4, not SH2E. gas: * config/tc-sh.c (sh_dsp): Replace with preset_target_arch. (md_begin): Use preset_target_arch. (md_longopts): Make isa option unconditional. (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any set preset_target_arch. (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups by -S_GET_VALUE (fixP->fx_subsy). (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy, and the addend is 0. Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4. * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define. bfd: elf32-sh.c (sh_elf_howto_tab): Make R_SH_IND12W into an ordinary relocation (no special function), and make it non-partial_inplace. (sh_elf_relax_section): When creating a bsr, use a consistent value no matter if the symbol is extern or not; set addend to -4. Don't swap load / non-load instructions for SH4. (sh_elf_relax_delete_bytes): In R_SH_IND12W case, check the offset rather than if the symbol is external to determine if adjusting the offset makes sense. Adjust the addend too if appropriate. (sh_elf_relocate_section): In R_SH_IND12W, don't fiddle with the relocation.
2003-03-02Leftover from previous commit.Thiemo Seufer1-9/+0
2003-03-02 * elf32-mips.c (elf_mips_howto_table_rel): Change definition ofThiemo Seufer13-105/+194
R_MIPS_PC16 to rightshift 2. (elf_reloc_map mips_reloc_map): Map to rightshifted BFD reloc. (bfd_elf32_bfd_reloc_type_lookup): Support BFD_RELOC_MIPSEMB_16_PCREL_S2. * elf64-mips.c (mips_elf64_howto_table_rel): Change definition of R_MIPS_PC16 to rightshift 2. (mips_elf64_howto_table_rela): Likewise. (mips_reloc_map): Map to rightshifted BFD reloc. * elfn32-mips.c: The same as in elf64-mips.c. * elfxx-mips.c (mips_elf_got_for_ibfd): Typo in comment. (mips_elf_calculate_relocation): Handle rightshifted addends for R_MIPS_PC16. * reloc.c (BFD_RELOC_MIPSEMB_16_PCREL_S2): New BFD relocation for MIPS Embedded PIC. Remove superfluous empty COMMENT. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * config/tc-mips.c (append_insn): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about misaligned address and reange overflow. (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add earlier warnings about misaligned address and reange overflow. (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. (md_apply_fix): Likewise. Fix warning output. (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Allow BFD_RELOC_16_PCREL_S2 for all ABIs. (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. * gas/mips/bge.d: Reactivate external branch tests. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/branch-misc-2.d: New File. * gas/mips/branch-misc-2.l: Remove. * gas/mips/mips.exp: Adjust branch-misc-2 test.
2003-02-21Update Maverick tests.Nick Clifton8-632/+1528
Contribute test generator.
2003-02-21Add v850e debug registers.Nick Clifton2-65/+76
2003-02-21Applied Bob Wilson's documentation fixes.Nick Clifton3-438/+534
2003-02-21 * config/tc-mips.c (prev_reloc_op_frag): New variable.Richard Sandiford6-7/+60
(macro): Check it to decide whether a new frag is needed. (my_getSmallExpression): Set it.
2003-02-20Fix typo: intial -> initial.Nick Clifton2-18/+22
2003-02-19 * app.c (do_scrub_chars): Handle '||' in two states.Alan Modra2-30/+49
2003-02-12 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.Alan Modra3-1/+10
* config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2003-02-11Add support for configuring *-*-kaos targets.Nick Clifton3-245/+260
2003-02-10Add support for marking ARM ELF binaries as support the Cirrus EP9312 MaverickNick Clifton2-0/+15
floating point co-processor.
2003-02-08gas/Richard Sandiford8-83/+220
* config/tc-mips.c (reloc_needs_lo_p): New function. (fixup_has_matching_lo_p): New function. (append_insn): Use reloc_needs_lo_p to check whether a relocation might need a matching %lo(). Reuse the head of mips_hi_fixup_list if that fixup already has a matching %lo(). Don't call frag_wane here. (macro): Call frag_wane here if the last unmatched hi was in the current frag. (pic_need_relax): New function, split out from... (md_estimate_size_before_relax): ...here. (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols. gas/testsuite/ * gas/mips/rel12.[sd], gas/mips/rel13.[sd]: New tests. * gas/mips/mips.exp: Run them.
2003-02-07 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.Richard Sandiford6-23/+66
testsuite/ * gas/mips/expr1.[sd]: New test. * gas/mips/mips.exp: Run it.
2003-02-06 * gas/i386/x86-64-opcode.s: More tests for x86-64 MOVD opcodes.Alan Modra3-70/+87
* gas/i386/x86-64-opcode.d: Adjust to suit.
2003-02-06 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so thatAlan Modra2-22/+25
x@toc+off works.
2003-02-04 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.Alan Modra2-72/+203
(ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't accept x@got+off etc. (md_assemble): Handle TLS relocs. (ppc_force_relocation): Force for all TLS relocs. (ppc_fix_adjustable): Likewise. (md_apply_fix3): Handle TLS relocs.
2003-02-04bfdAlan Modra2-4/+10
* elf-bfd.h (enum elf_link_info_type): Remove. (struct bfd_elf_section_data): Move sec_info_type, use_rela_p fields to struct sec. Remove linkonce_p field. (elf_linkonce_p): Delete. (elf_discarded_section): Update for sec_info_type change. * section.c (struct sec): Add sec_info_type, use_rela_p, has_tls_reloc, flag11, flag12, flag13, flag14, flag15, flag16, flag20, flag24. (ELF_INFO_TYPE_NONE): Define. (ELF_INFO_TYPE_STABS): Define. (ELF_INFO_TYPE_MERGE): Define. (ELF_INFO_TYPE_EH_FRAME): Define. (ELF_INFO_TYPE_JUST_SYMS): Define. (STD_SECTION): Update struct sec initializer. * ecoff.c (bfd_debug_section): Likewise. * elf.c: Likewise. Update occurrences of sec_info_type and use_rela_p. * elflink.h: Likewise. * elf-eh-frame.c: Likewise. * elf64-alpha.c: Likewise. * elfxx-ia64.c: Likewise. * elfxx-mips.c: Likewise. * bfd-in2.h: Regenerate. * elf32-sparc.c (sec_do_relax): Use elf_section_data macro rather than referring to used_by_bfd. * elf64-sparc.c (sec_do_relax): Likewise. * elf64-mmix.c (mmix_elf_section_data): Likewise. * elfxx-mips.c (mips_elf_section_data): Likewise. * ieee.c (ieee_slurp_section_data): Use ieee_per_section macro. (ieee_get_section_contents): Likewise. (ieee_new_section_hook): Formatting. (ieee_canonicalize_reloc): Remove commented out code. * mmo.c (mmo_section_data): Define. Use throughout file. * oasys.c (oasys_get_section_contents): Use oasys_per_section macro. gas * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2003-02-04 * gas/cris/rd-dw2-1.d: Adjust for dwarf2 directory table change.Hans-Peter Nilsson2-2/+7
2003-02-02gas/Richard Sandiford12-370/+542
* config/tc-mips.c (enum small_ex_type): Remove. (imm_unmatched_hi): Remove. (md_assemble): Remove use of imm_unmatched_hi. Remove the last argument from calls to append_insn. (append_insn): Remove unmatched_hi parameter; check reloc_type[0] instead. (macro_build): Update append_insn calls. (mips16_macro_build, macro_build_lui): Likewise. (mips_ip): Rework handling of small expressions. Move explicit relocation handling into my_getSmallExpression. Assume that the value of 'o' operands is zero if there is only one bracketed expression left. (percent_op): Make constant. Record the BFD relocation code associated with each operator. (my_getSmallParser, my_getPercentOp): Remove. (parse_relocation): New function. (my_getSamllExpression): Rework. Fill in relocations here rather than in mips_ip. gas/testsuite * gas/mips/elf-rel8.[sd], gas/mips/elf-rel9.[sd], gas/mips/elf-rel10.[sd], gas/mips/elf-rel11.[sd]: New tests. * gas/mips/mips.exp: Run elf-rel8 and elf-rel9 for all elf targets. Run elf-rel10 and elf-rel11 for NewABI targets.
2003-01-29line_comment_chars: Add '#'. This makes the assembler's handling ofNick Clifton2-2/+7
# <linenum> "<filename>" directives work.
2003-01-28Add code to create and use directory tables.Nick Clifton2-33/+128
2003-01-28Replace occurences of 'tolower' with 'TOLOWER'.Nick Clifton2-3/+8
2003-01-28Patch from David Mosberger.Jim Wilson2-2/+7
* config/tc-ia64.c (dot_vframesp): Correct error message. (dot_vframepsp): Ditto.