From bf9380893af9d2037d865eeff7f85d0ed5850382 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 30 Aug 1997 18:59:48 +0000 Subject: [PATCH] Define some machine characteristics using symbol naming on conventions in place in the other BSD's. --- sys/amd64/include/elf.h | 8 +++++++- sys/i386/include/elf.h | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/elf.h b/sys/amd64/include/elf.h index dd56d9f73b49..34478e787169 100644 --- a/sys/amd64/include/elf.h +++ b/sys/amd64/include/elf.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf.h,v 1.1 1997/05/21 23:07:28 jdp Exp $ */ #ifndef _MACHINE_ELF_H_ @@ -103,4 +103,10 @@ typedef struct { /* Auxiliary vector entry on initial stack */ #define R_386_COUNT 11 /* Count of defined relocation types. */ +/* Define "machine" characteristics */ +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_386 +#define ELF_TARG_VER 1 + #endif /* !_MACHINE_ELF_H_ */ diff --git a/sys/i386/include/elf.h b/sys/i386/include/elf.h index dd56d9f73b49..34478e787169 100644 --- a/sys/i386/include/elf.h +++ b/sys/i386/include/elf.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf.h,v 1.1 1997/05/21 23:07:28 jdp Exp $ */ #ifndef _MACHINE_ELF_H_ @@ -103,4 +103,10 @@ typedef struct { /* Auxiliary vector entry on initial stack */ #define R_386_COUNT 11 /* Count of defined relocation types. */ +/* Define "machine" characteristics */ +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_386 +#define ELF_TARG_VER 1 + #endif /* !_MACHINE_ELF_H_ */