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