diff options
author | Nick Clifton <nickc@redhat.com> | 2001-03-14 02:27:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-03-14 02:27:44 +0000 |
commit | 4f1d9bd8e27e97238520fc7cfa41a653ac6a2111 (patch) | |
tree | 50da01cf73f28a175cfbe91346d0dc69ed5f5e03 /include/coff/mips.h | |
parent | a728f04251098dd0e74a2aea1e4d8e841e7fb404 (diff) | |
download | gdb-4f1d9bd8e27e97238520fc7cfa41a653ac6a2111.zip gdb-4f1d9bd8e27e97238520fc7cfa41a653ac6a2111.tar.gz gdb-4f1d9bd8e27e97238520fc7cfa41a653ac6a2111.tar.bz2 |
Fix typos in ChangeLogs; add coff/external.h; fix copyright dates
Diffstat (limited to 'include/coff/mips.h')
-rw-r--r-- | include/coff/mips.h | 94 |
1 files changed, 46 insertions, 48 deletions
diff --git a/include/coff/mips.h b/include/coff/mips.h index d4665b1..b9503bd 100644 --- a/include/coff/mips.h +++ b/include/coff/mips.h @@ -1,17 +1,25 @@ /* ECOFF support on MIPS machines. - coff/ecoff.h must be included before this file. */ - -/********************** FILE HEADER **********************/ - -struct external_filehdr { - unsigned char f_magic[2]; /* magic number */ - unsigned char f_nscns[2]; /* number of sections */ - unsigned char f_timdat[4]; /* time & date stamp */ - unsigned char f_symptr[4]; /* file pointer to symtab */ - unsigned char f_nsyms[4]; /* number of symtab entries */ - unsigned char f_opthdr[2]; /* sizeof(optional hdr) */ - unsigned char f_flags[2]; /* flags */ -}; + coff/ecoff.h must be included before this file. + + Copyright 2001 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#define DO_NOT_DEFINE_AOUTHDR +#define L_LNNO_SIZE 4 +#include "coff/external.h" /* Magic numbers are defined in coff/ecoff.h. */ #define MIPS_ECOFF_BADMAG(x) (((x).f_magic!=MIPS_MAGIC_1) && \ @@ -22,12 +30,9 @@ struct external_filehdr { ((x).f_magic!=MIPS_MAGIC_LITTLE3) && \ ((x).f_magic!=MIPS_MAGIC_BIG3)) -#define FILHDR struct external_filehdr -#define FILHSZ 20 /********************** AOUT "OPTIONAL HEADER" **********************/ - typedef struct external_aouthdr { unsigned char magic[2]; /* type of file */ @@ -49,30 +54,13 @@ typedef struct external_aouthdr #define AOUTSZ 56 #define AOUTHDRSZ 56 -/********************** SECTION HEADER **********************/ - -struct external_scnhdr { - unsigned char s_name[8]; /* section name */ - unsigned char s_paddr[4]; /* physical address, aliased s_nlib */ - unsigned char s_vaddr[4]; /* virtual address */ - unsigned char s_size[4]; /* section size */ - unsigned char s_scnptr[4]; /* file ptr to raw data for section */ - unsigned char s_relptr[4]; /* file ptr to relocation */ - unsigned char s_lnnoptr[4]; /* file ptr to line numbers */ - unsigned char s_nreloc[2]; /* number of relocation entries */ - unsigned char s_nlnno[2]; /* number of line number entries*/ - unsigned char s_flags[4]; /* flags */ -}; - -#define SCNHDR struct external_scnhdr -#define SCNHSZ 40 - /********************** RELOCATION DIRECTIVES **********************/ -struct external_reloc { - unsigned char r_vaddr[4]; - unsigned char r_bits[4]; -}; +struct external_reloc + { + unsigned char r_vaddr[4]; + unsigned char r_bits[4]; + }; #define RELOC struct external_reloc #define RELSZ 8 @@ -162,7 +150,8 @@ struct external_reloc { /* File header as a set of bytes */ -struct hdr_ext { +struct hdr_ext +{ unsigned char h_magic[2]; unsigned char h_vstamp[2]; unsigned char h_ilineMax[4]; @@ -192,7 +181,8 @@ struct hdr_ext { /* File descriptor external record */ -struct fdr_ext { +struct fdr_ext +{ unsigned char f_adr[4]; unsigned char f_rss[4]; unsigned char f_issBase[4]; @@ -238,7 +228,8 @@ struct fdr_ext { /* Procedure descriptor external record */ -struct pdr_ext { +struct pdr_ext +{ unsigned char p_adr[4]; unsigned char p_isym[4]; unsigned char p_iline[4]; @@ -257,7 +248,8 @@ struct pdr_ext { /* Runtime procedure table */ -struct rpdr_ext { +struct rpdr_ext +{ unsigned char p_adr[4]; unsigned char p_regmask[4]; unsigned char p_regoffset[4]; @@ -273,13 +265,15 @@ struct rpdr_ext { /* Line numbers */ -struct line_ext { +struct line_ext +{ unsigned char l_line[4]; }; /* Symbol external record */ -struct sym_ext { +struct sym_ext +{ unsigned char s_iss[4]; unsigned char s_value[4]; unsigned char s_bits1[1]; @@ -319,7 +313,8 @@ struct sym_ext { /* External symbol external record */ -struct ext_ext { +struct ext_ext +{ unsigned char es_bits1[1]; unsigned char es_bits2[1]; unsigned char es_ifd[2]; @@ -337,20 +332,23 @@ struct ext_ext { /* Dense numbers external record */ -struct dnr_ext { +struct dnr_ext +{ unsigned char d_rfd[4]; unsigned char d_index[4]; }; /* Relative file descriptor */ -struct rfd_ext { +struct rfd_ext +{ unsigned char rfd[4]; }; /* Optimizer symbol external record */ -struct opt_ext { +struct opt_ext +{ unsigned char o_bits1[1]; unsigned char o_bits2[1]; unsigned char o_bits3[1]; |