aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-07-21 01:51:49 +0000
committerJohn Gilmore <gnu@cygnus>1991-07-21 01:51:49 +0000
commitd6c01d81dbc3f83f9fd941c75380149a66e961ba (patch)
tree2780066a76b4c2b99ca211a68e8652e949186d0d /include
parent68359a924f1edf2edc025d40131fb1684c91f5b9 (diff)
downloadgdb-d6c01d81dbc3f83f9fd941c75380149a66e961ba.zip
gdb-d6c01d81dbc3f83f9fd941c75380149a66e961ba.tar.gz
gdb-d6c01d81dbc3f83f9fd941c75380149a66e961ba.tar.bz2
Eliminate normal-COFF things from ecoff.h that are really not present in
ecoff files. Eliminate traces of ecoff support in intel-coff.h.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/coff-i960.h5
-rwxr-xr-xinclude/coff-mips.h150
2 files changed, 2 insertions, 153 deletions
diff --git a/include/coff-i960.h b/include/coff-i960.h
index 0158d45..80dee56 100755
--- a/include/coff-i960.h
+++ b/include/coff-i960.h
@@ -1,9 +1,6 @@
/*** coff information for 80960. Origins: Intel corp, natch. */
-/* This include file is also used for rudimentary ECOFF support on MIPS
- machines. Such differences as are needed are #ifdef MIPS. */
-
-/* NOTE: Tagentries (cf TAGBITS) are not used by the 960 */
+/* NOTE: Tagentries (cf TAGBITS) are no longer used by the 960 */
/********************** FILE HEADER **********************/
diff --git a/include/coff-mips.h b/include/coff-mips.h
index c18f2fb..6b6cd63 100755
--- a/include/coff-mips.h
+++ b/include/coff-mips.h
@@ -1,3 +1,4 @@
+/* Rudimentary ECOFF support on MIPS machines. */
/********************** FILE HEADER **********************/
@@ -17,8 +18,6 @@ struct external_filehdr {
#define MIPS_MAGIC_2 0x0162
#define MIPS_MAGIC_3 0x0160
-
-
#define ECOFFBADMAG(x) (((x).f_magic!=MIPS_MAGIC_1) && \
((x).f_magic!=MIPS_MAGIC_2) &&\
((x).f_magic!=MIPS_MAGIC_3))
@@ -42,21 +41,13 @@ typedef struct external_aouthdr
char data_start[4]; /* base of data used for this file */
} AOUTHDR;
-/* return a pointer to the tag bits array */
-
-#define TAGPTR(aout) ((TAGBITS *) (&(aout.tagentries)+1))
-
/* compute size of a header */
-/*#define AOUTSZ(aout) (sizeof(AOUTHDR)+(aout.tagentries*sizeof(TAGBITS)))*/
#define AOUTSZ (sizeof(AOUTHDR))
-
-
/********************** SECTION HEADER **********************/
-
struct external_scnhdr {
char s_name[8]; /* section name */
char s_paddr[4]; /* physical address, aliased s_nlib */
@@ -73,145 +64,6 @@ struct external_scnhdr {
#define SCNHDR struct external_scnhdr
#define SCNHSZ sizeof(SCNHDR)
-
-/********************** LINE NUMBERS **********************/
-
-/* 1 line number entry for every "breakpointable" source line in a section.
- * Line numbers are grouped on a per function basis; first entry in a function
- * grouping will have l_lnno = 0 and in place of physical address will be the
- * symbol table index of the function name.
- */
-struct external_lineno {
- union {
- char l_symndx[4]; /* function name symbol index, iff l_lnno == 0*/
- char l_paddr[4]; /* (physical) address of line number */
- } l_addr;
- char l_lnno[2]; /* line number */
- char padding[2]; /* force alignment */
-};
-
-
-#define LINENO struct external_lineno
-#define LINESZ 8
-
-
-/********************** SYMBOLS **********************/
-
-#define SYMNMLEN 8 /* # characters in a symbol name */
-#define FILNMLEN 14 /* # characters in a file name */
-#define DIMNUM 4 /* # array dimensions in auxiliary entry */
-
-struct external_syment
-{
- union {
- char e_name[SYMNMLEN];
- struct {
- char e_zeroes[4];
- char e_offset[4];
- } e;
- } e;
- char e_value[4];
- char e_scnum[2];
- char e_flags[2];
- char e_type[4];
- char e_sclass[1];
- char e_numaux[1];
- char pad2[2];
-};
-
-
-
-#define N_BTMASK (0x1f)
-#define N_TMASK (0x60)
-#define N_BTSHFT (5)
-#define N_TSHIFT (2)
-union external_auxent {
- struct {
- char x_tagndx[4]; /* str, un, or enum tag indx */
- union {
- struct {
- char x_lnno[2]; /* declaration line number */
- char x_size[2]; /* str/union/array size */
- } x_lnsz;
- char x_fsize[4]; /* size of function */
- } x_misc;
- union {
- struct { /* if ISFCN, tag, or .bb */
- char x_lnnoptr[4]; /* ptr to fcn line # */
- char x_endndx[4]; /* entry ndx past block end */
- } x_fcn;
- struct { /* if ISARY, up to 4 dimen. */
- char x_dimen[DIMNUM][2];
- } x_ary;
- } x_fcnary;
- char x_tvndx[2]; /* tv index */
- } x_sym;
-
- union {
- char x_fname[FILNMLEN];
- struct {
- char x_zeroes[4];
- char x_offset[4];
- } x_n;
- } x_file;
-
- struct {
- char x_scnlen[4]; /* section length */
- char x_nreloc[2]; /* # relocation entries */
- char x_nlinno[2]; /* # line numbers */
- } x_scn;
-
- struct {
- char x_tvfill[4]; /* tv fill value */
- char x_tvlen[2]; /* length of .tv */
- char x_tvran[2][2]; /* tv range */
- } x_tv; /* info about .tv section (in auxent of symbol .tv)) */
-
- /******************************************
- * I960-specific *2nd* aux. entry formats
- ******************************************/
- struct {
- /* This is a very old typo that keeps getting propagated. */
-#define x_stdindx x_stindx
- char x_stindx[4]; /* sys. table entry */
- } x_sc; /* system call entry */
-
- struct {
- char x_balntry[4]; /* BAL entry point */
- } x_bal; /* BAL-callable function */
-
- struct {
- char x_timestamp[4]; /* time stamp */
- char x_idstring[20]; /* producer identity string */
- } x_ident; /* Producer ident info */
-
-};
-
-
-
-#define SYMENT struct external_syment
-#define SYMESZ sizeof(SYMENT) /* FIXME - calc by hand */
-#define AUXENT union external_auxent
-#define AUXESZ sizeof(AUXENT) /* FIXME - calc by hand */
-
-# define _ETEXT "_etext"
-
-/********************** RELOCATION DIRECTIVES **********************/
-
-struct external_reloc {
- char r_vaddr[4];
- char r_symndx[4];
- char r_type[2];
- char pad[2];
-};
-
-
-/* Relevent values for r_type and i960. Would someone please document them */
-
-
-#define RELOC struct external_reloc
-#define RELSZ 12
-
#define DEFAULT_DATA_SECTION_ALIGNMENT 4
#define DEFAULT_BSS_SECTION_ALIGNMENT 4
#define DEFAULT_TEXT_SECTION_ALIGNMENT 16