Subversion Repositories Kolibri OS

Rev

Rev 5222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5222 Rev 6324
Line 1... Line 1...
1
/* tc-i386.h -- Header file for tc-i386.c
1
/* tc-i386.h -- Header file for tc-i386.c
2
   Copyright 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-
 
3
   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-
 
4
   Free Software Foundation, Inc.
2
   Copyright (C) 1989-2015 Free Software Foundation, Inc.
Line 5... Line 3...
5
 
3
 
Line 6... Line 4...
6
   This file is part of GAS, the GNU Assembler.
4
   This file is part of GAS, the GNU Assembler.
7
 
5
 
Line 90... Line 88...
90
 
88
 
91
#ifndef ELF_TARGET_K1OM_FORMAT
89
#ifndef ELF_TARGET_K1OM_FORMAT
92
#define ELF_TARGET_K1OM_FORMAT	"elf64-k1om"
90
#define ELF_TARGET_K1OM_FORMAT	"elf64-k1om"
Line -... Line 91...
-
 
91
#endif
-
 
92
 
-
 
93
#ifndef ELF_TARGET_IAMCU_FORMAT
-
 
94
#define ELF_TARGET_IAMCU_FORMAT	"elf32-iamcu"
93
#endif
95
#endif
94
 
96
 
95
#if ((defined (OBJ_MAYBE_COFF) && defined (OBJ_MAYBE_AOUT)) \
97
#if ((defined (OBJ_MAYBE_COFF) && defined (OBJ_MAYBE_AOUT)) \
96
     || defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) \
98
     || defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) \
97
     || defined (TE_PE) || defined (TE_PEP) || defined (OBJ_MACH_O))
99
     || defined (TE_PE) || defined (TE_PEP) || defined (OBJ_MACH_O))
Line 104... Line 106...
104
#ifdef OBJ_AOUT
106
#ifdef OBJ_AOUT
105
#define TARGET_FORMAT		AOUT_TARGET_FORMAT
107
#define TARGET_FORMAT		AOUT_TARGET_FORMAT
106
#endif
108
#endif
107
#endif
109
#endif
Line 108... Line -...
108
 
-
 
109
#if (defined (OBJ_MAYBE_ELF) || defined (OBJ_ELF))
-
 
110
#define md_end i386_elf_emit_arch_note
-
 
111
extern void i386_elf_emit_arch_note (void);
-
 
112
#endif
-
 
113
 
110
 
Line 114... Line 111...
114
#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
111
#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
115
 
112
 
116
/* '$' may be used as immediate prefix.  */
113
/* '$' may be used as immediate prefix.  */
Line 132... Line 129...
132
#endif
129
#endif
Line 133... Line 130...
133
 
130
 
134
#if (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (LEX_AT)
131
#if (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (LEX_AT)
135
#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) x86_cons (EXP, NBYTES)
132
#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) x86_cons (EXP, NBYTES)
136
#endif
133
#endif
Line 137... Line 134...
137
extern void x86_cons (expressionS *, int);
134
extern bfd_reloc_code_real_type x86_cons (expressionS *, int);
-
 
135
 
138
 
136
#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP, RELOC)	\
139
#define TC_CONS_FIX_NEW(FRAG,OFF,LEN,EXP) x86_cons_fix_new(FRAG, OFF, LEN, EXP)
137
  x86_cons_fix_new(FRAG, OFF, LEN, EXP, RELOC)
Line 140... Line 138...
140
extern void x86_cons_fix_new
138
extern void x86_cons_fix_new
141
  (fragS *, unsigned int, unsigned int, expressionS *);
139
(fragS *, unsigned int, unsigned int, expressionS *, bfd_reloc_code_real_type);
Line 142... Line 140...
142
 
140
 
Line 170... Line 168...
170
   object for which we still want to do the relocation at runtime.
168
   object for which we still want to do the relocation at runtime.
171
   False if we are willing to perform this relocation while building
169
   False if we are willing to perform this relocation while building
172
   the .o file.  GOTOFF and GOT32 do not need to be checked here because
170
   the .o file.  GOTOFF and GOT32 do not need to be checked here because
173
   they are not pcrel.  .*/
171
   they are not pcrel.  .*/
Line 174... Line 172...
174
 
172
 
175
#define TC_FORCE_RELOCATION_LOCAL(FIX)			\
173
#define TC_FORCE_RELOCATION_LOCAL(FIX)				\
176
  (!(FIX)->fx_pcrel					\
174
  (!(FIX)->fx_pcrel						\
177
   || (FIX)->fx_r_type == BFD_RELOC_386_PLT32		\
175
   || (FIX)->fx_r_type == BFD_RELOC_386_PLT32			\
178
   || (FIX)->fx_r_type == BFD_RELOC_386_GOTPC		\
176
   || (FIX)->fx_r_type == BFD_RELOC_386_GOTPC			\
-
 
177
   || (FIX)->fx_r_type == BFD_RELOC_X86_64_GOTPCRELX		\
179
   || (FIX)->fx_r_type == BFD_RELOC_X86_64_GOTPCREL	\
178
   || (FIX)->fx_r_type == BFD_RELOC_X86_64_REX_GOTPCRELX	\
Line 180... Line 179...
180
   || TC_FORCE_RELOCATION (FIX))
179
   || TC_FORCE_RELOCATION (FIX))
181
 
180
 
Line 237... Line 236...
237
  PROCESSOR_CORE,
236
  PROCESSOR_CORE,
238
  PROCESSOR_CORE2,
237
  PROCESSOR_CORE2,
239
  PROCESSOR_COREI7,
238
  PROCESSOR_COREI7,
240
  PROCESSOR_L1OM,
239
  PROCESSOR_L1OM,
241
  PROCESSOR_K1OM,
240
  PROCESSOR_K1OM,
-
 
241
  PROCESSOR_IAMCU,
242
  PROCESSOR_K6,
242
  PROCESSOR_K6,
243
  PROCESSOR_ATHLON,
243
  PROCESSOR_ATHLON,
244
  PROCESSOR_K8,
244
  PROCESSOR_K8,
245
  PROCESSOR_GENERIC32,
245
  PROCESSOR_GENERIC32,
246
  PROCESSOR_GENERIC64,
246
  PROCESSOR_GENERIC64,
247
  PROCESSOR_AMDFAM10,
247
  PROCESSOR_AMDFAM10,
248
  PROCESSOR_BD,
248
  PROCESSOR_BD,
-
 
249
  PROCESSOR_ZNVER,
249
  PROCESSOR_BT
250
  PROCESSOR_BT
250
};
251
};
Line 251... Line 252...
251
 
252
 
252
extern enum processor_type cpu_arch_tune;
253
extern enum processor_type cpu_arch_tune;