Back to index

cell-binutils  2.17cvs20070401
we32k.h
Go to the documentation of this file.
00001 /* coff information for we32k
00002    
00003    Copyright 2001 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 #define L_LNNO_SIZE 2
00019 #include "coff/external.h"
00020 
00021 /* Bits for f_flags:
00022        F_RELFLG      relocation info stripped from file
00023        F_EXEC        file is executable (no unresolved external references)
00024        F_LNNO        line numbers stripped from file
00025        F_LSYMS              local symbols stripped from file
00026        F_AR32WR      file has byte ordering of an AR32WR machine (e.g. vax).  */
00027 
00028 #define F_RELFLG     (0x0001)
00029 #define F_EXEC              (0x0002)
00030 #define F_LNNO              (0x0004)
00031 #define F_LSYMS             (0x0008)
00032 #define       F_BM32B              (0020000)
00033 #define       F_BM32MAU     (0040000)
00034 
00035 #define       WE32KMAGIC    0x170  /* we32k sans transfer vector */
00036 #define FBOMAGIC     0x170  /* we32k sans transfer vector */
00037 #define MTVMAGIC     0x171  /* we32k with transfer vector */
00038 #define RBOMAGIC     0x172  /* reserved */
00039 #define WE32KBADMAG(x) (   ((x).f_magic != WE32KMAGIC) \
00040                      && ((x).f_magic != FBOMAGIC) \
00041                      && ((x).f_magic != RBOMAGIC) \
00042                      && ((x).f_magic != MTVMAGIC))
00043 
00044 /* More names of "special" sections.  */
00045 #define _TV   ".tv"
00046 #define _INIT ".init"
00047 #define _FINI ".fini"
00048 
00049 /********************** RELOCATION DIRECTIVES **********************/
00050 
00051 struct external_reloc
00052 {
00053   char r_vaddr[4];
00054   char r_symndx[4];
00055   char r_type[2];
00056 };
00057 
00058 #define RELOC struct external_reloc
00059 #define RELSZ 10
00060