OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [config/] [tc-or32.h] - Blame information for rev 413

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
/* tc-or32.h -- Assemble for the OpenRISC 1000.
2 413 jeremybenn
   Copyright (C) 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
3
   Copyright (C) 2010 Embecosm Limited
4 205 julius
   Contributed by Damjan Lampret <lampret@opencores.org>.
5
   Based upon a29k port.
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
21
   the Free Software Foundation, 51 Franklin Street - Fifth Floor,
22
   Boston, MA 02110-1301, USA.  */
23
 
24
#define TC_OR32
25
 
26
#define TARGET_BYTES_BIG_ENDIAN 1
27
 
28
#define LEX_DOLLAR 1
29
 
30
#ifdef OBJ_ELF
31
#define TARGET_FORMAT  "elf32-or32"
32
#define TARGET_ARCH    bfd_arch_or32
33
#endif
34
 
35
#ifdef OBJ_COFF
36
#define TARGET_FORMAT  "coff-or32-big"
37
#define reloc_type     int
38
#endif
39
 
40
#define tc_unrecognized_line(c) or32_unrecognized_line (c)
41
 
42
extern int or32_unrecognized_line (int);
43
 
44
#define tc_coff_symbol_emit_hook(a) ; /* Not used.  */
45
 
46
#define COFF_MAGIC                  SIPFBOMAGIC
47
 
48
/* No shared lib support, so we don't need to ensure externally
49
   visible symbols can be overridden.  */
50
#define EXTERN_FORCE_RELOC 0
51
 
52
#ifdef OBJ_ELF
53
/* Values passed to md_apply_fix don't include the symbol value.  */
54
#define MD_APPLY_SYM_VALUE(FIX) 0
55
#endif
56
 
57 413 jeremybenn
/* Call md_pcrel_from_section(), not md_pcrel_from().  */
58
#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
59
extern long md_pcrel_from_section (struct fix *, segT);
60
 
61
#define TC_FORCE_RELOCATION(FIX) (generic_force_reloc (FIX))
62
 
63 205 julius
#define ZERO_BASED_SEGMENTS

powered by: WebSVN 2.1.0

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