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 | |
parent | 84caeb3aa64af21636ab0464cce327de7bc4cc78 (diff) |
enable ELF/a.out/ECOFF in machine/exec.h
-rw-r--r-- | lib/libc/gen/Makefile.inc | 7 | ||||
-rw-r--r-- | lib/libc/gen/elf_hash.c | 36 | ||||
-rw-r--r-- | lib/libc/gen/elf_sup.c | 60 | ||||
-rw-r--r-- | lib/libc/gen/exec_sup.h | 68 | ||||
-rw-r--r-- | lib/libc/gen/nlist.c | 47 | ||||
-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 |
20 files changed, 170 insertions, 153 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index fa527cc1402..382515210d7 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.4 1996/05/28 14:11:20 etheisen Exp $ +# $OpenBSD: Makefile.inc,v 1.5 1996/05/29 03:05:11 deraadt Exp $ # $NetBSD: Makefile.inc,v 1.71 1996/04/15 23:44:53 jtc Exp $ # @(#)Makefile.inc 8.3 (Berkeley) 4/16/94 @@ -30,11 +30,6 @@ SRCS+= _err.c _errx.c _sys_errlist.c _sys_nerr.c _sys_siglist.c \ # _setjmp() fabs() frexp() infinity isinf() ldexp() modf() # setjmp() sigsetjmp() -# machine dependant ELF ABI v1 libc support -.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "mips") -SRCS+= elf_sup.c -.endif - .include "${.CURDIR}/arch/${MACHINE_ARCH}/gen/Makefile.inc" .ifdef _NOTDEF_XXX_ diff --git a/lib/libc/gen/elf_hash.c b/lib/libc/gen/elf_hash.c index 3ed039f5d00..a5655f7ebf8 100644 --- a/lib/libc/gen/elf_hash.c +++ b/lib/libc/gen/elf_hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf_hash.c,v 1.1 1996/05/28 14:11:20 etheisen Exp $ */ +/* $OpenBSD: elf_hash.c,v 1.2 1996/05/29 03:05:12 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen * All rights reserved. @@ -25,6 +25,19 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +#include <sys/types.h> +#include <sys/param.h> +#include <sys/mman.h> +#include <sys/stat.h> +#include <sys/file.h> + +#include <errno.h> +#include <stdio.h> +#include <string.h> +#include <unistd.h> +#include <sys/exec.h> + #include <elf_abi.h> /* @@ -34,16 +47,15 @@ */ unsigned long elf_hash(name) - const unsigned char *name; + const unsigned char *name; { - register unsigned long h = 0, g; + register unsigned long h = 0, g; - while(*name) - { - h = (h << 4) + *name++; - if (g = h & 0xf0000000) - h ^= g >> 24; - h &= ~g; - } - return h; -} /* end elf_hash() */ + while (*name) { + h = (h << 4) + *name++; + if (g = h & 0xf0000000) + h ^= g >> 24; + h &= ~g; + } + return h; +} diff --git a/lib/libc/gen/elf_sup.c b/lib/libc/gen/elf_sup.c deleted file mode 100644 index 38bdce85ba5..00000000000 --- a/lib/libc/gen/elf_sup.c +++ /dev/null @@ -1,60 +0,0 @@ -/* $OpenBSD: elf_sup.c,v 1.2 1996/05/28 14:11:21 etheisen Exp $ */ -/* - * Copyright (c) 1995, 1996 Erik Theisen - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#include "exec_sup.h" - -/* - * __elf_is_okay__ - Determine if ehdr really - * is ELF and valid for the target platform. - * - * WARNING: This is NOT a ELF ABI function and - * as such it's use should be restricted. - */ -int -__elf_is_okay__(ehdr) - register Elf32_Ehdr *ehdr; -{ - register int retval = 0; - - /* - * We need to check magic, class size, endianess, - * and version before we look at the rest of the - * Elf32_Ehdr structure. These few elements are - * represented in a machine independant fashion. - */ - if(IS_ELF(*ehdr) && - ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && - ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && - ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) { - - /* Now check the machine dependant header */ - if(ehdr->e_machine == ELF_TARG_MACH && - ehdr->e_version == ELF_TARG_VER) - retval = 1; - } - return retval; -} /* end __elf_is_okay__() */ diff --git a/lib/libc/gen/exec_sup.h b/lib/libc/gen/exec_sup.h deleted file mode 100644 index f46ca9e0b11..00000000000 --- a/lib/libc/gen/exec_sup.h +++ /dev/null @@ -1,68 +0,0 @@ -/* $OpenBSD: exec_sup.h,v 1.1 1996/05/28 14:11:21 etheisen Exp $ */ -/* - * Copyright (c) 1995, 1996 Erik Theisen - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _EXEC_SUP_H_ -#define _EXEC_SUP_H_ - -#define DO_AOUT /* Always do a.out */ - -#if defined (__i386__) || defined (__mips__) -#define DO_ELF -#define ELF_TARG_VER 1 /* The ver for which this code is intended */ -#include <elf_abi.h> -int __elf_is_okay__ (Elf32_Ehdr *ehdr); /* XXX - should this be hidden??? */ -#endif /* ELF machines */ - -#if defined (__i386__) - #define ELF_TARG_CLASS ELFCLASS32 - #define ELF_TARG_DATA ELFDATA2LSB - #define ELF_TARG_MACH EM_386 - -#elif defined (__mips__) - #define ELF_TARG_CLASS ELFCLASS32 - #define ELF_TARG_DATA ELFDATA2LSB - #define ELF_TARG_MACH EM_MIPS - -#elif defined (__alpha__) - #define DO_ECOFF - -#elif defined (pica) - #define DO_ECOFF - -#endif /* Machines */ - -#ifdef DO_AOUT -#include <sys/types.h> -#include <a.out.h> -#endif - -#ifdef DO_ECOFF -#include <sys/exec_ecoff.h> -#endif - -#endif /* _EXEC_SUP_H_ */ diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index 1f5458189a0..cf0b63e3398 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.8 1996/05/28 14:11:21 etheisen Exp $ */ +/* $OpenBSD: nlist.c,v 1.9 1996/05/29 03:05:14 deraadt Exp $ */ /* $NetBSD: nlist.c,v 1.7 1996/05/16 20:49:20 cgd Exp $ */ /* @@ -35,11 +35,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.8 1996/05/28 14:11:21 etheisen Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.9 1996/05/29 03:05:14 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ -#include "exec_sup.h" /* determine targ OMFs for a given machine */ - +#include <sys/types.h> #include <sys/param.h> #include <sys/mman.h> #include <sys/stat.h> @@ -49,6 +48,15 @@ static char rcsid[] = "$OpenBSD: nlist.c,v 1.8 1996/05/28 14:11:21 etheisen Exp #include <stdio.h> #include <string.h> #include <unistd.h> +#include <a.out.h> /* pulls in nlist.h */ + +#ifdef DO_ELF +#include <elf_abi.h> +#endif + +#ifdef DO_ECOFF +#include <sys/exec_ecoff.h> +#endif #define ISLAST(p) (p->n_un.n_name == 0 || p->n_un.n_name[0] == 0) @@ -243,6 +251,37 @@ out: #endif /* DO_ECOFF */ #ifdef DO_ELF +/* + * __elf_is_okay__ - Determine if ehdr really + * is ELF and valid for the target platform. + * + * WARNING: This is NOT a ELF ABI function and + * as such it's use should be restricted. + */ +int +__elf_is_okay__(ehdr) + register Elf32_Ehdr *ehdr; +{ + register int retval = 0; + /* + * We need to check magic, class size, endianess, + * and version before we look at the rest of the + * Elf32_Ehdr structure. These few elements are + * represented in a machine independant fashion. + */ + if (IS_ELF(*ehdr) && + ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && + ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && + ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) { + + /* Now check the machine dependant header */ + if (ehdr->e_machine == ELF_TARG_MACH && + ehdr->e_version == ELF_TARG_VER) + retval = 1; + } + return retval; +} + int __elf_fdnlist(fd, list) register int fd; 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_ */ |