Back to index

cell-binutils  2.17cvs20070401
mipspe.h
Go to the documentation of this file.
00001 /* coff information for Windows CE with MIPS VR4111
00002    
00003    Copyright 2000 Free Software Foundation, Inc.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2 of the License, or
00008    (at your option) any later version.
00009    
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014    
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00018 
00019 #define L_LNNO_SIZE 2
00020 #define INCLUDE_COMDAT_FIELDS_IN_AUXENT
00021 #include "coff/external.h"
00022 
00023 #define MIPS_ARCH_MAGIC_WINCE      0x0166  /* Windows CE - little endian */
00024 #define MIPS_PE_MAGIC              0x010b
00025 
00026 #define MIPSBADMAG(x) ((x).f_magic != MIPS_ARCH_MAGIC_WINCE)
00027 
00028 /* define some NT default values */
00029 /*  #define NT_IMAGE_BASE        0x400000 moved to internal.h */
00030 #define NT_SECTION_ALIGNMENT 0x1000
00031 #define NT_FILE_ALIGNMENT    0x200
00032 #define NT_DEF_RESERVE       0x100000
00033 #define NT_DEF_COMMIT        0x1000
00034 
00035 /********************** RELOCATION DIRECTIVES **********************/
00036 
00037 /* The external reloc has an offset field, because some of the reloc
00038    types on the h8 don't have room in the instruction for the entire
00039    offset - eg the strange jump and high page addressing modes.  */
00040 
00041 struct external_reloc
00042 {
00043   char r_vaddr[4];
00044   char r_symndx[4];
00045   char r_type[2];
00046 };
00047 
00048 #define RELOC struct external_reloc
00049 #define RELSZ 10
00050 
00051 /* MIPS PE relocation types. */
00052 
00053 #define       MIPS_R_ABSOLUTE      0 /* ignored */
00054 #define       MIPS_R_REFHALF       1
00055 #define       MIPS_R_REFWORD       2
00056 #define       MIPS_R_JMPADDR       3
00057 #define       MIPS_R_REFHI  4 /* PAIR follows */
00058 #define       MIPS_R_REFLO  5
00059 #define       MIPS_R_GPREL  6
00060 #define       MIPS_R_LITERAL       7 /* same as GPREL */
00061 #define       MIPS_R_SECTION       10
00062 #define       MIPS_R_SECREL 11
00063 #define       MIPS_R_SECRELLO      12
00064 #define       MIPS_R_SECRELHI      13 /* PAIR follows */
00065 #define       MIPS_R_RVA    34 /* 0x22 */
00066 #define       MIPS_R_PAIR   37 /* 0x25 - symndx is really a signed 16-bit addend */