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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [binutils/] [binutils-2.16.1/] [gas/] [config/] [tc-or32.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1615 phoenix
/* tc-or32.h -- Assemble for the OpenRISC 1000.
2
   Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3
   Contributed by Damjan Lampret <lampret@opencores.org>
4
   Modified by Gyorgy Jeney <nog@sdf.lonestar.org>
5
 
6
   Based upon a29k port.
7
 
8
   This file is part of GAS, the GNU Assembler.
9
 
10
   GAS is free software; you can redistribute it and/or modify
11
   it under the terms of the GNU General Public License as published by
12
   the Free Software Foundation; either version 2, or (at your option)
13
   any later version.
14
 
15
   GAS is distributed in the hope that it will be useful,
16
   but WITHOUT ANY WARRANTY; without even the implied warranty of
17
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
   GNU General Public License for more details.
19
 
20
   You should have received a copy of the GNU General Public License
21
   along with GAS; see the file COPYING.  If not, write to
22
   the Free Software Foundation, 59 Temple Place - Suite 330,
23
   Boston, MA 02111-1307, USA.  */
24
 
25
#define TC_OR32
26
 
27
#define TARGET_BYTES_BIG_ENDIAN 1
28
 
29
#define LEX_DOLLAR 1
30
 
31
#ifdef OBJ_ELF
32
#define TARGET_FORMAT  "elf32-or32"
33
#define TARGET_ARCH    bfd_arch_or32
34
#endif
35
 
36
#ifdef OBJ_COFF
37
#define TARGET_FORMAT  "coff-or32-big"
38
#define reloc_type     int
39
#endif
40
 
41
#define tc_unrecognized_line(c) or32_unrecognized_line (c)
42
 
43
extern int or32_unrecognized_line PARAMS ((int));
44
 
45
#define tc_headers_hook(a)    ; /* not used */
46
#define tc_headers_hook(a)    ; /* not used */
47
#define tc_crawl_symbol_chain(a)  ; /* not used */
48
#define tc_coff_symbol_emit_hook(a) ; /* not used */
49
 
50
#define AOUT_MACHTYPE               80
51
#define TC_COFF_FIX2RTYPE(fix_ptr)  tc_coff_fix2rtype (fix_ptr)
52
#define BFD_ARCH                    bfd_arch_or32
53
#define COFF_MAGIC                  SIPFBOMAGIC
54
 
55
/* No shared lib support, so we don't need to ensure externally
56
   visible symbols can be overridden.  */
57
#define EXTERN_FORCE_RELOC 0
58
 
59
#ifdef OBJ_ELF
60
/* Values passed to md_apply_fix3 don't include the symbol value.  */
61
#define MD_APPLY_SYM_VALUE(FIX) 0
62
#endif
63
 
64
/* Should the reloc be output ?
65
   on the 29k, this is true only if there is a symbol attatched.
66
   on the h8, this is allways true, since no fixup is done.  */
67
#define TC_COUNT_RELOC(x)           (x->fx_addsy)
68
#define TC_CONS_RELOC               RELOC_32
69
 
70
#define COFF_FLAGS                  F_AR32W
71
#define NEED_FX_R_TYPE
72
 
73
#define ZERO_BASED_SEGMENTS
74
 

powered by: WebSVN 2.1.0

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