Alan Modra
d444b72608
* config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
...
(md_number_to_disp, md_number_to_field): Remove.
(md_apply_fix3): Correct format string and cast "fup".
2002-12-12 22:27:07 +00:00
Alan Modra
b9195351ad
* config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
...
(s_endian <ignore>): Likewise.
(md_undefined_symbol <name>): Likewise.
(tc_crawl_symbol_chain <headers>): Likewise.
(tc_set_bal_of_call): Likewise.
(tc_coff_symbol_emit_hook <symbolP>): Likewise.
(i960_handle_align <fragp>): Likewise.
(i960_validate_fix <this_segment_type>): Likewise
(tc_gen_reloc <section>): Likewise.
(tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
(struct memS, struct regop): Forward declare.
(brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
(md_chars_to_number, md_number_to_imm): Make static, prototype.
(md_number_to_field): Likewise.
(md_number_to_disp): Remove unused function.
(md_atof): Remove declaration of atof_ieee.
(md_apply_fix3): Correct md_number_to_imm call.
2002-12-12 22:25:00 +00:00
Alan Modra
64384dfd06
* config/tc-ip2k.c (md_assemble): Warning fix.
2002-12-12 22:21:04 +00:00
Alan Modra
78a0c6fb2d
* config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
...
(fill_insn <ignore>): Likewise.
(debug_sym <ignore>): Likewise.
(md_undefined_symbol <name>): Likewise.
(m32r_scomm <ignore>): Likewise.
(md_convert_frag <abfd>): Likewise.
(md_cgen_lookup_reloc <insn>): Likewise.
(m32r_record_hi16 <seg>): Likewise.
(md_estimate_size_before_relax): #if 0 old_fr_fix.
(allow_m32rx): Prototype.
(first_writes_to_seconds_operands): Prototype.
(writes_to_pc): Prototype.
(can_make_parallel): Prototype.
(make_parallel): Prototype.
(target_make_parallel): Prototype.
(assemble_two_insns): Prototype.
(m32r_record_hi16): Prototype.
(md_atof): Remove declaration of atof_ieee.
* config/tc-m32r.h (m32r_fix_adjustable): Declare.
(m32r_force_relocation): Prototype.
(m32r_elf_section_change_hook): Prototype.
2002-12-12 22:18:10 +00:00
Alan Modra
f1f5ef86e3
* config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
...
(md_show_usage): Fix signed/unsigned warning.
2002-12-12 22:16:16 +00:00
Alan Modra
38b9ac49eb
* config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
...
(calcop): Ditto for reg_prefix var.
(hexval): Add cast to fix signed/unsigned warning.
(md_number_to_disp): Delete unused function.
(md_number_to_field): Likewise.
(float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
(match_name): Prototype.
(get_bf2): Prototype.
(get_bf_offset_expression): Prototype.
2002-12-12 22:14:13 +00:00
Alan Modra
aa699a2caf
* config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
...
(md_undefined_symbol <ignore>): Likewise.
(md_create_short_jump <all args>): Likewise.
(md_create_long_jump <all args>): Likewise.
(md_convert_frag <abfd, sec>): Likewise.
(md_apply_fix3 <segment>): Likewise.
(md_section_align <segment>): Likewise.
(md_pcrel_from_section <sec>): Likewise.
(tc_gen_reloc <section>): Likewise.
(reg_m, reg_n, immediate): Delete unused vars.
(dump_literals): Fix signed/unsigned warning.
(enter_literal): Likewise.
(parse_imm): Likewise. Also fix format string.
(parse_mem): Remove unused var.
(md_assemble <LS>): Abort on unexpected inst.
(md_atof): Remove declaration of atof_ieee.
(md_parse_option): Remove unused vars.
(md_apply_fix3): Fix format strings, cast args.
(tc_gen_reloc): Delete unused var.
* config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2002-12-12 22:11:32 +00:00
Alan Modra
2a8ce8da88
* config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
...
(md_undefined_symbol <name>): Likewise.
(md_convert_frag <abfd>): Likewise.
(tc_gen_reloc <seg>): Likewise.
(check_operand <insn>): Likewise.
(md_convert_frag): Fix format strings.
(tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2002-12-12 22:09:12 +00:00
Alan Modra
717acf4b26
* config/tc-openrisc.c (ignore_pseudo): Prototype.
...
(md_atof): Remove declaration of atof_ieee.
* config/tc-or32.c (parse_operand): Prototype non-BFD too.
(md_apply_fix3): Fix bogus >>='s.
(md_undefined_symbol): Delete unused var.
2002-12-12 22:05:00 +00:00
Alan Modra
0e073f4ce8
* pj.h (pj_opc_info_t): Add union.
...
* pj-dis.c (print_insn_pj): Adjust for pj_opc_info_t change.
* config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
(c_to_r, ipush_code, fake_opcode, alias): Likewise.
(fake_opcode): Adjust for pj_opc_int_t change.
(md_begin): Likewise.
(md_assemble): Likewise.
(ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
instead of non-existent third arg of parse_exp_save_ilp.
(md_parse_option): Correct "little" and "big" calls.
2002-12-12 21:52:06 +00:00
Alan Modra
a798260029
* config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
...
(md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
(tc_gen_reloc <section>): Likewise.
2002-12-12 21:37:36 +00:00
Alan Modra
167795c452
* config/tc-tic30.c: #include stdarg.h or varargs.h.
...
(debug): Rewrite using VA_* macros.
(md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
(md_convert_frag): Likewise.
(md_parse_option): Likewise.
(md_show_usage): Likewise.
(md_undefined_symbol): Likewise.
(tc_gen_reloc): Likewise.
(md_operand): Likewise.
(tc_aout_pre_write_hook): Delete.
(struct tic30_insn): Make "operands" unsigned.
(struct tic30_par_insn): Likewise.
(md_assemble): Likewise for "count", "i" and "numops".
(tic30_parallel_insn): Likewise for vars here.
(tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
* config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
* config/tc-tic80.c (obj_coff_section): Delete declaration.
(md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
(md_undefined_symbol): Likewise.
(md_parse_option): Likewise.
(md_convert_frag): Likewise.
(tc_coff_symbol_emit_hook): Likewise.
(md_atof): Remove declaration of atof_ieee.
(const_overflow): Warning fixes, tidy.
(get_operands): Delete unused vars.
(internal_error_a): Adjust format string to expect a long for arg.
(find_opcode): Warning fixes, simplify.
(build_insn): Cast internal_error_a arg.
(md_begin): Likewise.
(md_apply_fix3): Likewise.
(md_assemble): Delete unused var.
* config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2002-12-12 21:34:53 +00:00
Alan Modra
78a33af2ee
* config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
...
(whatreg, parse_reg, parse_exp): Make static, prototype.
(checkfor, regword, regaddr, get_ctrl_operand): Prototype.
(get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
(get_operand, get_operands, get_specific, newfix): Likewise.
(apply_fix, build_bytes): Likewise.
(md_atof): Remove declaration of atof_ieee.
(tc_aout_fix_to_chars): Delete.
(md_begin): Constify "opcode". Don't try to init opcode->idx.
Fix s_unseg call.
(md_parse_option): Fix s_segm and s_unseg calls.
* z8kgen.c: Include "libiberty.h".
(opt, args, toks): Fix initializer warnings.
(chewname): Make "name" a char **. Return mnemonic trimmed of
operands.
(gas): Improve emitted "DO NOT EDIT" warning. Format emitted
opcode_entry_type, and make "nicename" and "name" const. Make
z8k_table const too. Formatting. Generate idx as gas needs it.
* z8k-opc.h: Regenerate.
2002-12-12 21:27:58 +00:00
Alexandre Oliva
6f171daac9
* gas/mips/beq.d: Comment out branches to undefined symbols,
...
no longer supported.
* gas/mips/beq.s: Likewise.
* gas/mips/bge.d: Likewise.
* 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/mips.exp: Change branch-misc-2 test to run_list_test.
* gas/mips/branch-misc-2.d: Removed.
* gas/mips/branch-misc-2.s: Added branches to undefined symbols.
* gas/mips/branch-misc-2.l: New.
2002-12-12 04:40:22 +00:00
Alexandre Oliva
af6ae2ade7
* tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
...
Adjust callers.
(RELAX_BRANCH_RELOC_S2): Delete.
(append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
Do not handle BFD_RELOC_16_PCREL.
(macro_build, mips_ip): Likewise.
(md_pcrel_from): Return 4 for undefined symbols regardless of
mips_pic.
(md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
Don't dereference howto if no such relocation is available.
Do not apply hack for in-place zero addend in NEWABI.
(md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2002-12-12 04:40:07 +00:00
Alexandre Oliva
074d08b041
Alan Modra <amodra@bigpond.net.au>
2002-12-12 04:32:07 +00:00
Alexandre Oliva
497f322d4d
* config/tc-mn10300.c (set_arch_mach): Change argument type to
...
avoid warnings.
(r_register_name, xr_register_name): Add prototype declarations.
2002-12-12 03:16:33 +00:00
Aldy Hernandez
f56074d698
2002-12-09 Aldy Hernandez <aldyh@redhat.com>
...
* gas/ppc/booke.d: Fix msync and mbar to reflect reality.
* gas/ppc/e500.d: Fix m[tf]pmr to reflect reality.
2002-12-10 00:42:53 +00:00
H.J. Lu
ffbceea9fb
2002-12-08 H.J. Lu <hjl@gnu.org>
...
* config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
copied from tc-i386.c.
2002-12-08 21:25:38 +00:00
Stephane Carrez
f39f5da9e6
* gas/m68hc11/m68hc11.exp (gas_m68hc11_error): New function;
...
(gas_m68hc11_warning): New function.
(gas_m68hc11_message): New function.
(top): New tests for assembler errors.
(gas_m68hc11_opcode_list): New function.
(top): New tests for opcode list.
2002-12-08 21:23:42 +00:00
Stephane Carrez
5da0c2771a
* gas/m68hc11/bug-1825.s: Add some tests.
...
* gas/m68hc11/bug-1825.d: Update.
* gas/m68hc11/opers12.d: Update.
* gas/m68hc11/opers12-dwarf2.d: Update.
2002-12-08 21:08:07 +00:00
Stephane Carrez
75538612b6
* config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
...
(md_relax_table): Define specific relax for PC-rel offsets.
(build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
(m68hc11_relax_frag): Handle the new relax code.
(md_convert_frag): Likewise.
(md_estimate_size_before_relax): Likewise.
2002-12-08 20:47:21 +00:00
Alan Modra
546c73f905
* subsegs.c (section_symbol): Use the symbol, not the section, name.
2002-12-08 03:47:57 +00:00
Richard Henderson
fa2c7effe7
* config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
...
(ia64_gen_real_reloc_type): Handle it.
(pseudo_func): Add @ltoffx.
(md_begin): Build .<ltoffx>.
(ia64_force_relocation): True for LTOFF22X and LDXMOV.
* gas/ia64/ltoff22x-1.[ds]: New.
* gas/ia64/ia64.exp: Run it.
2002-12-05 23:20:40 +00:00
Jim Wilson
d070dab9db
Fix IA-64 opc-d.x gas testsuite failure.
...
binutils/ChangeLog
* configure.in (OBJDUMP_DEFS): Define SKIP_ZEROES as 16 for IA-64.
* configure: Regenerate.
gas/testsuite/ChangeLog
* gas/ia64/opc-x.d: Regenerate.
2002-12-05 18:33:27 +00:00
Alan Modra
cb4eb3678d
* gas/arm/adrl.s: Pad end of .text.
...
* gas/arm/adrl.d: Adjust to suit.
2002-12-05 11:47:16 +00:00
Alan Modra
114424c6b3
* config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
...
Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
* config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
COFF to call arm_force_relocation.
2002-12-05 11:46:50 +00:00
Jim Wilson
c10d9d8fc3
Patch to update IA-64 port to SDM 2.1.
...
bfd/ChangeLog
* cpu-ia64-opc.c: Add operand constant "ar.csd".
gas/ChangeLog
* config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
instruction.
(emit_one_bundle): Handle "hint" instruction.
(operand_match): Match IA64_OPND_AR_CSD.
gas/testsuite/ChangeLog
* gas/ia64/opc-b.d: Update for instructions added by SDM2.1.
* gas/ia64/opc-b.s: Ditto.
* gas/ia64/opc-f.d: Ditto.
* gas/ia64/opc-f.s: Ditto.
* gas/ia64/opc-i.d: Ditto.
* gas/ia64/opc-i.s: Ditto.
* gas/ia64/opc-m.d: Ditto.
* gas/ia64/opc-m.s: Ditto.
* gas/ia64/opc-x.d: Ditto.
* gas/ia64/opc-x.s: Ditto.
include/opcode/ChangeLog
* ia64.h: Fix copyright message.
(IA64_OPND_AR_CSD): New operand kind.
opcodes/ChangeLog
* ia64-opc-d.c (ia64_opcodes_d): Add "hint" instruction.
* ia64-opc-b.c: Add "hint.b" instruction.
* ia64-opc-f.c: Add "hint.f" instruction.
* ia64-opc-i.c: Add "hint.i" instruction.
* ia64-opc-m.c: Add "hint.m", "fc.i", "ld16", "st16", and
"cmp8xchg16" instructions.
* ia64-opc-x.c: Add "hint.x" instruction.
* ia64-opc.h (AR_CSD): New macro.
* ia64-ic.tbl: Update according to SDM2.1.
* ia64-raw.tbl: Ditto.
* ia64-waw.tbl: Ditto.
* ia64-gen.c (in_iclass): Handle "hint" like "nop".
(lookup_regindex): Recognize AR[FCR], AR[EFLAG], AR[CSD],
AR[SSD], AR[CFLG], AR[FSR], AR[FIR], and AR[FDR].
* ia64-asmtab.c: Regenerate.
2002-12-05 02:08:02 +00:00
Alan Modra
c8970b4ba4
* dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
...
inside #if.
2002-12-04 01:03:05 +00:00
Nick Clifton
6b0817e5ee
Fix typo in ChangeLog entry.
...
Add paranoia checks to .PPC.EMB.apuinfo merging code.
2002-12-03 18:52:45 +00:00
Nick Clifton
e1a9cb8e15
Fix the merging of .PPC.EMB.apuinfo sections. Add a test to make sure that
...
the fix continues to work.
2002-12-03 18:24:33 +00:00
Richard Henderson
a823923bf6
include/opcode/
...
* ia64.h (enum ia64_opnd): Add IA64_OPND_LDXMOV.
bfd/
* cpu-ia64-opc.c (elf64_ia64_operands): Add ldxmov entry.
opcodes/
* ia64-opc-m.c: Add ld8.mov.
* ia64-asmtab.c: Regenerate.
gas/
* config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
gas/testsuite/
* gas/ia64/ldxmov-1.[ds]: New.
* gas/ia64/ldxmov-2.[ls]: New.
* gas/ia64/ia64.exp: Run them.
2002-12-03 18:15:48 +00:00
Alan Modra
6297c1fede
* config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
...
(cons, s_align_bytes): Delete declaration.
(relax): Delete.
(md_begin): Constify "struct opinfo *" var. Don't try to make "name"
strings common.
(dot): Delete unused function.
(w65_expression): Remove unused arg.
(parse_exp): Prototype. Remove unused arg. Adjust w65_expression
call.
(get_operands): Prototype. Constify "struct opinfo *" arg. Fix
parse_exp call.
(get_specific): Prototype. Constify "struct opinfo *" arg and return
value.
(check): Remove unused function.
(build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
on unhandled switch case.
(md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
"opcode".
(tc_crawl_symbol_chain): Delete unused function.
(tc_headers_hook): Likewise.
(tc_Nout_fix_to_chars): Likewise.
(md_undefined_symbol): Add ATTRIBUTE_UNUSED.
(md_parse_option): Likewise.
(md_convert_frag): Likewise.
(tc_coff_symbol_emit_hook): Likewise.
(md_show_usage): Likewise.
* config/tc-w65.h (tc_coff_sizemachdep): Declare.
(TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
(w65_expression): Declare.
* po/POTFILES.in: Regenerate.
2002-12-03 12:01:45 +00:00
Alan Modra
dc8ec78b76
* gas/arm/adrl.s: Test behaviour against globals too.
...
* gas/arm/adrl.d: Adjust.
2002-12-03 11:28:33 +00:00
Alan Modra
61b5f74bdb
* config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
...
and ARM_ADRL_IMMEDIATE.
2002-12-03 11:27:26 +00:00
Nick Clifton
fea179166e
Remove GASP.
2002-12-02 15:42:15 +00:00
Hans-Peter Nilsson
4c83186b76
Fix typo last entry
2002-12-02 07:20:29 +00:00
Hans-Peter Nilsson
dc59a89726
* read.c (emit_expr) [WORKING_DOT_WORD]: Initialize x->use_jump.
2002-12-02 07:18:53 +00:00
Stephane Carrez
27bdea3da4
* gas/m68hc11/m68hc11.exp: Rename from all.exp; run the new tests.
...
* gas/m68hc11/all.exp: Remove.
* gas/m68hc11/indexed12.d: New test.
* gas/m68hc11/indexed12.s: Likewise.
* gas/m68hc11/bug-1825.d: Likewise.
* gas/m68hc11/bug-1825.s: Likewise.
2002-12-01 14:32:48 +00:00
Stephane Carrez
c17aa364e9
* gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdump
...
can find the real symbol and not a gas internal debug symbol.
* gas/m68hc11/insns.d: Update.
* gas/m68hc11/insns-dwarf2.d: Update.
* gas/m68hc11/insns12.d: Update.
* gas/m68hc11/opers12.s (min5b, min9b): Use 16 and -256 for the min.
* gas/m68hc11/opers12.d: Update after indexed offset operand fixes.
* gas/m68hc11/opers12-dwarf2.d: Likewise.
2002-12-01 14:25:09 +00:00
Stephane Carrez
49fa082dde
* gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdump
...
can find the real symbol and not a gas internal debug symbol.
* gas/m68hc11/insns.d: Update.
* gas/m68hc11/insns-dwarf2.d: Update.
* gas/m68hc11/insns12.d: Update.
* gas/m68hc11/opers12.s (min5b, min9b): Use 16 and -256 for the min.
* gas/m68hc11/opers12.d: Update after indexed offset operand fixes.
* gas/m68hc11/opers12-dwarf2.d: Likewise.
2002-12-01 13:46:08 +00:00
Stephane Carrez
1910266d61
* config/tc-m68hc11.c (md_begin): Fix qsort warning.
...
(tc_gen_reloc): Mark section param as not used.
2002-12-01 11:19:31 +00:00
Stephane Carrez
c9e03e8be9
Fix Bug savannah/1825:
...
* config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
that are not pc-relative.
(m68hc11_relax_frag): Declare.
* config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
the offsetable indexed addressing modes (n,r).
(build_insn): Cleanup some locals.
(m68hc11_relax_frag): New function imported from tc-cris.c to handle
relaxation of difference between two symbols of same section.
(md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
only when this is a PC-relative operand and the offset is not absolute.
(md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
be handled by m68hc11_relax_frag.
2002-12-01 11:02:10 +00:00
Stephane Carrez
2f9046641f
* config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
...
(32-bit int, 64-bit double).
(md_longopts): New options -mshort, -mlong, -mshort-double and
-mlong-double to control the ABI.
(md_show_usage): Update.
(md_parse_option): Handle new options.
* doc/as.texinfo (Overview): Document new options for HC11/HC12.
2002-12-01 10:20:06 +00:00
Alan Modra
0909233e0f
* symbols.c (report_op_error): New function, broken out of ...
...
(resolve_symbol_value): ... here. Use for both monadic and dyadic
operators.
2002-12-01 03:18:49 +00:00
Kaz Kojima
0174e383ca
* config/tc-sh.c (md_apply_fix3): Take account of fx_offset
...
for BFD_RELOC_32_PLT_PCREL.
* sh/gas/sh/pic.s: Add a test for ".long foo@PLT+.-2-label".
* sh/gas/sh/pic.d: Add expected output.
2002-11-30 14:09:12 +00:00
Alan Modra
b34976b65a
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
...
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-30 08:39:46 +00:00
Nick Clifton
143c8e19b4
Allow BKPT instruction to be specified without an operand. Add a test for this.
2002-11-29 21:00:50 +00:00
Kaz Kojima
2bba414012
* config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
...
for TLS relocations.
2002-11-28 23:57:59 +00:00
Jakub Jelinek
7925dd68c9
* config/tc-ia64.c (md_apply_fix3): Add default case.
2002-11-28 23:32:59 +00:00
Jakub Jelinek
00f7efb6cc
* symbols.c (S_SET_THREAD_LOCAL): New function.
...
* symbols.h (S_SET_THREAD_LOCAL): New prototype.
* config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
for TLS relocations.
* config/tc-ia64.c (md_apply_fix3): Likewise.
* config/tc-alpha.c (md_apply_fix3): Likewise.
* ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols.
2002-11-28 14:15:55 +00:00
Jakub Jelinek
381a1ab30c
* write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
...
to entsize.
2002-11-28 14:13:51 +00:00
DJ Delorie
a3b7543479
* dwarf2dbg.c (scale_addr_delta): New.
...
(size_inc_line_addr): Use it.
(emit_inc_line_addr): Use it.
2002-11-26 21:55:15 +00:00
Hans-Peter Nilsson
fb2fd3e12c
* config/tc-cris.c (cris_relax_frag): Fix typo in comment.
...
(md_assemble): Don't pass on branches to constants as relaxable.
Tweak comment.
2002-11-26 08:21:35 +00:00
Hans-Peter Nilsson
c79b382e06
* gas/cris/rd-bcnst.d, gas/cris/rd-bcnst.d: New test.
2002-11-26 08:19:09 +00:00
DJ Delorie
d12e3de5e4
* gas/xstormy16/allinsn.d: Fix sdiv/sdivlh encodings.
2002-11-25 21:15:41 +00:00
Svein Seldal
da91385db3
* gas/config/tc-tic4x.c (c4x_operands_match): Bugfix in direct
...
mode
2002-11-25 09:01:30 +00:00
Dave Anglin
1d4216362a
* config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
...
only if they have default visibility.
2002-11-21 19:06:28 +00:00
Richard Henderson
33bf47a8fe
* config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
...
S_IS_DEFINED test.
2002-11-21 18:56:06 +00:00
Alan Modra
5f8075fa81
* config/tc-mcore.c (mcore_pool_count): New function.
...
(mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2002-11-21 11:43:40 +00:00
Klee Dienes
5ff3743120
2002-11-20 Klee Dienes <kdienes@apple.com>
...
* config/tc-mcore.c (md_begin): Use a const iterator. Don't
coalesce the name fields to use the same pointer.
* config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
the name fields to use the same pointer.
(get_specific): Check for opcodes with the same name using strcmp
as well as comparing the pointer.
2002-11-21 09:54:12 +00:00
Alan Modra
5045ec7ae4
* write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
...
fx_subsy non-NULL.
2002-11-20 12:56:01 +00:00
DJ Delorie
c8014bda54
* gas/xstormy16/allinsn.sh: Add sdiv, divlh, and sdivlh.
...
* gas/xstormy16/allinsn.d: Regenerate.
* gas/xstormy16/allinsn.s: Regenerate.
2002-11-20 03:14:47 +00:00
Alan Modra
bbce6ab74a
move testsuite entries to the correct changelog
2002-11-20 02:50:28 +00:00
Richard Henderson
20e420c2ed
* config/obj-elf.c (obj_elf_visibility): Overwrite only the
...
visibility portion of st_other.
2002-11-20 02:39:21 +00:00
Klee Dienes
a720f7bca7
2002-11-19 Klee Dienes <kdienes@apple.com>
...
* config/tc-h8300.c (struct h8_instruction): New type, used to
wrap h8_opcodes with length, noperands, idx, and size fields
(computed at run-time).
(h8_instructions): New variable.
(md_begin): Allocate the storage for h8_instructions. Fill
h8_instructions with pointers to the appropriate opcode and the
correct value for the additional fields.
(clever_message): Update to use h8_instructions instead of
h8_opcodes.
(build_bytes): Ditto.
(get_specific): Ditto.
(md_assemble): Ditto.
2002-11-19 22:56:42 +00:00
Martin Schwidefsky
0a00dd4807
* config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
...
adjustments to symbols in merge sections.
2002-11-19 14:58:54 +00:00
Alan Modra
81283cde50
* config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2002-11-19 07:32:28 +00:00
Kevin Buettner
14e777e044
Add support for 64-bit DWARF 2 formats to gas.
2002-11-18 21:08:54 +00:00
Alexandre Oliva
a816d1ed6a
* config/tc-mips.c (s_change_section): Make sure input buffer
...
is not accessed past the end. Don't hand
obj_elf_change_section a pointer into the input buffer.
2002-11-18 20:45:48 +00:00
Alexandre Oliva
6b70243f72
* config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
...
GOT_LO16 on NEWABI.
2002-11-18 20:41:03 +00:00
Svein Seldal
eb1284494b
Fixups in ChangeLog entries which has been filed in the wrong place.
2002-11-18 14:00:44 +00:00
Svein Seldal
9c87d6c7e4
* gas/config/tc-tic4x.c: Fixed proper commandline
...
parameters. Added support for new opcode-list format. General
error message fixups.
(c4x_inst_add): Reject insn not for our CPU
(md_begin): Added matrix for setting the proper opcode-level &
device-flags according to cpu type and revision. Rewrite the
opcode hasher.
(c4x_operand_parse): Fix opcode bug
(c4x_operands_match): New function argument. Added dry-run
mechanism, that is optional error generation. Added constraint 'i'
and 'j'.
(c4x_insn_check): Added new function for post-verification of the
generated insn.
(md_assemble): Check all opcodes before croaking because of an
argument mismatch. Need this to be able to fully support
ortogonally arguments.
(md_parse_options): Revised commandprompt swicthes and added new
ones.
(md_show_usage): Complete rewrite of printout.
* gas/testsuite/gas/tic4x/addressing.s: Fix bug in one insn
* gas/testsuite/gas/tic4x/addressing_c3x.d: Update thereafter
* gas/testsuite/gas/tic4x/addressing_c4x.d: Update thereafter
* gas/testsuite/gas/tic4x/allopcodes.S: Add support for new
opclass.h changes
* gas/testsuite/gas/tic4x/opclasses.h: Added testsuites for
the new enhanced opcodes.
* gas/testsuite/gas/tic4x/opcodes.s: Regenerate
* gas/testsuite/gas/tic4x/opcodes_c3x.d: Update from above
* gas/testsuite/gas/tic4x/opcodes_c4x.d: Update from above
* gas/testsuite/gas/tic4x/opcodes_new.d: Added new testsuite for
the enhanced and special insns.
* gas/testsuite/gas/tic4x/tic4x.exp: Added the opcodes_new testsuite
* include/opcode/tic4x.h: File reordering. Added enhanced opcodes.
* opcodes/tic4x-dis.c: Added support for enhanced and special
insn.
(c4x_print_op): Added insn class 'i' and 'j'
(c4x_hash_opcode_special): Add to support special insn
(c4x_hash_opcode): Update to support the new opcode-list
format. Add support for the new special insns.
(c4x_disassemble): New opcode-list support.
2002-11-18 09:09:35 +00:00
Svein Seldal
48c5eb8a70
TIC4X testcase commit
...
* binutils/testsuite/binutils-all/objcopy.exp: Disable tic4x
from test
* binutils/testsuite/binutils-all/objdump.exp: Setup proper
values for tic4x testcase
* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
* gas/testsuite/gas/macros/macros.exp: Ditto
* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
* gas/testsuite/gas/macros/macros.exp: Ditto
* gas/testsuite/gas/tic4x: New tic4x gas testsuite directory
* ld/testsuite/ld-scripts/script.exp: Setup for tic4x testcase
2002-11-18 08:28:44 +00:00
Svein Seldal
44287f6039
* gas/config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
...
(c4x_operands_match): Added check for 8-bits LDF insn. Give
warning when using constant direct bigger than 2^16. Add the new
arguments.
* include/opcode/tic4x.h: Major rewrite of entire file. Define
instruction classes, and put each instruction into a class.
* opcodes/tic4x-dis.c: (c4x_print_op): Add support for the new
argument format. Fix bug in 'N' register printer.
2002-11-16 12:23:23 +00:00
Alan Modra
852f55ac64
* gas/ppc/booke.d: Adjust output for corrected condition reg.
2002-11-12 04:04:13 +00:00
Christopher Faylor
591d46894b
* configure.in: Use .gdbinit under Cygwin.
...
* configure: Regenerate.
2002-11-11 17:21:33 +00:00
Christopher Faylor
1a89f85f47
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if STRICT_PE_FORMAT.
2002-11-11 17:11:53 +00:00
Svein Seldal
98199d8f1c
* Makefile.am: Added tic4x dependecy
...
* Makefile.in: Regenerate
2002-11-11 14:58:49 +00:00
Svein Seldal
247b1fe610
gas tic4x target enhancements (long list - see gas/ChangeLog and
...
include/ChangeLog)
2002-11-11 14:29:01 +00:00
Hans-Peter Nilsson
9df59bba97
* macro.c (get_any_string): Correct logic for not going beyond end
...
of in->ptr[].
2002-11-11 08:42:52 +00:00
Hans-Peter Nilsson
480c8d9474
* config/tc-mmix.c (get_putget_operands): Mark both possible
...
operands as invalid at beginning.
2002-11-10 18:35:51 +00:00
Hans-Peter Nilsson
32c27eed9c
* config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
...
Initialize target of fixup to zero.
2002-11-10 13:09:11 +00:00
Nick Clifton
b46c169191
Only run fastcall test for x86 PE targets.
2002-11-07 09:20:10 +00:00
Alexandre Oliva
78e1bb4045
* config/tc-mips.c (macro_build_lui): _gp_disp is not special on
...
NEWABI, but we should still emit HI16_S for non-PIC n32.
2002-11-07 02:29:32 +00:00
Richard Henderson
66ba4c770b
* config/tc-alpha.c (alpha_validate_fix): Move code ...
...
(alpha_fix_adjustable): ... here.
* config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2002-11-07 00:42:19 +00:00
Nick Clifton
c9e3887989
Adds support for fastcall symbols as used on Microsoft Windows platforms
...
(i386)
2002-11-06 19:36:20 +00:00
H.J. Lu
aa3d8fdff8
2002-11-05 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (support_64bit_objects): Check *l before it
is freed.
2002-11-05 21:53:13 +00:00
Nick Clifton
e96c546430
Set SEC_DATA and SEC_LOAD flags for sections marked as 's'.
2002-11-04 16:10:56 +00:00
H.J. Lu
4dd8d67b6a
2002-11-01 H.J. Lu <hjl@gnu.org>
...
* gas/i386/i386.exp: Add "sub".
* gas/i386/sub.d: New.
* gas/i386/sub.s: New.
2002-11-01 20:41:48 +00:00
Alan Modra
4f3cafa2eb
* write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
...
(TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
* doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
default.
2002-11-01 10:42:26 +00:00
Alan Modra
4d0b322074
* dep-in.sed: Fix typo.
2002-11-01 10:35:43 +00:00
Daniel Jacobowitz
54847c7622
* configure.in: Update ARM CPU patterns.
...
* configure: Regenerated.
2002-10-30 17:05:41 +00:00
Daniel Jacobowitz
3d82a647ca
* itbl-lex.l: Use #include <> for generated headers.
...
* itbl-ops.c: Likewise.
2002-10-30 03:56:39 +00:00
Daniel Jacobowitz
b1744eabdd
* doc/gasp.texi: Fix typo in deprecation note.
2002-10-28 15:44:08 +00:00
Nick Clifton
8df7094c00
Allow an absolute reference to _GLOBAL_TABLE_OFFSET_ to be converted into
...
a GOT reloc.
2002-10-23 10:34:18 +00:00
Hans-Peter Nilsson
1cd2bb725b
Fix typo in last entry
2002-10-23 05:23:57 +00:00
Hans-Peter Nilsson
3a99b99035
* config/tc-mmix.h (tc_frob_file_before_adjust): Don't declare.
...
(tc_frob_file_before_adjust): Don't define.
* config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
function.
(mmix_frob_file_before_adjust): Remove ineffective function.
2002-10-23 05:21:09 +00:00
H.J. Lu
3d4a853f67
2002-10-22 H.J. Lu <hjl@gnu.org>
...
* gas/mips/branch-misc-2.d: Updated.
2002-10-23 03:11:47 +00:00
Hans-Peter Nilsson
1c97116001
* config/tc-cris.c (SIMPLE_EXPR): New macro.
...
(cris_relax_frag): New function.
(md_estimate_size_before_relax) <case ENCODE_RELAX
(STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
expressions that will become absolute expressions to relaxation.
(md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
STATE_WORD)>: Expect only absolute expressions. Use the symbol
value, not distance to symbol.
<case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
Ditto. Correct placement of fixup.
(md_assemble): Use SIMPLE_EXPR when dissecting expressions.
(gen_bdap): Ditto.
* config/tc-cris.h (cris_relax_frag): Declare.
(md_relax_frag): Define.
2002-10-22 23:45:40 +00:00
Hans-Peter Nilsson
c84e511732
* gas/cris/rd-pcrel1.d, gas/cris/rd-pcrel1.s,
...
gas/cris/rd-pcrel2.d, gas/cris/rd-pcrel2.s: New tests.
2002-10-22 23:15:59 +00:00
Alan Modra
7ed1d3463e
* config/obj-elf.c (special_sections): Use correct types for init
...
array sections.
(obj_elf_change_section): Don't mess with init array section type.
2002-10-22 10:56:45 +00:00
Richard Sandiford
631cb423b2
* config/tc-mips.c (mips_need_elf_addend_fixup): Return true
...
for relocs against symbols in a merged section.
testsuite/
* gas/mips/elf-rel7.[sd]: New test.
* gas/mips/mips.exp: Run it.
2002-10-21 14:59:30 +00:00
Alexandre Oliva
6047c971a2
* config/tc-mips.c (md_begin): Add $fcc registers to the symbol
...
table as register names.
2002-10-19 00:37:50 +00:00
Martin Schwidefsky
75504fede8
* config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
...
for option -m31.
2002-10-18 07:30:06 +00:00
Alan Modra
0200099915
* expr.c (operand): Add support for n.nn flonums.
2002-10-18 01:56:39 +00:00
Alan Modra
311797d555
* itbl-parse.y (entry): Provide empty action.
2002-10-17 01:29:36 +00:00
Alan Modra
4001ad8ce4
* configure.in (BFDVER_H): Set and subst.
...
* dep-in.sed: Replace bfdver.h with $(BFDVER_H).
* Makefile.am: Run "make dep-am".
(BFDVER_H): Define.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
2002-10-16 13:27:04 +00:00
Alan Modra
3ca4bdc352
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
...
(MD_APPLY_SYM_VALUE): Define for PE too.
2002-10-15 02:20:53 +00:00
Alan Modra
b95d15c6c5
* Makefile.am: Run "make dep-am".
...
(CPU_OBJ_VALID): sh64 coff is invalid.
* as.c: #include "bfdver.h".
* Makefile.in: Regenerate.
* config.in: Regenerate.
2002-10-14 12:08:47 +00:00
Alan Modra
ec266e19eb
* config/tc-v850.c (CHECK_): Remove token pasting operator.
2002-10-14 11:28:57 +00:00
Richard Sandiford
8f6847cbf4
* configure.in (mips64vr-elf, mips64vrel-elf): New config.
...
* configure: Regenerate.
2002-10-14 06:59:06 +00:00
Alexandre Oliva
10181a0dce
* config/tc-mips.c (s_gpdword): New function.
...
(mips_pseudo_table): Add .gpdword.
(mips_need_elf_addend_fixup): never for NEWABI.
(md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
GPREL32 as done.
(s_cpadd): Generate .cpadd on NEWABI.
2002-10-13 21:22:49 +00:00
Alan Modra
49181a6af7
* config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2002-10-12 10:23:17 +00:00
Alexandre Oliva
63d0b39325
* gas/mips/mips.exp: Don't xfail relax.
...
* gas/mips/relax.s: Increase coverage.
* gas/mips/relax.d: Add expected output. Use relax.l for as stderr.
* gas/mips/relax.l: New file.
2002-10-12 05:26:56 +00:00
Alexandre Oliva
4a6a3df43d
* config/tc-mips.h (mips_relax_frag): Take segment as argument.
...
(md_relax_frag): Adjust macro.
* config/tc-mips.c (mips_relax_branch): New variable.
(RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
(RELAX_MIPS16_P): Adjust.
(append_insn): Emit branch to non-constant in a frag_var if
branch-relaxation is desirable and possible.
(OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
(OPTION_ELF_BASE): Adjust.
(md_parse_option): Handle new options.
(md_apply_fix3): Update comment on EMBEDDED_PIC conditional
branch relaxation.
(relaxed_branch_length): New function.
(md_estimate_size_before_relax): Handle branch frags.
(mips_relax_frag): Likewise.
(md_convert_frag): Handle branch frags. Warn if branch is
relaxed.
2002-10-12 05:23:33 +00:00
Kaz Kojima
94a03f18b8
* gas/sh/tlsd.s, gas/sh/tlsd.d: New.
...
* gas/sh/tlsnopic.s, gas/sh/tlsnopic.d: New.
* gas/sh/tlspic.s, gas/sh/tlspic.d: New.
* gas/sh/basic.exp: Add new tests.
2002-10-11 14:42:51 +00:00
Kaz Kojima
9efb3b7baf
* config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
...
emitted.
(md_apply_fix3): Add TLS relocs.
(sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
@DTPOFF.
2002-10-11 14:34:46 +00:00
Alan Modra
3e02c1cc58
* config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
...
(md_estimate_size_before_relax): Likewise for 8 bit branches.
2002-10-11 00:25:32 +00:00
Joern Rennecke
ac62e7a368
* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
...
inside loop.
2002-10-10 13:37:32 +00:00
Stephen Clarke
42bf09b2b1
* gas/elf.exp: Don't run for sh64*-*-linux*, because it sets the
...
lsb in SHmedia code addresses.
* gas/sh/basic.exp: Force SHcompact for sh64*-*-linux* to enable
recognition of SH-1/2/3/4 instructions.
(proc do_fp): Do not run dsp tests for sh64*-*-linux*.
* gas/sh/sh64/abi-32.d: Adjust expected output to include
sh64*-*-linux* formats too.
* gas/sh/sh64/abi-64.d, gas/sh/sh64/basic-1.d,
gas/sh/sh64/case-1.d, gas/sh/sh64/case-noexp-1.d,
gas/sh/sh64/crange1-1.d, gas/sh/sh64/crange1-2.d,
gas/sh/sh64/crange2-1.d, gas/sh/sh64/crange2-2.d,
sh/sh64/crange2-noexp-1.d, gas/sh/sh64/crange3-1.d,
gas/sh/sh64/crange4-1.d, gas/sh/sh64/crange5-1.d,
gas/sh/sh64/creg-1.d, gas/sh/sh64/creg-2.d, gas/sh/sh64/datal-2.d,
gas/sh/sh64/datal32-1.d, gas/sh/sh64/datal32-3.d,
gas/sh/sh64/datal64-1.d, gas/sh/sh64/datal64-3.d,
gas/sh/sh64/endian-1.d, gas/sh/sh64/endian-2.d,
gas/sh/sh64/err-noexp-cmd1.s, gas/sh/sh64/immexpr32-1.d,
gas/sh/sh64/immexpr32-2.d, gas/sh/sh64/immexpr64-1.d,
gas/sh/sh64/immexpr64-2.d, gas/sh/sh64/lineno.d,
gas/sh/sh64/localcom-1.d, gas/sh/sh64/mix-1.d,
gas/sh/sh64/mix-noexp-1.d, gas/sh/sh64/movi-3.d,
gas/sh/sh64/movi32-1.d, gas/sh/sh64/movi32-2.d,
gas/sh/sh64/movi32-noexp-2.d, gas/sh/sh64/movi64-1.d,
gas/sh/sh64/movi64-2.d, gas/sh/sh64/movi64-3.d,
gas/sh/sh64/movi64-noexp-2.d, gas/sh/sh64/pt-1.d,
gas/sh/sh64/pt-noexp-1.d, gas/sh/sh64/pt32-1.d,
gas/sh/sh64/pt32-noexp-2.d, gas/sh/sh64/pt64-1.d,
gas/sh/sh64/pt64-32-1.d, gas/sh/sh64/pt64-32-2.d,
gas/sh/sh64/pt64-noexp-2.d, gas/sh/sh64/ptc32-1.d,
gas/sh/sh64/ptc32-noexp-1.d, gas/sh/sh64/ptc64-1.d,
gas/sh/sh64/ptc64-32-1.d, gas/sh/sh64/ptc64-noexp-1.d,
gas/sh/sh64/ptext32-1.d, gas/sh/sh64/ptext32-noexp-1.d,
gas/sh/sh64/ptext64-1.d, gas/sh/sh64/ptext64-32-1.d,
gas/sh/sh64/ptext64-noexp-1.d, gas/sh/sh64/rel32-1.d,
gas/sh/sh64/rel32-2.d, gas/sh/sh64/rel32-3.d,
gas/sh/sh64/rel32-4.d, gas/sh/sh64/rel32-5.d,
gas/sh/sh64/rel64-1.d, gas/sh/sh64/rel64-2.d,
gas/sh/sh64/rel64-3.d, gas/sh/sh64/rel64-4.d,
gas/sh/sh64/rel64-5.d, gas/sh/sh64/relax-1.d,
gas/sh/sh64/relax-2.d, gas/sh/sh64/relax-3.d,
gas/sh/sh64/shift32-1.d, gas/sh/sh64/shift32-3.d,
gas/sh/sh64/shift32-noexp-3.d, gas/sh/sh64/shift64-1.d,
gas/sh/sh64/shift64-2.d, gas/sh/sh64/shift64-3.d,
gas/sh/sh64/shift64-noexp-3.d, gas/sh/sh64/syntax-1.d,
gas/sh/sh64/syntax-2.d, gas/sh/sh64/ua32-1.d,
gas/sh/sh64/ua64-1.d: Likewise.
2002-10-09 19:40:42 +00:00
Stephen Clarke
f61dfddf2d
* config/tc-sh64.c (sh64_target_format): Add support for sh64
...
Linux environment.
2002-10-09 19:07:43 +00:00
Chris Demetriou
21bd8c3134
2002-10-03 Chris Demetriou <cgd@broadcom.com>
...
* gas/mips/mips-no-jalx.l: Make error message regexps accomodate
tools which target a specific CPU by default.
2002-10-03 23:53:09 +00:00
Kaz Kojima
28602ebff6
* contig/tc-sh.c (sh_local_pcrel): New.
...
(sh_force_relocation): Use sh_local_pcrel.
(md_pcrel_from_section): Check the relocation type whether it
should be resolved locally. Use S_FORCE_RELOC.
* testsuite/gas/sh/pcrel2.d: Check code also.
2002-10-03 04:58:28 +00:00
Stephen Clarke
7a68fea6e1
* gas/sh/sh64/ptc32-noexp-1.d: Adjust for changes to *ABS*
...
symbol generation.
* gas/sh/sh64/ptc64-noexp-1.d: Likewise.
2002-10-03 00:56:06 +00:00
Alan Modra
97724570fe
* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
...
(TC_FORCE_RELOCATION): Tidy arg.
2002-10-01 06:15:33 +00:00
H.J. Lu
f11b4434cc
2002-09-30 H.J. Lu <hjl@gnu.org>
...
* gas/mips/mips.exp: Undo the last change.
2002-10-01 04:37:47 +00:00
H.J. Lu
28e0c55ddc
2002-09-30 H.J. Lu <hjl@gnu.org>
...
* gas/mips/vr4120.d: Use "#pass" instead of "#..." to skip the
rest of output.
2002-10-01 00:12:26 +00:00
H.J. Lu
5d42dcdf5f
2002-09-30 H.J. Lu <hjl@gnu.org>
...
* gas/mips/mips.exp: Set xfail on empic, empic2, empic3_g1 and
empic3_g2 on Linux/mips.
2002-09-30 21:12:24 +00:00
H.J. Lu
17c06574e8
2002-09-30 H.J. Lu <hjl@gnu.org>
...
* gas/mips/vr4120.d: Pass -m mips:4120 to objdump.
2002-09-30 20:59:11 +00:00
Richard Sandiford
60b63b728f
[gas/]
...
* doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
* config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
(hilo_interlocks): True for CPU_VR5500.
(gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
(mips_fix_vr4122_bugs): New.
(append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
(mips_emit_delays): Likewise.
(macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
[M_ROLI]: Likewise ror if CPU_HAS_ROR.
(validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
(OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
(md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
(OPTION_ELF_BASE): Bump.
(md_parse_option): Handle the new options.
(mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
vr5400 and vr5500.
[gas/testsuite/]
* gas/mips/mips4100.[sd]: Move dmadd16 and madd16 checks to...
* gas/mips/vr4111.[sd]: ...this new test.
* gas/mips/vr4120.[sd],
* gas/mips/vr4122.[sd],
* gas/mips/vr5400.[sd],
* gas/mips/vr5500.[sd]: New tests.
* mips.exp: Run them.
2002-09-30 12:04:54 +00:00
H.J. Lu
7a49a8c2b4
2002-09-29 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (md_apply_fix3): Subtract the symbol value
twice if howto->pcrel_offset is true.
2002-09-30 06:32:00 +00:00
Jason Thorpe
04ff5cb5c7
* config/tc-vax.c (md_estimate_size_before_relax): Only try to
...
convert undefined references to GOT32/PLT32 if PIC code is
requested. Fix comment.
2002-09-28 20:01:43 +00:00
Daniel Jacobowitz
8ba4dac030
2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
...
* config/tc-sh.c (sh_force_relocation): Return 0 for
some PC relative relocations when not relaxing.
* testsuite/gas/sh/pcrel2.s: New.
* testsuite/gas/sh/pcrel2.d: New.
* testsuite/gas/sh/basic.exp: Add pcrel2 test.
2002-09-28 00:41:27 +00:00
Jason Thorpe
8f3f366625
* gas/vax/elf-rel.[ds]: New test.
...
* gas/vax/quad.exp: Move contents to...
* gas/vax/vax.exp: ...here. New file.
2002-09-27 23:36:01 +00:00
Jakub Jelinek
bffbf9406f
bfd/
...
* reloc.c: Add x86-64 TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
relocs. Add TLS relocs.
(x86_64_reloc_map): Add TLS relocs.
(elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
(struct elf64_x86_64_link_hash_entry): Add tls_type field.
(GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
(elf64_x86_64_hash_entry): Define.
(struct elf64_x86_64_obj_tdata): New.
(elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
(struct elf64_x86_64_link_hash_table): Add tls_ld_got.
(link_hash_newfunc): Initialize tls_type.
(elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
(elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
(elf64_x86_64_mkobject): New.
(elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
(elf64_x86_64_tls_transition): New.
(elf64_x86_64_check_relocs): Add r_type variable and use it.
Handle TLS relocs.
(elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
(allocate_dynrelocs): Allocate GOT space for TLS relocs.
(elf64_x86_64_size_dynamic_sections): Likewise.
(dtpoff_base, tpoff): New.
(elf64_x86_64_relocate_section): Handle TLS relocs.
(elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
entries.
(bfd_elf64_mkobject): Define.
* elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
DF_STATIC_TLS if shared.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
@tlsld.
(md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
(tc_gen_reloc): Handle x86-64 TLS relocs.
include/
* elf/x86-64.h: Add TLS relocs.
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_tests): Add.
* ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff,
file_contents): Remove.
(sh64tests): Add 6th field to the tests array.
* ld-i386/i386.exp (run_ld_link_tests): Remove.
* ld-x86-64/x86-64.exp: New.
* ld-x86-64/tlsbin.dd: New test.
* ld-x86-64/tlsbinpic.s: New test.
* ld-x86-64/tlsbin.rd: New test.
* ld-x86-64/tlsbin.s: New test.
* ld-x86-64/tlsbin.sd: New test.
* ld-x86-64/tlsbin.td: New test.
* ld-x86-64/tlslib.s: New test.
* ld-x86-64/tlspic1.s: New test.
* ld-x86-64/tlspic2.s: New test.
* ld-x86-64/tlspic.dd: New test.
* ld-x86-64/tlspic.rd: New test.
* ld-x86-64/tlspic.sd: New test.
* ld-x86-64/tlspic.td: New test.
2002-09-27 19:29:18 +00:00
H.J. Lu
502eccd936
2002-09-27 H.J. Lu <hjl@gnu.org>
...
* gas/mips/mips-jalx.s: Add ".p2align 4".
* gas/mips/mips16-jalx.s: Likewise.
* gas/mips/mips-jalx.d: Check nop.
* gas/mips/mips16-jalx.d: Likewise.
2002-09-27 14:53:16 +00:00
Alan Modra
8773354138
* config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
...
fixups to current or absolute section.
2002-09-27 04:38:47 +00:00
Jim Wilson
825487fa2d
Fix v850 .offset pseudo-op
...
* config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
and frag_more.
2002-09-26 22:04:19 +00:00
Thiemo Seufer
3396de367a
/gas/ChangeLog
...
* config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
capable configuration.
(macro_build): Check for MIPS16 capability, not for actual MIPS16 code
generation.
(mips_ip): Likewise.
/gas/testsuite/ChangeLog
* gas/mips/mips-jalx.d: New file, check jalx assembly.
* gas/mips/mips-jalx.s: Likewise.
* gas/mips/mips-no-jalx.l: Likewise.
* gas/mips/mips-no-jalx.s: Likewise.
* gas/mips/mips16-jalx.d: Likewise.
* gas/mips/mips16-jalx.s: Likewise.
* gas/mips/mips.exp: Add new tests.
/opcodes/ChangeLog:
* mips-dis.c (print_insn_mips): Always allow disassembly of
32-bit jalx opcode.
2002-09-26 09:56:35 +00:00
Thiemo Seufer
f3c0ec86c4
* config/tc-mips.c (append_insn): Fix jump overflow check.
...
* gas/mips/jal-range.s: Fix jump overflow check.
* gas/mips/jal-range.l: Likewise.
2002-09-26 09:00:08 +00:00
Alan Modra
52271982a7
* config/tc-i386.c (process_operands): Warn about "lea" segment
...
overrides.
2002-09-24 01:46:42 +00:00
Nick Clifton
9d7f57761d
Add LDM and STM instructions which are unpredictable because of their use of
...
the writeback bit.
2002-09-23 16:46:33 +00:00
DJ Delorie
823882f588
* write.c: Delete set_segment_vma and prototype. Update all callers.
2002-09-23 11:58:00 +00:00
Alan Modra
6539b54baf
* config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
...
S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
Rename "fseg" to "sym_seg".
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
2002-09-21 10:39:17 +00:00
Nick Clifton
96ea717129
Fix UNPREDICATABLE use of writeback in LDM/STM instructions.
2002-09-21 07:27:43 +00:00
Nick Clifton
7cf108933b
symbols.c (colon): Do not allow symbols to be created in the absolute section
...
if WORKING_DOT_WORD is not defined and new_broken_words would require a new
frag to be created.
2002-09-20 14:47:14 +00:00
Nick Clifton
9f269a7285
Do not allow symbols to be created in the absolute section.
2002-09-20 06:57:41 +00:00
Alan Modra
f6cf69d700
* expr.c (expr): Simplify foo-foo here.
...
(clean_up_expression): Remove O_subtract code.
2002-09-20 00:58:39 +00:00
Alan Modra
263462410c
* write.h (struct fix): Add fx_dot_value.
...
(dot_value): Declare.
* write.c (dot_value): New var.
(fix_new_internal): Save dot_value as fx_dot_value.
* expr.c (expr): Update dot_value.
2002-09-19 23:51:35 +00:00