Back to index

cell-binutils  2.17cvs20070401
h8300.h
Go to the documentation of this file.
00001 /* coff information for Renesas H8/300 and H8/300-H
00002 
00003    Copyright 2001, 2003 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 #define       H8300MAGIC    0x8300
00023 #define       H8300HMAGIC   0x8301
00024 #define       H8300SMAGIC   0x8302
00025 #define       H8300HNMAGIC  0x8303
00026 #define       H8300SNMAGIC  0x8304
00027 
00028 #define H8300BADMAG(x)   (((x).f_magic != H8300MAGIC))
00029 #define H8300HBADMAG(x)  (((x).f_magic != H8300HMAGIC))
00030 #define H8300SBADMAG(x)  (((x).f_magic != H8300SMAGIC))
00031 #define H8300HNBADMAG(x) (((x).f_magic != H8300HNMAGIC))
00032 #define H8300SNBADMAG(x) (((x).f_magic != H8300SNMAGIC))
00033 
00034 /* Relocation directives.  */
00035 
00036 /* The external reloc has an offset field, because some of the reloc
00037    types on the h8 don't have room in the instruction for the entire
00038    offset - eg the strange jump and high page addressing modes.  */
00039 
00040 struct external_reloc
00041 {
00042   char r_vaddr[4];
00043   char r_symndx[4];
00044   char r_offset[4];
00045   char r_type[2];
00046   char r_stuff[2];
00047 };
00048 
00049 #define RELOC struct external_reloc
00050 #define RELSZ 16
00051 
00052 
00053 
00054