Back to index

cell-binutils  2.17cvs20070401
z80.h
Go to the documentation of this file.
00001 /* coff information for Zilog Z80
00002    Copyright 2005 Free Software Foundation, Inc.
00003    Contributed by Arnold Metselaar <arnold_m@operamail.com>
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, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00018 
00019 #define L_LNNO_SIZE 4
00020 #include "coff/external.h"
00021 
00022 /* z80 backend does not use dots in section names.  */
00023 #undef  _TEXT
00024 #define _TEXT "text"
00025 #undef  _DATA
00026 #define _DATA "data"
00027 #undef  _BSS
00028 #define _BSS "bss"
00029 
00030 /* Type of cpu is stored in flags.  */
00031 #define F_MACHMASK 0xF000
00032 
00033 #define       Z80MAGIC   0x805A
00034 
00035 #define Z80BADMAG(x) (((x).f_magic != Z80MAGIC))
00036 
00037 /* Relocation directives.  */
00038 
00039 /* This format actually has more bits than we need.  */
00040 
00041 struct external_reloc
00042 {
00043   char r_vaddr[4];
00044   char r_symndx[4];
00045   char r_offset[4];
00046   char r_type[2];
00047   char r_stuff[2];
00048 };
00049 
00050 #define RELOC struct external_reloc
00051 #define RELSZ 16