1 /* coff information for Windows CE with MIPS VR4111
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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
20 #define INCLUDE_COMDAT_FIELDS_IN_AUXENT
21 #include "coff/external.h"
23 #define MIPS_ARCH_MAGIC_WINCE 0x0166 /* Windows CE - little endian */
24 #define MIPS_PE_MAGIC 0x010b
26 #define MIPSBADMAG(x) ((x).f_magic != MIPS_ARCH_MAGIC_WINCE)
28 /* define some NT default values */
29 /* #define NT_IMAGE_BASE 0x400000 moved to internal.h */
30 #define NT_SECTION_ALIGNMENT 0x1000
31 #define NT_FILE_ALIGNMENT 0x200
32 #define NT_DEF_RESERVE 0x100000
33 #define NT_DEF_COMMIT 0x1000
35 /********************** RELOCATION DIRECTIVES **********************/
37 /* The external reloc has an offset field, because some of the reloc
38 types on the h8 don't have room in the instruction for the entire
39 offset - eg the strange jump and high page addressing modes. */
48 #define RELOC struct external_reloc
51 /* MIPS PE relocation types. */
53 #define MIPS_R_ABSOLUTE 0 /* ignored */
54 #define MIPS_R_REFHALF 1
55 #define MIPS_R_REFWORD 2
56 #define MIPS_R_JMPADDR 3
57 #define MIPS_R_REFHI 4 /* PAIR follows */
58 #define MIPS_R_REFLO 5
59 #define MIPS_R_GPREL 6
60 #define MIPS_R_LITERAL 7 /* same as GPREL */
61 #define MIPS_R_SECTION 10
62 #define MIPS_R_SECREL 11
63 #define MIPS_R_SECRELLO 12
64 #define MIPS_R_SECRELHI 13 /* PAIR follows */
65 #define MIPS_R_RVA 34 /* 0x22 */
66 #define MIPS_R_PAIR 37 /* 0x25 - symndx is really a signed 16-bit addend */
This page took 0.029679 seconds and 4 git commands to generate.