2006-05-01 Paul Brook <paul@codesourcery.com>
[binutils.git] / include / coff / maxq.h
bloba8e3c403206e60011736f9ec7b2f5a810f26efca
1 /* COFF spec for MAXQ
3 Copyright 2004, 2005 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2 of the License, or (at your option)
8 any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 for more details.
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 Contributed by Vineet Sharma(vineets@noida.hcltech.com) Inderpreet
20 S.(inderpreetb@noida.hcltech.com) HCL Technologies Ltd. */
22 #define L_LNNO_SIZE 2
24 #include "coff/external.h"
26 /* Bits for f_flags: F_RELFLG relocation info stripped from file F_EXEC file
27 is executable (no unresolved external references) F_LNNO line numbers
28 stripped from file F_LSYMS local symbols stripped from file. */
30 #define F_RELFLG (0x0001)
31 #define F_EXEC (0x0002)
32 #define F_LNNO (0x0004)
33 #define F_LSYMS (0x0008)
35 /* Variant Specific Flags for MAXQ10 and MAXQ20. */
36 #define F_MAXQ10 (0x0030)
37 #define F_MAXQ20 (0x0040)
39 #define F_MACHMASK (0x00F0)
41 /* Magic numbers for maxq. */
42 #define MAXQ20MAGIC 0xa0
43 #define MAXQ20BADMAG(x) (((x).f_magic != MAXQ20MAGIC))
44 #define BADMAG(x) MAXQ20BADMAG (x)
46 /* Relocation information declaration and related definitions. */
47 struct external_reloc
49 char r_vaddr[4]; /* (Virtual) address of reference. */
50 char r_symndx[4]; /* Index into symbol table. */
51 char r_type[2]; /* Relocation type. */
52 char r_offset[2]; /* Addend. */
55 #define RELOC struct external_reloc
56 #define RELSZ (10 + 2) /* sizeof (RELOC) */