projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92404bc
)
Define ARM specific versions of VALID_ELF_HEADER, VALID_ELF_OSABI,
author
drepper
<drepper>
Tue, 10 Aug 1999 05:10:14 +0000
(
05:10
+0000)
committer
drepper
<drepper>
Tue, 10 Aug 1999 05:10:14 +0000
(
05:10
+0000)
VALID_ELF_ABIVERSION.
sysdeps/arm/dl-machine.h
patch
|
blob
|
history
diff --git
a/sysdeps/arm/dl-machine.h
b/sysdeps/arm/dl-machine.h
index
d112e3f
..
25e2f06
100644
(file)
--- a/
sysdeps/arm/dl-machine.h
+++ b/
sysdeps/arm/dl-machine.h
@@
-24,6
+24,14
@@
#include <sys/param.h>
#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)
/* Return nonzero iff E_MACHINE is compatible with the running host. */
static inline int __attribute__ ((unused))
elf_machine_matches_host (Elf32_Half e_machine)