diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-29 03:05:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-29 03:05:15 +0000 |
commit | 92383d4847f9886583809f9d430a3411aa6e925c (patch) | |
tree | 8dd61408135e5791358ad10abf3336e19c8c52f9 /sys | |
parent | 84caeb3aa64af21636ab0464cce327de7bc4cc78 (diff) |
enable ELF/a.out/ECOFF in machine/exec.h
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/amiga/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/arm32/include/exec.h | 6 | ||||
-rw-r--r-- | sys/arch/atari/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/hp300/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/i386/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/mac68k/include/exec.h | 9 | ||||
-rw-r--r-- | sys/arch/mvme68k/include/exec.h | 9 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/pc532/include/exec.h | 6 | ||||
-rw-r--r-- | sys/arch/pica/include/exec.h | 8 | ||||
-rw-r--r-- | sys/arch/pmax/include/exec.h | 8 | ||||
-rw-r--r-- | sys/arch/sun3/include/exec.h | 7 | ||||
-rw-r--r-- | sys/arch/vax/include/exec.h | 6 | ||||
-rw-r--r-- | sys/sys/exec_elf.h | 4 |
15 files changed, 102 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/exec.h b/sys/arch/alpha/include/exec.h index 7ff3e50e63a..882beb5e346 100644 --- a/sys/arch/alpha/include/exec.h +++ b/sys/arch/alpha/include/exec.h @@ -35,4 +35,11 @@ /* Size of a page in an object file. */ #define __LDPGSZ 8192 +#define ELF_TARG_CLASS ELFCLASS64 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_ALPHA + +#define DO_AOUT /* support a.out */ +#define DO_ECOFF /* support ECOFF */ + #endif /* !_ALPHA_EXEC_H_ */ diff --git a/sys/arch/amiga/include/exec.h b/sys/arch/amiga/include/exec.h index 5c978fef3e5..5eaeccc4a3b 100644 --- a/sys/arch/amiga/include/exec.h +++ b/sys/arch/amiga/include/exec.h @@ -45,4 +45,11 @@ struct relocation_info_m68k { }; #define relocation_info relocation_info_m68k +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_68K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _MACHINE_EXEC_H_ */ diff --git a/sys/arch/arm32/include/exec.h b/sys/arch/arm32/include/exec.h index 00cab9c6401..a366d2f339f 100644 --- a/sys/arch/arm32/include/exec.h +++ b/sys/arch/arm32/include/exec.h @@ -56,4 +56,10 @@ struct relocation_info_arm6 { /* No special executable format */ #define cpu_exec_aout_makecmds(a, b) ENOEXEC +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_ARM + +#define DO_AOUT /* support a.out */ + #endif /* _ARM_EXEC_H_ */ diff --git a/sys/arch/atari/include/exec.h b/sys/arch/atari/include/exec.h index 6227cea790d..73355376a1e 100644 --- a/sys/arch/atari/include/exec.h +++ b/sys/arch/atari/include/exec.h @@ -46,4 +46,11 @@ struct relocation_info_m68k { }; #define relocation_info relocation_info_m68k +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_68K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _MACHINE_EXEC_H_ */ diff --git a/sys/arch/hp300/include/exec.h b/sys/arch/hp300/include/exec.h index 5e068296ea5..a82cc42dea7 100644 --- a/sys/arch/hp300/include/exec.h +++ b/sys/arch/hp300/include/exec.h @@ -46,4 +46,11 @@ struct relocation_info_m68k { }; #define relocation_info relocation_info_m68k +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_68K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _MACHINE_EXEC_H_ */ diff --git a/sys/arch/i386/include/exec.h b/sys/arch/i386/include/exec.h index ac7a9002012..65935f190bb 100644 --- a/sys/arch/i386/include/exec.h +++ b/sys/arch/i386/include/exec.h @@ -46,4 +46,11 @@ struct relocation_info_i386 { }; #define relocation_info relocation_info_i386 +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_386 + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _I386_EXEC_H_ */ diff --git a/sys/arch/mac68k/include/exec.h b/sys/arch/mac68k/include/exec.h index b51243ca8fe..a2867f86c67 100644 --- a/sys/arch/mac68k/include/exec.h +++ b/sys/arch/mac68k/include/exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.h,v 1.3 1996/05/26 18:35:49 briggs Exp $ */ +/* $OpenBSD: exec.h,v 1.4 1996/05/29 03:05:00 deraadt Exp $ */ /* $NetBSD: exec.h,v 1.8 1996/05/05 06:17:40 briggs Exp $ */ /*- @@ -55,4 +55,11 @@ struct relocation_info_mac68k { }; #define relocation_info relocation_info_mac68k +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_68K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _EXEC_MACHINE_ */ diff --git a/sys/arch/mvme68k/include/exec.h b/sys/arch/mvme68k/include/exec.h index af7c1880873..d16cf3bc72b 100644 --- a/sys/arch/mvme68k/include/exec.h +++ b/sys/arch/mvme68k/include/exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.h,v 1.3 1996/04/28 10:56:16 deraadt Exp $ */ +/* $OpenBSD: exec.h,v 1.4 1996/05/29 03:05:01 deraadt Exp $ */ /* * Copyright (c) 1993 Christopher G. Demetriou @@ -45,4 +45,11 @@ struct relocation_info_m68k { }; #define relocation_info relocation_info_m68k +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_68K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _MACHINE_EXEC_H_ */ diff --git a/sys/arch/mvme88k/include/exec.h b/sys/arch/mvme88k/include/exec.h index 23e5ea9b6c0..bf2d01aa06e 100644 --- a/sys/arch/mvme88k/include/exec.h +++ b/sys/arch/mvme88k/include/exec.h @@ -324,4 +324,11 @@ struct relocation_info } #endif +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_88K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* __A_OUT_GNU_H__ */ diff --git a/sys/arch/pc532/include/exec.h b/sys/arch/pc532/include/exec.h index ecbac2d452f..780505f14f8 100644 --- a/sys/arch/pc532/include/exec.h +++ b/sys/arch/pc532/include/exec.h @@ -47,4 +47,10 @@ struct relocation_info_pc532 { }; #define relocation_info relocation_info_pc532 +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_32K + +#define DO_AOUT /* support a.out */ + #endif /* _PC532_EXEC_H_ */ diff --git a/sys/arch/pica/include/exec.h b/sys/arch/pica/include/exec.h index 87dde64bf8e..9e8be1b5d21 100644 --- a/sys/arch/pica/include/exec.h +++ b/sys/arch/pica/include/exec.h @@ -37,4 +37,12 @@ #define __LDPGSZ 4096 +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_MIPS + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ +#define DO_ECOFF /* support ECOFF */ + #include <machine/reloc.h> diff --git a/sys/arch/pmax/include/exec.h b/sys/arch/pmax/include/exec.h index 87dde64bf8e..8e25259e2d9 100644 --- a/sys/arch/pmax/include/exec.h +++ b/sys/arch/pmax/include/exec.h @@ -37,4 +37,12 @@ #define __LDPGSZ 4096 +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_MIPS + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ +#define DO_ECOFF /* support ecoff */ + #include <machine/reloc.h> diff --git a/sys/arch/sun3/include/exec.h b/sys/arch/sun3/include/exec.h index b28a4ea597d..53310fea489 100644 --- a/sys/arch/sun3/include/exec.h +++ b/sys/arch/sun3/include/exec.h @@ -44,4 +44,11 @@ struct relocation_info_m68k { }; #define relocation_info relocation_info_m68k +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB +#define ELF_TARG_MACH EM_68K + +#define DO_AOUT /* support a.out */ +#define DO_ELF /* support ELF */ + #endif /* _LDPGSZ */ diff --git a/sys/arch/vax/include/exec.h b/sys/arch/vax/include/exec.h index 3493e317afa..684cd2ab3c3 100644 --- a/sys/arch/vax/include/exec.h +++ b/sys/arch/vax/include/exec.h @@ -46,4 +46,10 @@ struct relocation_info_vax { }; #define relocation_info relocation_info_vax +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_VAX + +#define DO_AOUT /* support a.out */ + #endif /* _VAX_EXEC_H_ */ diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index 9b920bb4ac2..e7074490af1 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.4 1996/05/22 07:44:29 etheisen Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.5 1996/05/29 03:04:51 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen * All rights reserved. @@ -423,4 +423,6 @@ struct elf_oshdr { #endif /* _KERNEL */ +#define ELF_TARG_VER 1 /* The ver for which this code is intended */ + #endif /* _SYS_EXEC_ELF_H_ */ |