about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-05-26 20:59:55 +0200
committerThomas Schwinge <thomas@codesourcery.com>2013-08-29 12:22:18 +0200
commitd821f07c9e9575b47df87cc38f26c31e09b3ce0d (patch)
tree4b7b71793a6017324dbbe868cbb906bb27cfb6ef /sysdeps/unix
parentc54290cf086940e3859b236d0fb880bacab2288b (diff)
downloadglibc-d821f07c9e9575b47df87cc38f26c31e09b3ce0d.tar.gz
glibc-d821f07c9e9575b47df87cc38f26c31e09b3ce0d.tar.xz
glibc-d821f07c9e9575b47df87cc38f26c31e09b3ce0d.zip
Support ELFOSABI_GNU on all GNU systems.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/ldsodefs.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/sysdeps/unix/sysv/linux/ldsodefs.h b/sysdeps/unix/sysv/linux/ldsodefs.h
index c1b1543ab2..ef4866727c 100644
--- a/sysdeps/unix/sysv/linux/ldsodefs.h
+++ b/sysdeps/unix/sysv/linux/ldsodefs.h
@@ -18,14 +18,11 @@
 
 #ifndef	_LDSODEFS_H
 
-#include <libc-abis.h>
 #include <kernel-features.h>
 
 /* Get the real definitions.  */
 #include_next <ldsodefs.h>
 
-/* Now define our stuff.  */
-
 /* We have the auxiliary vector.  */
 #define HAVE_AUX_VECTOR
 
@@ -41,24 +38,4 @@
    up the page size information.  */
 #define HAVE_AUX_PAGESIZE
 
-/* Accept binaries which identify the binary as using GNU extensions.  */
-#define VALID_ELF_HEADER(hdr,exp,size)	(memcmp (hdr, exp, size) == 0	\
-					 || memcmp (hdr, expected2, size) == 0)
-#define VALID_ELF_OSABI(osabi)		(osabi == ELFOSABI_SYSV \
-					 || osabi == ELFOSABI_GNU)
-#define VALID_ELF_ABIVERSION(osabi,ver) \
-  (ver == 0 || (osabi == ELFOSABI_GNU && ver < LIBC_ABI_MAX))
-#define MORE_ELF_HEADER_DATA \
-  static const unsigned char expected2[EI_PAD] =	\
-  {							\
-    [EI_MAG0] = ELFMAG0,				\
-    [EI_MAG1] = ELFMAG1,				\
-    [EI_MAG2] = ELFMAG2,				\
-    [EI_MAG3] = ELFMAG3,				\
-    [EI_CLASS] = ELFW(CLASS),				\
-    [EI_DATA] = byteorder,				\
-    [EI_VERSION] = EV_CURRENT,				\
-    [EI_OSABI] = ELFOSABI_GNU				\
-  }
-
 #endif /* ldsodefs.h */