master
h 36 lines 994 Bytes
Raw
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation, or (at your option) any
5 * later version. See the COPYING file in the top-level directory.
6 */
7
8 #ifndef AARCH64_TARGET_ELF_H
9 #define AARCH64_TARGET_ELF_H
10
11 #include "target_ptrace.h"
12
13 #define ELF_MACHINE EM_AARCH64
14 #define ELF_CLASS ELFCLASS64
15
16 #define HAVE_ELF_HWCAP 1
17 #define HAVE_ELF_HWCAP2 1
18 #define HAVE_ELF_PLATFORM 1
19 #define HAVE_ELF_CORE_DUMP 1
20 #define HAVE_ELF_GNU_PROPERTY 1
21
22 /*
23 * See linux kernel: arch/arm64/include/asm/elf.h, where
24 * elf_gregset_t is mapped to struct user_pt_regs via sizeof.
25 */
26 typedef struct target_elf_gregset_t {
27 struct target_user_pt_regs pt;
28 } target_elf_gregset_t;
29
30 #if TARGET_BIG_ENDIAN
31 # define VDSO_HEADER "vdso-be.c.inc"
32 #else
33 # define VDSO_HEADER "vdso-le.c.inc"
34 #endif
35
36 #endif