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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [config/] [tc-mcore.h] - Blame information for rev 832

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

Line No. Rev Author Line
1 38 julius
/* This file is tc-mcore.h
2
 
3
   Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2007
4
   Free Software Foundation, Inc.
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
10
   the Free Software Foundation; either version 3, or (at your option)
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
19
   along with GAS; see the file COPYING.  If not, write to the
20
   Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21
   02110-1301, USA.  */
22
 
23
#ifndef TC_MCORE
24
#define TC_MCORE 1
25
 
26
#define TARGET_ARCH     bfd_arch_mcore
27
/* Used to initialise target_big_endian.  */
28
#define TARGET_BYTES_BIG_ENDIAN 0
29
 
30
#define IGNORE_NONSTANDARD_ESCAPES
31
 
32
/* Some pseudo-op semantic extensions.  */
33
#define PSEUDO_LCOMM_OPTIONAL_ALIGN
34
 
35
#define LISTING_HEADER          "M.CORE GAS"
36
#define LISTING_LHS_CONT_LINES  4
37
 
38
/* We want local label support.  */
39
#define LOCAL_LABELS_FB 1
40
 
41
extern const struct relax_type md_relax_table[];
42
#define TC_GENERIC_RELAX_TABLE md_relax_table
43
#define md_end  md_mcore_end
44
 
45
/* Want the section information too...  */
46
#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
47
 
48
#ifdef  OBJ_COFF
49
 
50
#define TARGET_FORMAT   (target_big_endian ? "pe-mcore-big" : "pe-mcore-little")
51
 
52
struct mcore_tc_sy
53
{
54
  int sy_flags;
55
};
56
 
57
#define TC_SYMFIELD_TYPE struct mcore_tc_sy
58
 
59
# if defined TE_PE
60
#  define TC_FORCE_RELOCATION(x) \
61
     ((x)->fx_r_type == BFD_RELOC_RVA || generic_force_reloc (x))
62
# endif
63
 
64
#endif /* OBJ_COFF */
65
 
66
#ifdef OBJ_ELF
67
 
68
#define TARGET_FORMAT (target_big_endian ? "elf32-mcore-big" : "elf32-mcore-little")
69
 
70
/* No shared lib support, so we don't need to ensure externally
71
   visible symbols can be overridden.  */
72
#define EXTERN_FORCE_RELOC 0
73
 
74
/* When relaxing, we need to emit various relocs we otherwise wouldn't.  */
75
#define TC_FORCE_RELOCATION(fix) mcore_force_relocation (fix)
76
 
77
#define tc_fix_adjustable(FIX) mcore_fix_adjustable (FIX)
78
 
79
/* Values passed to md_apply_fix don't include the symbol value.  */
80
#define MD_APPLY_SYM_VALUE(FIX) 0
81
 
82
#endif /* OBJ_ELF */
83
 
84
#ifndef TARGET_FORMAT
85
# error No target format specified.
86
#endif
87
 
88
#include "write.h"        /* For definition of fixS */
89
 
90
extern void        md_mcore_end           (void);
91
extern long        md_pcrel_from_section  (fixS *, segT);
92
extern arelent *   tc_gen_reloc           (asection *, fixS *);
93
extern int         mcore_force_relocation (fixS *);
94
extern bfd_boolean mcore_fix_adjustable   (fixS *);
95
 
96
#endif /* TC_MCORE */

powered by: WebSVN 2.1.0

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