From 20a4f723d79ae14f0c22de96e0af80e1c5d985af Mon Sep 17 00:00:00 2001 From: mellon Date: Wed, 18 Jan 1995 06:14:58 +0000 Subject: [PATCH] 4.4BSD binary format --- sys/arch/mips/include/bsd-aout.h | 33 ++++++++++++++++++++++++++++++++ sys/arch/pmax/include/bsd-aout.h | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 sys/arch/mips/include/bsd-aout.h create mode 100644 sys/arch/pmax/include/bsd-aout.h diff --git a/sys/arch/mips/include/bsd-aout.h b/sys/arch/mips/include/bsd-aout.h new file mode 100644 index 000000000000..d1d0e1c1c892 --- /dev/null +++ b/sys/arch/mips/include/bsd-aout.h @@ -0,0 +1,33 @@ +/* bsd-aout.h + + 4.4bsd a.out format, for backwards compatibility... */ + +#ifndef __MACHINE_BSD_AOUT_H__ +#define __MACHINE_BSD_AOUT_H__ +#define BSD_OMAGIC 0407 /* old impure format */ +#define BSD_NMAGIC 0410 /* read-only text */ +#define BSD_ZMAGIC 0413 /* demand load format */ + +struct bsd_aouthdr { +#if BYTE_ORDER == BIG_ENDIAN + u_short a_mid; /* machine ID */ + u_short a_magic; /* magic number */ +#else + u_short a_magic; /* magic number */ + u_short a_mid; /* machine ID */ +#endif + + u_long a_text; /* text segment size */ + u_long a_data; /* initialized data size */ + u_long a_bss; /* uninitialized data size */ + u_long a_syms; /* symbol table size */ + u_long a_entry; /* entry point */ + u_long a_trsize; /* text relocation size */ + u_long a_drsize; /* data relocation size */ +}; + +#ifndef KERNEL +#define _AOUT_INCLUDE_ +#include +#endif /* KERNEL */ +#endif /* __MACHINE_BSD_AOUT_H__ */ diff --git a/sys/arch/pmax/include/bsd-aout.h b/sys/arch/pmax/include/bsd-aout.h new file mode 100644 index 000000000000..d1d0e1c1c892 --- /dev/null +++ b/sys/arch/pmax/include/bsd-aout.h @@ -0,0 +1,33 @@ +/* bsd-aout.h + + 4.4bsd a.out format, for backwards compatibility... */ + +#ifndef __MACHINE_BSD_AOUT_H__ +#define __MACHINE_BSD_AOUT_H__ +#define BSD_OMAGIC 0407 /* old impure format */ +#define BSD_NMAGIC 0410 /* read-only text */ +#define BSD_ZMAGIC 0413 /* demand load format */ + +struct bsd_aouthdr { +#if BYTE_ORDER == BIG_ENDIAN + u_short a_mid; /* machine ID */ + u_short a_magic; /* magic number */ +#else + u_short a_magic; /* magic number */ + u_short a_mid; /* machine ID */ +#endif + + u_long a_text; /* text segment size */ + u_long a_data; /* initialized data size */ + u_long a_bss; /* uninitialized data size */ + u_long a_syms; /* symbol table size */ + u_long a_entry; /* entry point */ + u_long a_trsize; /* text relocation size */ + u_long a_drsize; /* data relocation size */ +}; + +#ifndef KERNEL +#define _AOUT_INCLUDE_ +#include +#endif /* KERNEL */ +#endif /* __MACHINE_BSD_AOUT_H__ */