| 1 | /* |
| 2 | * x86_64 ELF definitions |
| 3 | * |
| 4 | * Copyright (c) 2015 Stacey D. Son |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | #ifndef TARGET_ARCH_ELF_H |
| 9 | #define TARGET_ARCH_ELF_H |
| 10 | |
| 11 | #define ELF_ET_DYN_LOAD_ADDR 0x01021000 |
| 12 | #define elf_check_arch(x) (((x) == ELF_ARCH)) |
| 13 | |
| 14 | #define ELF_HWCAP 0 /* FreeBSD doesn't do AT_HWCAP{,2} on x86 */ |
| 15 | |
| 16 | #define ELF_CLASS ELFCLASS64 |
| 17 | #define ELF_DATA ELFDATA2LSB |
| 18 | #define ELF_ARCH EM_X86_64 |
| 19 | |
| 20 | #define USE_ELF_CORE_DUMP |
| 21 | #define ELF_EXEC_PAGESIZE 4096 |
| 22 | |
| 23 | #endif /* TARGET_ARCH_ELF_H */ |