| 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 OPENRISC_TARGET_ELF_H |
| 9 | #define OPENRISC_TARGET_ELF_H |
| 10 | |
| 11 | #include "target_ptrace.h" |
| 12 | |
| 13 | #define ELF_MACHINE EM_OPENRISC |
| 14 | #define ELF_CLASS ELFCLASS32 |
| 15 | |
| 16 | #define HAVE_ELF_CORE_DUMP 1 |
| 17 | |
| 18 | /* |
| 19 | * See linux kernel: arch/openrisc/include/uapi/asm/elf.h, where |
| 20 | * elf_gregset_t is mapped to struct user_regs_struct via sizeof. |
| 21 | */ |
| 22 | typedef struct target_elf_gregset_t { |
| 23 | struct target_user_regs_struct pt; |
| 24 | } target_elf_gregset_t; |
| 25 | |
| 26 | #endif |