1
/* coff information for Intel 386/486.
3
Copyright 2001 Free Software Foundation, Inc.
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20
#define INCLUDE_COMDAT_FIELDS_IN_AUXENT
21
#include "coff/external.h"
24
F_RELFLG relocation info stripped from file
25
F_EXEC file is executable (no unresolved external references)
26
F_LNNO line numbers stripped from file
27
F_LSYMS local symbols stripped from file
28
F_AR32WR file has byte ordering of an AR32WR machine (e.g. vax). */
30
#define F_RELFLG (0x0001)
31
#define F_EXEC (0x0002)
32
#define F_LNNO (0x0004)
33
#define F_LSYMS (0x0008)
35
#define I386MAGIC 0x14c
36
#define I386PTXMAGIC 0x154
37
#define I386AIXMAGIC 0x175
39
/* This is Lynx's all-platform magic number for executables. */
41
#define LYNXCOFFMAGIC 0415
43
#define I386BADMAG(x) ( ((x).f_magic != I386MAGIC) \
44
&& (x).f_magic != I386AIXMAGIC \
45
&& (x).f_magic != I386PTXMAGIC \
46
&& (x).f_magic != LYNXCOFFMAGIC)
48
#define OMAGIC 0404 /* object files, eg as output */
49
#define ZMAGIC 0413 /* demand load format, eg normal ld output */
50
#define STMAGIC 0401 /* target shlib */
51
#define SHMAGIC 0443 /* host shlib */
53
/* define some NT default values */
54
/* #define NT_IMAGE_BASE 0x400000 moved to internal.h */
55
#define NT_SECTION_ALIGNMENT 0x1000
56
#define NT_FILE_ALIGNMENT 0x200
57
#define NT_DEF_RESERVE 0x100000
58
#define NT_DEF_COMMIT 0x1000
60
/********************** RELOCATION DIRECTIVES **********************/
69
#define RELOC struct external_reloc