home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / binutils-2.7-src.tgz / tar.out / fsf / binutils / gas / config / obj-hp300.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  3KB  |  72 lines

  1. /* This file is obj-hp300.h
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4.    This file is part of GAS, the GNU Assembler.
  5.  
  6.    GAS is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2, or (at your option)
  9.    any later version.
  10.  
  11.    GAS is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with GAS; see the file COPYING.  If not, write to
  18.    the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. #define __STRUCT_EXEC_OVERRIDE__
  21.  
  22. struct exec_bytes
  23. {
  24.   unsigned char a_info[4];   /* a_machtype/a_magic */
  25.   unsigned char a_spare1[4];
  26.   unsigned char a_spare2[4];
  27.   unsigned char a_text[4];   /* length of text, in bytes */
  28.   unsigned char a_data[4];   /* length of data, in bytes */
  29.   unsigned char a_bss[4];    /* length of uninitialized data area for file, in bytes */
  30.   unsigned char a_trsize[4]; /* length of relocation info for text, in bytes */
  31.   unsigned char a_drsize[4]; /* length of relocation info for data, in bytes */
  32.   unsigned char a_spare3[4]; /* HP = pascal interface size */
  33.   unsigned char a_spare4[4]; /* HP = symbol table size */
  34.   unsigned char a_spare5[4]; /* HP = debug name table size */
  35.   unsigned char a_entry[4];  /* start address */
  36.   unsigned char a_spare6[4]; /* HP = source line table size */
  37.   unsigned char a_spare7[4]; /* HP = value table size */
  38.   unsigned char a_syms[4];   /* length of symbol table data in file, in bytes */
  39.   unsigned char a_spare8[4];
  40. };
  41.  
  42. /* How big the "struct exec" is on disk */
  43. #define EXEC_BYTES_SIZE (16 * 4)
  44.  
  45. struct exec
  46. {
  47.   unsigned long a_info;
  48.   unsigned long a_spare1;
  49.   unsigned long a_spare2;
  50.   unsigned long a_text;      
  51.   unsigned long a_data;     
  52.   unsigned long a_bss;     
  53.   unsigned long a_trsize; 
  54.   unsigned long a_drsize;
  55.   unsigned long a_spare3;
  56.   unsigned long a_spare4;
  57.   unsigned long a_spare5;
  58.   unsigned long a_entry; 
  59.   unsigned long a_spare6;
  60.   unsigned long a_spare7;
  61.   unsigned long a_syms;  
  62.   unsigned long a_spare8;
  63. };
  64.  
  65. #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE    (OMAGIC)
  66. #define AOUT_VERSION    0x02
  67. #define AOUT_MACHTYPE    0x0c
  68. #define OMAGIC        0x106
  69.     
  70. #define obj_header_append    hp300_header_append
  71. #include "config/obj-aout.h"
  72.