| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* |
| 3 | * Copyright (c) 2021 Loongson Technology Corporation Limited |
| 4 | */ |
| 5 | |
| 6 | #ifndef LOONGARCH_TARGET_ELF_H |
| 7 | #define LOONGARCH_TARGET_ELF_H |
| 8 | |
| 9 | #include "target_ptrace.h" |
| 10 | |
| 11 | #define ELF_CLASS ELFCLASS64 |
| 12 | #define ELF_MACHINE EM_LOONGARCH |
| 13 | #define EXSTACK_DEFAULT true |
| 14 | #define VDSO_HEADER "vdso.c.inc" |
| 15 | |
| 16 | #define HAVE_ELF_HWCAP 1 |
| 17 | #define HAVE_ELF_PLATFORM 1 |
| 18 | #define HAVE_ELF_CORE_DUMP 1 |
| 19 | |
| 20 | /* See linux kernel: arch/loongarch/include/asm/elf.h */ |
| 21 | typedef struct target_elf_gregset_t { |
| 22 | struct target_user_pt_regs pt; |
| 23 | } target_elf_gregset_t; |
| 24 | |
| 25 | #endif |