linux-user: Move elf parameters to {arm,aarch64}/target_elf.h
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
73addb3ffc
commit
f8eff2334a
3 changed files with 13 additions and 25 deletions
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
#include "target_ptrace.h"
|
||||
|
||||
#define ELF_ARCH EM_AARCH64
|
||||
#define ELF_CLASS ELFCLASS64
|
||||
|
||||
#define HAVE_ELF_HWCAP 1
|
||||
#define HAVE_ELF_HWCAP2 1
|
||||
#define HAVE_ELF_PLATFORM 1
|
||||
|
|
@ -23,4 +26,10 @@ typedef struct target_elf_gregset_t {
|
|||
struct target_user_pt_regs pt;
|
||||
} target_elf_gregset_t;
|
||||
|
||||
#if TARGET_BIG_ENDIAN
|
||||
# define VDSO_HEADER "vdso-be.c.inc"
|
||||
#else
|
||||
# define VDSO_HEADER "vdso-le.c.inc"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@
|
|||
|
||||
#include "target_ptrace.h"
|
||||
|
||||
#define ELF_ARCH EM_ARM
|
||||
#define ELF_CLASS ELFCLASS32
|
||||
#define EXSTACK_DEFAULT true
|
||||
|
||||
#define HAVE_ELF_HWCAP 1
|
||||
#define HAVE_ELF_HWCAP2 1
|
||||
#define HAVE_ELF_PLATFORM 1
|
||||
|
|
|
|||
|
|
@ -130,31 +130,6 @@ typedef abi_uint target_gid_t;
|
|||
#endif
|
||||
typedef abi_int target_pid_t;
|
||||
|
||||
#ifdef TARGET_ARM
|
||||
|
||||
#ifndef TARGET_AARCH64
|
||||
/* 32 bit ARM definitions */
|
||||
|
||||
#define ELF_ARCH EM_ARM
|
||||
#define ELF_CLASS ELFCLASS32
|
||||
#define EXSTACK_DEFAULT true
|
||||
|
||||
#else
|
||||
/* 64 bit ARM definitions */
|
||||
|
||||
#define ELF_ARCH EM_AARCH64
|
||||
#define ELF_CLASS ELFCLASS64
|
||||
|
||||
#if TARGET_BIG_ENDIAN
|
||||
# define VDSO_HEADER "vdso-be.c.inc"
|
||||
#else
|
||||
# define VDSO_HEADER "vdso-le.c.inc"
|
||||
#endif
|
||||
|
||||
#endif /* not TARGET_AARCH64 */
|
||||
|
||||
#endif /* TARGET_ARM */
|
||||
|
||||
#ifdef TARGET_SPARC
|
||||
|
||||
#ifndef TARGET_SPARC64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue