From e79137b2fb8bda5e06ee2a618964604831d440cc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 10 Aug 1999 05:41:26 +0000 Subject: Update. 1999-08-09 Scott Bambrough * elf/elf.h: Added definition of ELFOSABI_ARM. * elf/dl-load.c (_dl_map_object_from_fd): Use VALID_ELF_HEADER, VALID_ELF_OSABI, VALID_ELF_ABIVERSION to decide whether an object's header and ABI values are acceptable. (VALID_ELF_HEADER): New macro; provide default definition. (VALID_ELF_OSABI): New macro; provide default definition. (VALID_ELF_ABIVERSION): New macro; provide default definition. * sysdeps/arm/dl-machine.h Define ARM specific versions of VALID_ELF_HEADER, VALID_ELF_OSABI, VALID_ELF_ABIVERSION. 1999-08-09 Andreas Schwab * inet/tst-ipnode.c (main): Don't compare integer with NULL. 1999-08-09 Thorsten Kukuk * sunrpc/svc_run.c (svc_run): Free my_pollfd. 1999-08-09 Andreas Schwab * sunrpc/svc.c (svc_getreq_poll): Fix argument of xprt_unregister. --- sysdeps/arm/dl-machine.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sysdeps/arm') diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h index d112e3fa9f..25e2f06321 100644 --- a/sysdeps/arm/dl-machine.h +++ b/sysdeps/arm/dl-machine.h @@ -24,6 +24,14 @@ #include +#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) -- cgit 1.4.1