[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 16/17] elf.h: Update EF_ARM_ constants to newer ABI
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 16/17] elf.h: Update EF_ARM_ constants to newer ABI versions |
Date: |
Fri, 6 Apr 2012 19:35:16 +0300 |
From: Peter Maydell <address@hidden>
Update the EF_ARM_* constants (for the ELF header e_flags field)
to include the newer flags specified for later versions of the ABI.
(This set of constants is from include/elf/arm.h from binutils-2.17
and so licensed under GPL-v2-or-later.)
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
elf.h | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/elf.h b/elf.h
index 36bcac4..e1422b8 100644
--- a/elf.h
+++ b/elf.h
@@ -538,6 +538,27 @@ typedef struct {
#define EF_ALIGN8 0x40 /* 8-bit structure alignment is
in use */
#define EF_NEW_ABI 0x80
#define EF_OLD_ABI 0x100
+#define EF_ARM_SOFT_FLOAT 0x200
+#define EF_ARM_VFP_FLOAT 0x400
+#define EF_ARM_MAVERICK_FLOAT 0x800
+
+/* Other constants defined in the ARM ELF spec. version B-01. */
+#define EF_ARM_SYMSARESORTED 0x04 /* NB conflicts with EF_INTERWORK */
+#define EF_ARM_DYNSYMSUSESEGIDX 0x08 /* NB conflicts with EF_APCS26 */
+#define EF_ARM_MAPSYMSFIRST 0x10 /* NB conflicts with EF_APCS_FLOAT */
+#define EF_ARM_EABIMASK 0xFF000000
+
+/* Constants defined in AAELF. */
+#define EF_ARM_BE8 0x00800000
+#define EF_ARM_LE8 0x00400000
+
+#define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK)
+#define EF_ARM_EABI_UNKNOWN 0x00000000
+#define EF_ARM_EABI_VER1 0x01000000
+#define EF_ARM_EABI_VER2 0x02000000
+#define EF_ARM_EABI_VER3 0x03000000
+#define EF_ARM_EABI_VER4 0x04000000
+#define EF_ARM_EABI_VER5 0x05000000
/* Additional symbol types for Thumb */
#define STT_ARM_TFUNC 0xd
--
1.7.5.4
- [Qemu-devel] [PATCH 00/17] linux-user: pending patches, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 09/17] linux-user: take RESERVED_VA into account for g2h_valid(), riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 06/17] linux-user: add BLKSSZGET ioctl wrapper, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 14/17] linux-user/arm/syscall_nr.h: Add syscall number for ppoll, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 10/17] linux-user: resolve reserved_va vma downwards, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 16/17] elf.h: Update EF_ARM_ constants to newer ABI versions,
riku . voipio <=
- [Qemu-devel] [PATCH 12/17] linux-user/syscall.c: Fix indentation in prctl handling, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 03/17] linux-user: implement device mapper ioctls, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 15/17] arm-linux-user: fix elfload.c's AT_HWCAP to reflect cpu features., riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 13/17] linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 08/17] linux-user: fix fallocate, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 02/17] linux-user: target_argv is placed on ts->bprm->argv and can't be freed(), riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 05/17] linux-user: fix BLK ioctl arguments, riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 01/17] linux-user: improve fake /proc/self/stat making `ps` not segfault., riku . voipio, 2012/04/06
- [Qemu-devel] [PATCH 04/17] linux-user: add struct old_dev_t compat, riku . voipio, 2012/04/06