Define ARM specific versions of VALID_ELF_HEADER, VALID_ELF_OSABI,

VALID_ELF_ABIVERSION.
This commit is contained in:
Ulrich Drepper 1999-08-10 05:10:14 +00:00
parent 6a06c0af60
commit 26de9a821b
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,14 @@
#include <sys/param.h>
#define VALID_ELF_ABIVERSION(ver) (ver == 0)
#define VALID_ELF_OSABI(osabi) \
(osabi == ELFOSABI_SYSV || osabi == ELFOSABI_ARM)
#define VALID_ELF_HEADER(hdr,exp,size) \
memcmp (hdr,exp,size-2) == 0 \
&& VALID_ELF_OSABI (hdr[EI_OSABI]) \
&& VALID_ELF_ABIVERSION (hdr[EI_ABIVERSION])
/* Return nonzero iff E_MACHINE is compatible with the running host. */
static inline int __attribute__ ((unused))
elf_machine_matches_host (Elf32_Half e_machine)