]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define ARM specific versions of VALID_ELF_HEADER, VALID_ELF_OSABI,
authorUlrich Drepper <drepper@redhat.com>
Tue, 10 Aug 1999 05:14:30 +0000 (05:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 10 Aug 1999 05:14:30 +0000 (05:14 +0000)
VALID_ELF_ABIVERSION.

sysdeps/arm/dl-machine.h

index 754a6caa135907c4123df89c486cf4ecca73cf03..eea2f4ced0e58894514d196a25c013ac933c4c18 100644 (file)
 
 #include <assert.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)