aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-01-20 23:15:04 +0000
committerWarner Losh <imp@FreeBSD.org>2023-01-20 23:15:04 +0000
commit2c6b910716e93ebc1a2e24b63781419982edbd30 (patch)
tree37f367f21ce183b1508fe729548192815aeb794d
parent0cd612664ebaeaf960ffc8ebe4d3ff44be2a8eef (diff)
downloadsrc-2c6b910716e93ebc1a2e24b63781419982edbd30.tar.gz
src-2c6b910716e93ebc1a2e24b63781419982edbd30.zip
elf_common.h: define EF_ARM_EABI_VERSION
The Linux distributions have had the EF_ARM_EABI_VERSION macro for a while now. The kernel of arm* targets build depends on it being in the host's elf.h environment. Add it here so it gets pulled in so there's one fewer hack required to build a Linux kernel on a FreeBSD host. Sponsored by: Netflix Reviewed by: jrtc27, kib, jhb Differential Revision: https://reviews.freebsd.org/D38139
-rw-r--r--sys/sys/elf_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 9366593b24bd..87b6d1fbaedd 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -332,6 +332,7 @@ typedef struct {
#define EF_ARM_EABI_VER3 0x03000000
#define EF_ARM_EABI_VER4 0x04000000
#define EF_ARM_EABI_VER5 0x05000000
+#define EF_ARM_EABI_VERSION(x) (x & EF_ARM_EABIMASK)
#define EF_ARM_INTERWORK 0x00000004
#define EF_ARM_APCS_26 0x00000008
#define EF_ARM_APCS_FLOAT 0x00000010