(os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
authorRoland McGrath <roland@gnu.org>
Sat, 13 May 1995 06:16:24 +0000 (06:16 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 13 May 1995 06:16:24 +0000 (06:16 +0000)
configure.in
elf.h [new file with mode: 0644]
elf/elf.h

index bf2e2b1..e29dee6 100644 (file)
@@ -115,7 +115,7 @@ gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
   gnu_ld=yes gnu_as=yes
 esac
 case "$os" in
-gnu*elf* | linux* | sysv4* | solaris2*)
+gnu* | linux* | sysv4* | solaris2*)
   # These systems always use the ELF format.
   elf=yes
 esac
diff --git a/elf.h b/elf.h
new file mode 100644 (file)
index 0000000..8a1764f
--- /dev/null
+++ b/elf.h
@@ -0,0 +1 @@
+#include <elf/elf.h>
index 433aa47..87cf109 100644 (file)
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -72,6 +72,10 @@ typedef struct
 #define EI_MAG3                3               /* File identification byte 3 index */
 #define ELFMAG3                'F'             /* Magic number byte 3 */
 
+/* Conglomeration of the identification bytes, for easy testing as a word.  */
+#define        ELFMAG          "\x7fELF"
+#define        SELFMAG         4
+
 #define EI_CLASS       4               /* File class byte index */
 #define ELFCLASSNONE   0               /* Invalid class */
 #define ELFCLASS32     1               /* 32-bit objects */