master
h 30 lines 876 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 X86_64_TARGET_ELF_H
9 #define X86_64_TARGET_ELF_H
10
11 #include "target_ptrace.h"
12
13 #define ELF_CLASS ELFCLASS64
14 #define ELF_MACHINE EM_X86_64
15 #define VDSO_HEADER "vdso.c.inc"
16
17 #define HAVE_ELF_HWCAP 1
18 #define HAVE_ELF_PLATFORM 1
19 #define HAVE_ELF_CORE_DUMP 1
20 #define HAVE_GUEST_COMMPAGE 1
21
22 /*
23 * See linux kernel: arch/x86/include/asm/elf.h, where
24 * elf_gregset_t is mapped to struct user_regs_struct via sizeof.
25 */
26 typedef struct target_elf_gregset_t {
27 struct target_user_regs_struct pt;
28 } target_elf_gregset_t;
29
30 #endif