tc-alpha.h revision 33965
14374Slars/* This file is tc-alpha.h
24374Slars   Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
34374Slars   Written by Ken Raeburn <raeburn@cygnus.com>.
44374Slars
511990Speter   This file is part of GAS, the GNU Assembler.
611990Speter
711990Speter   GAS is free software; you can redistribute it and/or modify
834766Speter   it under the terms of the GNU General Public License as published by
911990Speter   the Free Software Foundation; either version 2, or (at your option)
1011990Speter   any later version.
1111990Speter
1211990Speter   GAS is distributed in the hope that it will be useful,
1311990Speter   but WITHOUT ANY WARRANTY; without even the implied warranty of
144374Slars   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
154374Slars   GNU General Public License for more details.
1628597Speter
1734766Speter   You should have received a copy of the GNU General Public License
1834766Speter   along with GAS; see the file COPYING.  If not, write to the Free
1934766Speter   Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2034766Speter   02111-1307, USA.  */
214374Slars
2228597Speter#define TC_ALPHA
2328597Speter
2428597Speter#define TARGET_BYTES_BIG_ENDIAN 0
2528597Speter
264374Slars#define TARGET_ARCH			bfd_arch_alpha
2728597Speter
2828597Speter#define TARGET_FORMAT (OUTPUT_FLAVOR == bfd_target_ecoff_flavour	\
2928597Speter		       ? "ecoff-littlealpha"				\
3028597Speter		       : OUTPUT_FLAVOR == bfd_target_elf_flavour	\
3128597Speter		       ? "elf64-alpha"					\
3228597Speter		       : OUTPUT_FLAVOR == bfd_target_evax_flavour	\
3328597Speter		       ? "evax-alpha"					\
3428597Speter		       : "unknown-format")
3528597Speter
3628597Speter#define NEED_LITERAL_POOL
3728597Speter#define TC_HANDLES_FX_DONE
3828597Speter#define REPEAT_CONS_EXPRESSIONS
3928597Speter
4028597Speterextern int alpha_force_relocation PARAMS ((struct fix *));
4128597Speterextern int alpha_fix_adjustable PARAMS ((struct fix *));
4228597Speter
4328597Speterextern unsigned long alpha_gprmask, alpha_fprmask;
4428597Speterextern valueT alpha_gp_value;
4528597Speter
4628597Speter#define TC_FORCE_RELOCATION(FIXP)	alpha_force_relocation (FIXP)
4728597Speter#define tc_fix_adjustable(FIXP)		alpha_fix_adjustable (FIXP)
4828597Speter#define RELOC_REQUIRES_SYMBOL
4928597Speter
5028597Speter#define md_convert_frag(b,s,f)		as_fatal ("alpha convert_frag\n")
5128597Speter#define md_create_long_jump(p,f,t,fr,s)	as_fatal("alpha_create_long_jump")
5211990Speter#define md_create_short_jump(p,f,t,fr,s) as_fatal("alpha_create_short_jump")
5311990Speter#define md_estimate_size_before_relax(f,s) \
5411990Speter			(as_fatal("estimate_size_before_relax called"),1)
5534766Speter#define md_operand(x)
5634766Speter
5734766Speter#ifdef OBJ_EVAX
5828597Speter
5934766Speter/* This field keeps the symbols position in the link section.  */
6028597Speter#define OBJ_SYMFIELD_TYPE valueT
6128597Speter
6228597Speter#define TC_CONS_FIX_NEW(FRAG,OFF,LEN,EXP) \
6328597Speter      fix_new_exp (FRAG, OFF, (int)LEN, EXP, 0, \
6428597Speter	LEN == 2 ? BFD_RELOC_16 \
6528597Speter	: LEN == 4 ? BFD_RELOC_32 \
6628597Speter	: LEN == 8 ? BFD_RELOC_64 \
6728597Speter	: BFD_RELOC_ALPHA_LINKAGE);
6828597Speter#endif
694374Slars
704374Slars#define md_number_to_chars		number_to_chars_littleendian
714374Slars
724374Slarsextern int tc_get_register PARAMS ((int frame));
734374Slarsextern void alpha_frob_ecoff_data PARAMS ((void));
744374Slars
754374Slars#define tc_frob_label(sym) alpha_define_label (sym)
7611990Speterextern void alpha_define_label PARAMS ((struct symbol *));
7728597Speter
784374Slars#define md_cons_align(nbytes) alpha_cons_align (nbytes)
794374Slarsextern void alpha_cons_align PARAMS ((int));
80119316Smarkm
81119316Smarkm#ifdef OBJ_ECOFF
824374Slars#define tc_frob_file_before_adjust() alpha_frob_file_before_adjust ()
83119316Smarkmextern void alpha_frob_file_before_adjust PARAMS ((void));
84119316Smarkm#endif
8528597Speter