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
This commit is contained in:
Warner Losh 2023-01-20 16:15:04 -07:00
parent 0cd612664e
commit 2c6b910716

View File

@ -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