]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/config/tc-d30v.h
2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
[thirdparty/binutils-gdb.git] / gas / config / tc-d30v.h
CommitLineData
252b5132 1/* tc-310v.h -- Header file for tc-d30v.c.
ec2655a6 2 Copyright 1997, 1998, 2000, 2001, 2002, 2005, 2007
ea1562b3 3 Free Software Foundation, Inc.
252b5132
RH
4 Written by Martin Hunt, Cygnus Support.
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
ec2655a6 10 the Free Software Foundation; either version 3, or (at your option)
252b5132
RH
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
49309057 19 along with GAS; see the file COPYING. If not, write to the Free
4b4da160
NC
20 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21 02110-1301, USA. */
252b5132
RH
22
23#define TC_D30V
24
252b5132 25/* The target BFD architecture. */
ea1562b3
NC
26#define TARGET_ARCH bfd_arch_d30v
27#define TARGET_FORMAT "elf32-d30v"
28#define TARGET_BYTES_BIG_ENDIAN 1
252b5132
RH
29
30#define md_operand(x)
31
94f592af 32/* Call md_pcrel_from_section, not md_pcrel_from. */
a161fe53 33struct fix;
ea1562b3
NC
34extern long md_pcrel_from_section (struct fix *, segT);
35#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
252b5132
RH
36
37/* Permit temporary numeric labels. */
38#define LOCAL_LABELS_FB 1
39
ea1562b3
NC
40/* .-foo gets turned into PC relative relocs. */
41#define DIFF_EXPR_OK
252b5132
RH
42
43/* We don't need to handle .word strangely. */
44#define WORKING_DOT_WORD
45
46#define md_number_to_chars number_to_chars_bigendian
47
ea1562b3 48int d30v_cleanup (int);
b34976b6
AM
49#define md_after_pass_hook() d30v_cleanup (FALSE)
50#define md_cleanup() d30v_cleanup (FALSE)
51#define TC_START_LABEL(ch, ptr) (ch == ':' && d30v_cleanup (FALSE))
ea1562b3 52void d30v_start_line (void);
24ddb296 53#define md_start_line_hook() d30v_start_line ()
252b5132 54
ea1562b3
NC
55void d30v_frob_label (symbolS *);
56#define tc_frob_label(sym) d30v_frob_label (sym)
252b5132 57
ea1562b3
NC
58void d30v_cons_align (int);
59#define md_cons_align(nbytes) d30v_cons_align (nbytes)
a161fe53 60
55cf6793 61/* Values passed to md_apply_fix don't include the symbol value. */
a161fe53
AM
62#define MD_APPLY_SYM_VALUE(FIX) 0
63
64/* No shared lib support, so we don't need to ensure externally
65 visible symbols can be overridden. */
66#define EXTERN_FORCE_RELOC 0