Back to index

cell-binutils  2.17cvs20070401
z8k.h
Go to the documentation of this file.
00001 /* coff information for Zilog Z800N
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 
00019 #define L_LNNO_SIZE 4
00020 #include "coff/external.h"
00021 
00022 /* Type of cpu is stored in flags */
00023 #define F_Z8001    0x1000
00024 #define F_Z8002    0x2000
00025 #define F_MACHMASK 0xf000
00026 
00027 #define       Z8KMAGIC   0x8000
00028 
00029 #define Z8KBADMAG(x) (((x).f_magic != Z8KMAGIC))
00030   
00031 /********************** RELOCATION DIRECTIVES **********************/
00032 
00033 /* The external reloc has an offset field, because some of the reloc
00034    types on the z8k don't have room in the instruction for the entire
00035    offset - eg with segments.  */
00036 
00037 struct external_reloc
00038 {
00039   char r_vaddr[4];
00040   char r_symndx[4];
00041   char r_offset[4];
00042   char r_type[2];
00043   char r_stuff[2];
00044 };
00045 
00046 #define RELOC struct external_reloc
00047 #define RELSZ 16
00048