| 1 | /* This file is obj-hp300.h
|
|---|
| 2 | Copyright 1993, 2000 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 the Free
|
|---|
| 18 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|---|
| 19 | 02111-1307, USA. */
|
|---|
| 20 |
|
|---|
| 21 | #define __STRUCT_EXEC_OVERRIDE__
|
|---|
| 22 |
|
|---|
| 23 | struct exec_bytes
|
|---|
| 24 | {
|
|---|
| 25 | unsigned char a_info[4]; /* a_machtype/a_magic */
|
|---|
| 26 | unsigned char a_spare1[4];
|
|---|
| 27 | unsigned char a_spare2[4];
|
|---|
| 28 | unsigned char a_text[4]; /* length of text, in bytes */
|
|---|
| 29 | unsigned char a_data[4]; /* length of data, in bytes */
|
|---|
| 30 | unsigned char a_bss[4]; /* length of uninitialized data area for file, in bytes */
|
|---|
| 31 | unsigned char a_trsize[4]; /* length of relocation info for text, in bytes */
|
|---|
| 32 | unsigned char a_drsize[4]; /* length of relocation info for data, in bytes */
|
|---|
| 33 | unsigned char a_spare3[4]; /* HP = pascal interface size */
|
|---|
| 34 | unsigned char a_spare4[4]; /* HP = symbol table size */
|
|---|
| 35 | unsigned char a_spare5[4]; /* HP = debug name table size */
|
|---|
| 36 | unsigned char a_entry[4]; /* start address */
|
|---|
| 37 | unsigned char a_spare6[4]; /* HP = source line table size */
|
|---|
| 38 | unsigned char a_spare7[4]; /* HP = value table size */
|
|---|
| 39 | unsigned char a_syms[4]; /* length of symbol table data in file, in bytes */
|
|---|
| 40 | unsigned char a_spare8[4];
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | /* How big the "struct exec" is on disk */
|
|---|
| 44 | #define EXEC_BYTES_SIZE (16 * 4)
|
|---|
| 45 |
|
|---|
| 46 | struct exec
|
|---|
| 47 | {
|
|---|
| 48 | unsigned long a_info;
|
|---|
| 49 | unsigned long a_spare1;
|
|---|
| 50 | unsigned long a_spare2;
|
|---|
| 51 | unsigned long a_text;
|
|---|
| 52 | unsigned long a_data;
|
|---|
| 53 | unsigned long a_bss;
|
|---|
| 54 | unsigned long a_trsize;
|
|---|
| 55 | unsigned long a_drsize;
|
|---|
| 56 | unsigned long a_spare3;
|
|---|
| 57 | unsigned long a_spare4;
|
|---|
| 58 | unsigned long a_spare5;
|
|---|
| 59 | unsigned long a_entry;
|
|---|
| 60 | unsigned long a_spare6;
|
|---|
| 61 | unsigned long a_spare7;
|
|---|
| 62 | unsigned long a_syms;
|
|---|
| 63 | unsigned long a_spare8;
|
|---|
| 64 | };
|
|---|
| 65 |
|
|---|
| 66 | #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (OMAGIC)
|
|---|
| 67 | #define AOUT_VERSION 0x02
|
|---|
| 68 | #define AOUT_MACHTYPE 0x0c
|
|---|
| 69 | #define OMAGIC 0x106
|
|---|
| 70 |
|
|---|
| 71 | #define obj_header_append hp300_header_append
|
|---|
| 72 | #include "config/obj-aout.h"
|
|---|