]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - include/coff/i386.h
Update copyright years
[thirdparty/binutils-gdb.git] / include / coff / i386.h
CommitLineData
4f1d9bd8
NC
1/* coff information for Intel 386/486.
2
4b95cf5c 3 Copyright (C) 2001-2014 Free Software Foundation, Inc.
4f1d9bd8
NC
4
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
e4e42b45 7 the Free Software Foundation; either version 3 of the License, or
4f1d9bd8
NC
8 (at your option) any later version.
9
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.
14
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
e4e42b45
NC
17 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
18 MA 02110-1301, USA. */
4f1d9bd8
NC
19
20#define L_LNNO_SIZE 2
21#define INCLUDE_COMDAT_FIELDS_IN_AUXENT
22#include "coff/external.h"
252b5132 23
e05da72d
NC
24#define COFF_PAGE_SIZE 0x1000
25
252b5132 26/* Bits for f_flags:
e05da72d
NC
27 F_RELFLG Relocation info stripped from file
28 F_EXEC File is executable (no unresolved external references)
29 F_LNNO Line numbers stripped from file
30 F_LSYMS Local symbols stripped from file
31 F_AR32WR File has byte ordering of an AR32WR machine (e.g. vax). */
252b5132
RH
32
33#define F_RELFLG (0x0001)
34#define F_EXEC (0x0002)
35#define F_LNNO (0x0004)
36#define F_LSYMS (0x0008)
37
252b5132
RH
38#define I386MAGIC 0x14c
39#define I386PTXMAGIC 0x154
40#define I386AIXMAGIC 0x175
41
e05da72d 42/* This is Lynx's all-platform magic number for executables. */
252b5132
RH
43
44#define LYNXCOFFMAGIC 0415
45
4f1d9bd8 46#define I386BADMAG(x) ( ((x).f_magic != I386MAGIC) \
252b5132
RH
47 && (x).f_magic != I386AIXMAGIC \
48 && (x).f_magic != I386PTXMAGIC \
49 && (x).f_magic != LYNXCOFFMAGIC)
50
e05da72d
NC
51#define OMAGIC 0404 /* Object files, eg as output. */
52#define ZMAGIC 0413 /* Demand load format, eg normal ld output. */
53#define STMAGIC 0401 /* Target shlib. */
54#define SHMAGIC 0443 /* Host shlib. */
252b5132 55
e05da72d 56/* Define some NT default values. */
252b5132
RH
57/* #define NT_IMAGE_BASE 0x400000 moved to internal.h */
58#define NT_SECTION_ALIGNMENT 0x1000
59#define NT_FILE_ALIGNMENT 0x200
60#define NT_DEF_RESERVE 0x100000
61#define NT_DEF_COMMIT 0x1000
62
e05da72d 63/* Relocation directives. */
252b5132 64
4f1d9bd8
NC
65struct external_reloc
66{
252b5132
RH
67 char r_vaddr[4];
68 char r_symndx[4];
69 char r_type[2];
70};
71
252b5132
RH
72#define RELOC struct external_reloc
73#define RELSZ 10
74