summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/elfclass.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-03-01 20:46:26 +0000
committerEric Andersen <andersen@codepoet.org>2002-03-01 20:46:26 +0000
commit9cee42f10dbc5b33866ff137b926a74abd7c1a5b (patch)
tree5211131bde7212ae06d98e9779197cece9b552cc /libc/sysdeps/linux/common/bits/elfclass.h
parent5b470cfcc321c5d50b951fa93a769a4a193ccece (diff)
Major rework of the include files to eliminate redundancy
and to better support each arch. This is a really big patch... -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/bits/elfclass.h')
-rw-r--r--libc/sysdeps/linux/common/bits/elfclass.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/elfclass.h b/libc/sysdeps/linux/common/bits/elfclass.h
new file mode 100644
index 000000000..180227d9e
--- /dev/null
+++ b/libc/sysdeps/linux/common/bits/elfclass.h
@@ -0,0 +1,14 @@
+/* This file specifies the native word size of the machine, which indicates
+ the ELF file class used for executables and shared objects on this
+ machine. */
+
+#ifndef _LINK_H
+# error "Never use <bits/elfclass.h> directly; include <link.h> instead."
+#endif
+
+#include <bits/wordsize.h>
+
+#define __ELF_NATIVE_CLASS __WORDSIZE
+
+/* The entries in the .hash table always have a size of 32 bits. */
+typedef uint32_t Elf_Symndx;