aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2002-09-05gas reloc rewrite.Alan Modra95-1786/+1801
2002-09-04 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.Alan Modra2-36/+40
(ppc_fix_adjustable <coff version>): Cleanup.
2002-09-04 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.Alan Modra2-6/+26
(md_parse_option): No -a64 without BFD64. (ppc_set_cpu): Select appropriate cpu when ppc_obj64. (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2002-09-04Do not insert non-BookE32 instructions into the hash table if the target cpuNick Clifton2-0/+13
is the BookE32. (case 107575)
2002-08-31 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, notHans-Peter Nilsson2-1/+6
ATTRIBUTE_UNUSED.
2002-08-29Add linker relaxation to v850 toolchainNick Clifton4-25/+142
2002-08-28Add TMS320C4x supportNick Clifton8-171/+2920
2002-08-28 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.Alan Modra2-97/+97
(TC_ADJUST_RELOC_COUNT): Tweak param name. (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise. (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise. (RELOC_ENUM): Define. (fix_new_internal): Use RELOC_ENUM. (fix_new, fix_new_exp): Likewise. (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL. Replace gotos with continue. (write_relocs): Formatting. Avoid symbol loops in RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange errors, and error number in other cases. (fixup_segment): Remove param names from prototype. Rename "this_segment_type" to "this_segment". Update linkrelax comment. Remove "size, "place" and "where" local vars. Formatting. Update "no symbol" comment. Remove #if 0 and #if 1.
2002-08-27 * gas/mcore/allinsn.d: Escape dots. Pass -z to objdump and adjustAlan Modra7-38/+49
to suit. Match coff relocs. Match "from address pool" comments. * gas/sparc/pcrel.s: Use 2b label in expressions. * gas/sparc/pcrel64.s: Likewise. * gas/sparc/pcrel.d: Adjust to suit. * gas/sparc/pcrel64.d: Likewise. * gas/vtable/vtable.exp: Move xfails to .. (proc vtable_setup_xfails): .. here. Add i866.
2002-08-27 * gas/macros/macros.exp (strings): Update xfails.Alan Modra2-6/+11
2002-08-27 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.Alan Modra2-12/+13
2002-08-27 * dwarf2dbg.c: Always include dwarf2dbg.h.Alan Modra6-43/+52
(dwarf2_directive_file): Adjust dummy version args. * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED. * expr.c (clean_up_expression <O_subtract>): Allow subtraction when symbol values differ. * read.c (do_align): Add ATTRIBUTE_UNUSED to label. (pseudo_set <O_subtract>): Remove unnecessary segment test. * config/obj-bout.c (obj_pseudo_table): Warning fix.
2002-08-26 * gas/m68k/all.exp: xfail non-ELF targets on pcrel test.Alan Modra2-0/+5
2002-08-26 * gas/m68hc11/insns.d: Quote dots.Alan Modra3-3/+6
* gas/m68hc11/opers12.d: Likewise.
2002-08-26 * gas/ieee-fp/x930509a.exp: Run the test but xfail. Add c80 to xfails.Alan Modra2-8/+9
2002-08-26 * gas/vax/quad.exp: Use quad_elf.s for ELF targets.Alan Modra4-1/+13
* gas/vax/quad.s: Align * gas/vax/quad_elf.s: New version of quad.s with %reg.
2002-08-26 * gas/sparc/sparc.exp (sparc_elf_setup): New.Alan Modra2-0/+14
Use it to xfail for non-ELF targets.
2002-08-26 * gas/tic54x/align.s: Add comment.Alan Modra4-4/+9
* gas/tic54x/align.d: Adjust .text size for 2002-05-23 write.c change. * gas/tic54x/extaddr.d: Similarly adjust disassembly tail.
2002-08-26 * config/tc-w65.c (md_section_align): Fix typo.Alan Modra2-2/+7
(md_parse_option): Return 0, not 1.
2002-08-22Note that if '@' is a comment character then another symbol is used to prefixNick Clifton2-0/+10
the section's type.
2002-08-22opcodes: Fix definition of "in rd,imm16" opcode.Nick Clifton2-24/+22
gas: Adjust ptr variable also in "case 0" case.
2002-08-22Add sh-nto supportNick Clifton4-7/+11
2002-08-22 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.Jeff Law2-0/+8
2002-08-22Fix arm-aout failuresNick Clifton14-9/+67
2002-08-22 * gas/ppc/ppc.exp: Don't run e500 test on xcoff targets.Alan Modra3-23/+25
* gas/ppc/astest2.d: Escape dots.
2002-08-212002-08-21 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-11/+25
* config/tc-ppc.c (ppc_cleanup): Do something only if format is ELF. (ppc_apuinfo_section_add): Define only if format is ELF. (md_assemble): Emit APUinfo section only if format is ELF. Fix formatting.
2002-08-20 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.Alan Modra13-13/+28
* config/tc-frv.c: Likewise. * config/tc-hppa.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-ip2k.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-mmix.c: Likewise. * config/tc-mn10300.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sparc.c: Likewise. * config/tc-v850.c: Likewise.
2002-08-20[gas/]Richard Sandiford6-91/+130
* config/tc-mips.c (macro2): Implement rotates by zero using shifts by zero. [gas/testsuite] * gas/mips/rol.s: Add rotate by zero tests. * gas/mips/rol.d: Update accordingly. * gas/mips/rol64.d: Expect rotates by zero to use dsrl.
2002-08-192002-08-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni3-16/+195
From matthew green <mrg@redhat.com> * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere PPC_OPCODE_PPC is, except for BookE architectures. (md_parse_option): Add support for -mspe. (md_show_usage): Add -mspe. (md_parse_option): Add support for -me500 and -me500x2 to generate code for Motorola e500 core complex. (md_show_usage): Add -me500 and -me500x2. (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK): New macros. (ppc_cleanup): New function. (ppc_apuinfo_section_add): New function. (APUID): New macro. (md_assemble): Collect info and write the APUinfo section. * config/tc-ppc.h (md_cleanup): Define. (ppc_cleanup): Export. (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2002-08-192002-08-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni4-0/+49
From matthew green <mrg@redhat.com> * e500.s: New tests for e500 instructions. * e500.d: Results for new test. * ppc.exp: Test e500.s.
2002-08-17 * config/obj-elf.c (obj_elf_change_section): Make non-static.Stan Cox3-2/+65
config/tc-mips.c (s_change_section): New function to support IRIX .section pseudo-op.
2002-08-16Correct date on previous ChangeLog entry.Stephen Clarke1-1/+1
2002-08-16 * gas/sh/sh64/datal32-3.d: Formatting change to match the currentStephen Clarke2-1/+6
output of objdump.
2002-08-16Fix assembly of "callt 0x3f"Nick Clifton2-5/+9
2002-08-16* config/tc-mips.c (macro_build_jalr): Make sure we generateAlexandre Oliva2-16/+32
the fix-up against on the right frag. (s_cpsetup): Likewise. Parse third argument as expression, to handle global symbols and forward/backward labels correctly.
2002-08-16 * gas/all/gas.exp (forward references): Don't test c30.Alan Modra10-48/+96
* gas/d30v/guard-debug.d: Use -gstabs rather than -g. * gas/elf/ehopt0.s: Don't use "$" in labels. * gas/ieee-fp/x930509a.exp: Don't test c30. * gas/m68hc11/malis.d: Adjust -I so that test runs when not building in source dir. * gas/mri/mri.exp: Don't run on "m68hc*". * gas/sh/basic.exp (do_fp): Match LE too. (pcrel-coff): Run this version for "sh*-pe*" and rename "sh*-hms" to "sh*-rtems". * gas/sh/pcrel-coff.d: Add -EB to objdump flags. * gas/vtable/vtable.exp: Don't run on linuxecoff. setup_xfail in preference to not running on ELF targets that might one day pass. Add more xfails. Add more targets to the REL list.
2002-08-14Catch attempts to create strings in the abs section.Nick Clifton2-0/+12
2002-08-14Only define TC_VALIDATE_FIX for ELF buildsNick Clifton1-0/+3
2002-08-14Fix compiling for COFF targets.Nick Clifton2-151/+162
Some minor formatting tidyups.
2002-08-142002-08-14 H.J. Lu <hjl@gnu.org>H.J. Lu4-3/+10
* gas/mips/elempic.d: Treat "addiu" and "daddiu" as equivalent when $0 is source. * gas/mips/telempic.d: Likewise. * gas/mips/telempic.d: Likewise.
2002-08-13 * gas/m68hc11/all.exp: Run the new test.Stephane Carrez13-536/+1265
* gas/m68hc11/insns12.s: New file to test specific 68HC12 insns. * gas/m68hc11/insns12.d: New file. * gas/m68hc11/branchs12.s: New test. * gas/m68hc11/branchs12.d: New test. * gas/m68hc11/all_insns.d: Dump the relocs to verify that they are against symbols and not sections (for linker relaxation). * gas/m68hc11/insns-dwarf2.d: Likewise. * gas/m68hc11/insns.d: Likewise. * gas/m68hc11/lbranch.d: Likewise. * gas/m68hc11/lbranch-dwarf2.d: Likewise. * gas/m68hc11/opers12.d: Likewise. * gas/m68hc11/opers12-dwarf2.d: Likewise.
2002-08-13 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.Stephane Carrez3-17/+161
(TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag according to the reloc. (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define. (TC_FORCE_RELOCATION): Define. (tc_m68hc11_force_relocation): Declare. * config/tc-m68hc11.c (md_pseudo_table): Add relax command. (s_m68hc11_relax): New function for relax group. (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at beginning of jump instruction. (md_pcrel_from): Rename from md_pcrel_from_section and fix address computation. (tc-gen_reloc): Update. (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as PC-relative fixup. (tc_m68hc11_force_relocation): New function, handle new relocs. (tc_m68hc11_fix_adjustable): New to make sure there are enough reloc for the linker relax pass. (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP and VTABLE relocs.
2002-08-13 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.Stephane Carrez3-0/+125
(md_pseudo_table): Add .mode, .far and .interrupt pseudo op. (s_m68hc11_mode): New function for .mode pseudo op. (s_m68hc11_mark_symbol): New function for .far and .interrupt pseudo op. * config/tc-m68hc11.h (elf_tc_final_processing): Define. (m68hc11_elf_final_processing): Declare.
2002-08-13 * config/tc-m68hc11.c (md_begin): Take into account additionalStephane Carrez2-37/+162
page operand for call instruction. (print_opcode_format): Likewise. (check_range): Likewise for page range checking. (get_operand): Don't skip a possible comma in operands. (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc. (fixup16): Likwise with BFD_RELOC_M68HC11_LO16. (fixup24): New to handle call reloc. (build_insn): Handle missing page operand for call instruction. (find): Likewise. (md_apply_fix3): Take into account new relocs. (get_operand): Fix the mode for indexed indirect addressing. (build_indexed_byte): Fix post index byte for indexed indirect mode.
2002-08-12[gas/]Richard Sandiford6-15/+42
* config/tc-mips.c (mips_ip): Don't work out the value of constant %hi()s here. [gas/testsuite/] * gas/mips/elf-consthilo.[sd]: New test. * gas/mips/mips.exp: Run it.
2002-08-10 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVORAlan Modra2-16/+36
for ELF, and don't bother checking ELF relocs when non-ELF. (i386_immediate): Allow absolute_section expressions for aout. (i386_displacement): Likewise. Also test bfd_is_com_section. (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF. (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel, not when fx_addsy. Remove dead code.
2002-08-09Add QNX Neutrino PowerPC support and common up QNX functionsNick Clifton3-169/+176
2002-08-09 * config/tc-i386.h: Reorganize.Alan Modra2-82/+83
2002-08-09* config/tc-mips.c (macro): Handle a register plus a 16-bitMaciej W. Rozycki4-1/+21
immediate offset in "dla" and "la" expansions. * gas/mips/empic.d: Treat "addiu" and "daddiu" as equivalent when $0 is source. * mips-opc.c (mips_builtin_opcodes): Remove "dla" and "la" as aliases to "daddiu" and "addiu".
2002-08-09 * configure.in: bfd_gas=yes for all i386 targets. Formatting.Alan Modra3-884/+798
Remove "bfd_gas=yes" from target table when covered later. Consolidate some entries. * configure: Regenerate