From 736d9857d2c5e30426fd4cc01c773e676c6048e0 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 20 Feb 2017 15:16:50 +0800 Subject: [PATCH] recover some ELF symbols for building on Arm, PPC, Sparc & S390. issue #752 --- qemu/include/elf.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qemu/include/elf.h b/qemu/include/elf.h index 5d9b4183..61dd1fb9 100644 --- a/qemu/include/elf.h +++ b/qemu/include/elf.h @@ -116,6 +116,22 @@ #define R_SPARC_5 44 #define R_SPARC_6 45 + +/* Bits present in AT_HWCAP for ARM. */ +#define HWCAP_ARM_IDIVA (1 << 17) + +/* Bits present in AT_HWCAP for s390. */ +#define HWCAP_S390_STFLE 4 + +/* Bits present in AT_HWCAP for Sparc. */ +#define HWCAP_SPARC_VIS3 0x00020000 + +/* Symbolic values for the entries in the auxiliary table + put on the initial stack */ +#define AT_PLATFORM 15 /* string identifying CPU for optimizations */ +#define AT_HWCAP 16 /* arch dependent hints at CPU capabilities */ + + /* * 68k ELF relocation types */