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