xref: /openbsd-src/sys/arch/i386/include/exec.h (revision 043da68552b3f08939b7a1b6b17a69f1860b0781)
1*043da685Sguenther /*	$OpenBSD: exec.h,v 1.14 2017/02/08 05:09:25 guenther Exp $	*/
2df930be7Sderaadt /*	$NetBSD: exec.h,v 1.6 1994/10/27 04:16:05 cgd Exp $	*/
3df930be7Sderaadt 
4df930be7Sderaadt /*
5df930be7Sderaadt  * Copyright (c) 1993 Christopher G. Demetriou
6df930be7Sderaadt  * All rights reserved.
7df930be7Sderaadt  *
8df930be7Sderaadt  * Redistribution and use in source and binary forms, with or without
9df930be7Sderaadt  * modification, are permitted provided that the following conditions
10df930be7Sderaadt  * are met:
11df930be7Sderaadt  * 1. Redistributions of source code must retain the above copyright
12df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer.
13df930be7Sderaadt  * 2. Redistributions in binary form must reproduce the above copyright
14df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer in the
15df930be7Sderaadt  *    documentation and/or other materials provided with the distribution.
16df930be7Sderaadt  * 3. The name of the author may not be used to endorse or promote products
17df930be7Sderaadt  *    derived from this software without specific prior written permission
18df930be7Sderaadt  *
19df930be7Sderaadt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20df930be7Sderaadt  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21df930be7Sderaadt  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22df930be7Sderaadt  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23df930be7Sderaadt  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24df930be7Sderaadt  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25df930be7Sderaadt  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26df930be7Sderaadt  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27df930be7Sderaadt  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28df930be7Sderaadt  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29df930be7Sderaadt  */
30df930be7Sderaadt 
312fa72412Spirofti #ifndef _MACHINE_EXEC_H_
322fa72412Spirofti #define _MACHINE_EXEC_H_
33df930be7Sderaadt 
34df930be7Sderaadt #define __LDPGSZ	4096
35df930be7Sderaadt 
36710c1cd8Sart #define ARCH_ELFSIZE		32
37710c1cd8Sart 
381edf37edSderaadt #define ELF_TARG_CLASS		ELFCLASS32
391edf37edSderaadt #define ELF_TARG_DATA		ELFDATA2LSB
40ee048c4dSetheisen #define ELF_TARG_MACH		EM_386 /* XXX - EM_486 is currently unused
41ee048c4dSetheisen                                           by all OSs/compilers/linkers */
421edf37edSderaadt 
432fa72412Spirofti #endif  /* _MACHINE_EXEC_H_ */
44