OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gas/] [config/] [tc-open8.h] - Blame information for rev 58

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 khays
/* This file is tc-open8.h
2
   Copyright 1999, 2000, 2001, 2002, 2005, 2006, 2007, 2011
3
   Free Software Foundation, Inc.
4
 
5
   Contributed by Kirk Hays, <khays@hayshaus.com>
6
 
7
   This file is part of GAS, the GNU Assembler.
8
 
9
   GAS is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 3, or (at your option)
12
   any later version.
13
 
14
   GAS is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with GAS; see the file COPYING.  If not, write to the Free
21
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
22
   02110-1301, USA.  */
23
 
24
/* By convention, you should define this macro in the `.h' file.  For
25
   example, `tc-m68k.h' defines `TC_M68K'.  You might have to use this
26
   if it is necessary to add CPU specific code to the object format
27
   file.  */
28
#define TC_OPEN8
29
 
30
/* This macro is the BFD target name to use when creating the output
31
   file.  This will normally depend upon the `OBJ_FMT' macro.  */
32
#define TARGET_FORMAT "elf32-open8"
33
 
34
/* This macro is the BFD architecture to pass to `bfd_set_arch_mach'.  */
35
#define TARGET_ARCH bfd_arch_open8
36
 
37
/* This macro is the BFD machine number to pass to
38
   `bfd_set_arch_mach'.  If it is not defined, GAS will use 0.  */
39
#define TARGET_MACH 0
40
 
41
/* You should define this macro to be non-zero if the target is big
42
   endian, and zero if the target is little endian.  */
43
#define TARGET_BYTES_BIG_ENDIAN 0
44
 
45
/* If you define this macro, GAS will warn about the use of
46
   nonstandard escape sequences in a string.  */
47
#undef ONLY_STANDARD_ESCAPES
48
 
49
/* GAS will call this function for any expression that can not be
50
   recognized.  When the function is called, `input_line_pointer'
51
   will point to the start of the expression.  */
52
#define md_operand(x)
53
 
54
/* This should just call either `number_to_chars_bigendian' or
55
   `number_to_chars_littleendian', whichever is appropriate.  On
56
   targets like the MIPS which support options to change the
57
   endianness, which function to call is a runtime decision.  On
58
   other targets, `md_number_to_chars' can be a simple macro.  */
59
#define md_number_to_chars number_to_chars_littleendian
60
 
61
/* `md_short_jump_size'
62
   `md_long_jump_size'
63
   `md_create_short_jump'
64
   `md_create_long_jump'
65
   If `WORKING_DOT_WORD' is defined, GAS will not do broken word
66
   processing (*note Broken words::.).  Otherwise, you should set
67
   `md_short_jump_size' to the size of a short jump (a jump that is
68
   just long enough to jump around a long jmp) and
69
   `md_long_jump_size' to the size of a long jump (a jump that can go
70
   anywhere in the function), You should define
71
   `md_create_short_jump' to create a short jump around a long jump,
72
   and define `md_create_long_jump' to create a long jump.  */
73
#define WORKING_DOT_WORD
74
 
75
/* If you define this macro, it means that `tc_gen_reloc' may return
76
   multiple relocation entries for a single fixup.  In this case, the
77
   return value of `tc_gen_reloc' is a pointer to a null terminated
78
   array.  */
79
#undef RELOC_EXPANSION_POSSIBLE
80
 
81
/* No shared lib support, so we don't need to ensure externally
82
   visible symbols can be overridden.  */
83
#define EXTERN_FORCE_RELOC 0
84
 
85
/* Values passed to md_apply_fix don't include the symbol value.  */
86
#define MD_APPLY_SYM_VALUE(FIX) 0
87
 
88
/* If you define this macro, it should return the offset between the
89
   address of a PC relative fixup and the position from which the PC
90
   relative adjustment should be made.  On many processors, the base
91
   of a PC relative instruction is the next instruction, so this
92
   macro would return the length of an instruction.  */
93
#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
94
extern long md_pcrel_from_section (struct fix *, segT);
95
 
96
/* The number of bytes to put into a word in a listing.  This affects
97
   the way the bytes are clumped together in the listing.  For
98
   example, a value of 2 might print `1234 5678' where a value of 1
99
   would print `12 34 56 78'.  The default value is 4.  */
100
#define LISTING_WORD_SIZE 2
101
 
102
/* An `.lcomm' directive with no explicit alignment parameter will
103
   use this macro to set P2VAR to the alignment that a request for
104
   SIZE bytes will have.  The alignment is expressed as a power of
105
   two.  If no alignment should take place, the macro definition
106
   should do nothing.  Some targets define a `.bss' directive that is
107
   also affected by this macro.  The default definition will set
108
   P2VAR to the truncated power of two of sizes up to eight bytes.  */
109
#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
110
 
111
/* We don't want gas to fixup the following program memory related relocations.
112
   We will need them in case that we want to do linker relaxation.
113
   We could in principle keep these fixups in gas when not relaxing.
114
   However, there is no serious performance penilty when making the linker
115
   make the fixup work.  Check also that fx_addsy is not NULL, in order to make
116
   sure that the fixup refers to some sort of label.  */
117
#define TC_VALIDATE_FIX(FIXP,SEG,SKIP)                       \
118
  if (   (FIXP->fx_r_type == BFD_RELOC_OPEN8_PCREL)          \
119
      && (FIXP->fx_addsy))                                   \
120
    {                                                        \
121
      goto SKIP;                                             \
122
   }
123
 
124
/* This target is buggy, and sets fix size too large.  */
125
#define TC_FX_SIZE_SLACK(FIX) 2
126
 
127
/* OPEN8 instructions are 1, 2 or 3 bytes long.  */
128
#define DWARF2_LINE_MIN_INSN_LENGTH     1
129
 
130
/* 32 bits pseudo-addresses are used on OPEN8.  */
131
#define DWARF2_ADDR_SIZE(bfd) 4

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.