xref: /openbsd-src/gnu/usr.bin/binutils-2.17/gas/config/tc-or32.h (revision 3d8817e467ea46cf4772788d6804dd293abfb01a)
1*3d8817e4Smiod /* tc-or32.h -- Assemble for the OpenRISC 1000.
2*3d8817e4Smiod    Copyright (C) 2002, 2003. 2005 Free Software Foundation, Inc.
3*3d8817e4Smiod    Contributed by Damjan Lampret <lampret@opencores.org>.
4*3d8817e4Smiod    Based upon a29k port.
5*3d8817e4Smiod 
6*3d8817e4Smiod    This file is part of GAS, the GNU Assembler.
7*3d8817e4Smiod 
8*3d8817e4Smiod    GAS is free software; you can redistribute it and/or modify
9*3d8817e4Smiod    it under the terms of the GNU General Public License as published by
10*3d8817e4Smiod    the Free Software Foundation; either version 2, or (at your option)
11*3d8817e4Smiod    any later version.
12*3d8817e4Smiod 
13*3d8817e4Smiod    GAS is distributed in the hope that it will be useful,
14*3d8817e4Smiod    but WITHOUT ANY WARRANTY; without even the implied warranty of
15*3d8817e4Smiod    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*3d8817e4Smiod    GNU General Public License for more details.
17*3d8817e4Smiod 
18*3d8817e4Smiod    You should have received a copy of the GNU General Public License
19*3d8817e4Smiod    along with GAS; see the file COPYING.  If not, write to
20*3d8817e4Smiod    the Free Software Foundation, 51 Franklin Street - Fifth Floor,
21*3d8817e4Smiod    Boston, MA 02110-1301, USA.  */
22*3d8817e4Smiod 
23*3d8817e4Smiod #define TC_OR32
24*3d8817e4Smiod 
25*3d8817e4Smiod #define TARGET_BYTES_BIG_ENDIAN 1
26*3d8817e4Smiod 
27*3d8817e4Smiod #define LEX_DOLLAR 1
28*3d8817e4Smiod 
29*3d8817e4Smiod #ifdef OBJ_ELF
30*3d8817e4Smiod #define TARGET_FORMAT  "elf32-or32"
31*3d8817e4Smiod #define TARGET_ARCH    bfd_arch_or32
32*3d8817e4Smiod #endif
33*3d8817e4Smiod 
34*3d8817e4Smiod #ifdef OBJ_COFF
35*3d8817e4Smiod #define TARGET_FORMAT  "coff-or32-big"
36*3d8817e4Smiod #define reloc_type     int
37*3d8817e4Smiod #endif
38*3d8817e4Smiod 
39*3d8817e4Smiod #define tc_unrecognized_line(c) or32_unrecognized_line (c)
40*3d8817e4Smiod 
41*3d8817e4Smiod extern int or32_unrecognized_line (int);
42*3d8817e4Smiod 
43*3d8817e4Smiod #define tc_coff_symbol_emit_hook(a) ; /* Not used.  */
44*3d8817e4Smiod 
45*3d8817e4Smiod #define COFF_MAGIC                  SIPFBOMAGIC
46*3d8817e4Smiod 
47*3d8817e4Smiod /* No shared lib support, so we don't need to ensure externally
48*3d8817e4Smiod    visible symbols can be overridden.  */
49*3d8817e4Smiod #define EXTERN_FORCE_RELOC 0
50*3d8817e4Smiod 
51*3d8817e4Smiod #ifdef OBJ_ELF
52*3d8817e4Smiod /* Values passed to md_apply_fix don't include the symbol value.  */
53*3d8817e4Smiod #define MD_APPLY_SYM_VALUE(FIX) 0
54*3d8817e4Smiod #endif
55*3d8817e4Smiod 
56*3d8817e4Smiod #define ZERO_BASED_SEGMENTS
57