summaryrefslogtreecommitdiff
path: root/sys/arch/pica
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/pica')
-rw-r--r--sys/arch/pica/include/ecoff.h47
1 files changed, 45 insertions, 2 deletions
diff --git a/sys/arch/pica/include/ecoff.h b/sys/arch/pica/include/ecoff.h
index 4eaa323d065..b8d60914e14 100644
--- a/sys/arch/pica/include/ecoff.h
+++ b/sys/arch/pica/include/ecoff.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecoff.h,v 1.2 1996/05/29 20:45:19 pefo Exp $ */
+/* $OpenBSD: ecoff.h,v 1.3 1996/05/30 16:59:54 pefo Exp $ */
/* $NetBSD: ecoff.h,v 1.4 1995/06/16 02:07:33 mellon Exp $ */
/*
@@ -42,6 +42,49 @@
u_long ea_gp_value
#define ECOFF_MAGIC_MIPSEL 0x0162
-#define ECOFF_BADMAG(ex) ((ex)->ef_magic != ECOFF_MAGIC_MIPSEL)
+#define ECOFF_BADMAG(ex) ((ex)->f.f_magic != ECOFF_MAGIC_MIPSEL)
#define ECOFF_SEGMENT_ALIGNMENT(eap) ((eap)->ea_vstamp < 23 ? 8 : 16)
+
+struct ecoff_symhdr {
+ int16_t sh_magic;
+ int16_t sh_vstamp;
+ int32_t sh_linemax;
+ int32_t sh_densenummax;
+ int32_t sh_procmax;
+ int32_t sh_lsymmax;
+ int32_t sh_optsymmax;
+ int32_t sh_auxxymmax;
+ int32_t sh_lstrmax;
+ int32_t sh_estrmax;
+ int32_t sh_fdmax;
+ int32_t sh_rfdmax;
+ int32_t sh_esymmax;
+ long sh_linesize;
+ long sh_lineoff;
+ long sh_densenumoff;
+ long sh_procoff;
+ long sh_lsymoff;
+ long sh_optsymoff;
+ long sh_auxsymoff;
+ long sh_lstroff;
+ long sh_estroff;
+ long sh_fdoff;
+ long sh_rfdoff;
+ long sh_esymoff;
+};
+
+struct ecoff_extsym {
+ long es_value;
+ int es_strindex;
+ unsigned es_type:6;
+ unsigned es_class:5;
+ unsigned :1;
+ unsigned es_symauxindex:20;
+ unsigned es_jmptbl:1;
+ unsigned es_cmain:1;
+ unsigned es_weakext:1;
+ unsigned :29;
+ int es_indexfld;
+};
+