1 /* coff information for HP/Intel IA-64.
3 Copyright 2000 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. */
19 #define DO_NOT_DEFINE_AOUTHDR
21 #define INCLUDE_COMDAT_FIELDS_IN_AUXENT
22 #include "coff/external.h"
24 #define IA64MAGIC 0x200
26 #define IA64BADMAG(x) (((x).f_magic != IA64MAGIC))
29 * F_RELFLG relocation info stripped from file
30 * F_EXEC file is executable (no unresolved external references)
31 * F_LNNO line numbers stripped from file
32 * F_LSYMS local symbols stripped from file
33 * F_AR32WR file has byte ordering of an AR32WR machine (e.g. vax)
36 #define F_RELFLG (0x0001)
37 #define F_EXEC (0x0002)
38 #define F_LNNO (0x0004)
39 #define F_LSYMS (0x0008)
41 /********************** AOUT "OPTIONAL HEADER" **********************/
44 char magic[2]; /* type of file */
45 char vstamp[2]; /* version stamp */
46 char tsize[4]; /* text size in bytes, padded to FW bdry*/
47 char dsize[4]; /* initialized data " " */
48 char bsize[4]; /* uninitialized data " " */
49 char entry[4]; /* entry pt. */
50 char text_start[4]; /* base of text used for this file */
52 char data_start[4]; /* base of data used for this file */
57 #define PE32MAGIC 0x10b /* 32-bit image */
58 #define PE32PMAGIC 0x20b /* 32-bit image inside 64-bit address space */
60 #define PE32PBADMAG(x) (((x).f_magic != PE32PMAGIC))
65 #define OMAGIC 0404 /* object files, eg as output */
66 #define ZMAGIC 0413 /* demand load format, eg normal ld output */
67 #define STMAGIC 0401 /* target shlib */
68 #define SHMAGIC 0443 /* host shlib */
70 /* define some NT default values */
71 /* #define NT_IMAGE_BASE 0x400000 moved to internal.h */
72 #define NT_SECTION_ALIGNMENT 0x1000
73 #define NT_FILE_ALIGNMENT 0x200
74 #define NT_DEF_RESERVE 0x100000
75 #define NT_DEF_COMMIT 0x1000
77 /********************** RELOCATION DIRECTIVES **********************/
86 #define RELOC struct external_reloc