Back to index

cell-binutils  2.17cvs20070401
h8500.h
Go to the documentation of this file.
00001 /* coff information for Renesas H8/500
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       H8500MAGIC    0x8500
00023 
00024 #define H8500BADMAG(x) ((0xffff && ((x).f_magic) != H8500MAGIC))
00025 
00026 /********************** RELOCATION DIRECTIVES **********************/
00027 
00028 /* The external reloc has an offset field, because some of the reloc
00029    types on the h8 don't have room in the instruction for the entire
00030    offset - eg the strange jump and high page addressing modes.  */
00031 
00032 struct external_reloc
00033 {
00034   char r_vaddr[4];
00035   char r_symndx[4];
00036   char r_offset[4];
00037   char r_type[2];
00038   char r_stuff[2];
00039 };
00040 
00041 #define RELOC struct external_reloc
00042 #define RELSZ 16
00043 
00044 
00045 
00046