summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/elf.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-07-31 03:46:39 +0000
committerjake <jake@FreeBSD.org>2001-07-31 03:46:39 +0000
commit21b80f4133cacd90a3c9ee8a77c9616618c61c46 (patch)
treebb7222b6df769fb8c1baffd9425be229c7589573 /sys/amd64/include/elf.h
parent1b33ddb75343a3261717f1fbd107de8d47f38602 (diff)
downloadFreeBSD-src-21b80f4133cacd90a3c9ee8a77c9616618c61c46.zip
FreeBSD-src-21b80f4133cacd90a3c9ee8a77c9616618c61c46.tar.gz
Use a machine dependent type, Elf_Hashelt, for the elements of the elf
dynamic symbol table buckets and chains. The sparc64 toolchain uses 32 bit .hash entries, unlike other 64 bits architectures (alpha), which use 64 bit entries. Discussed with: dfr, jdp
Diffstat (limited to 'sys/amd64/include/elf.h')
-rw-r--r--sys/amd64/include/elf.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/amd64/include/elf.h b/sys/amd64/include/elf.h
index 314dd9c..eb411d8 100644
--- a/sys/amd64/include/elf.h
+++ b/sys/amd64/include/elf.h
@@ -60,6 +60,17 @@ typedef struct { /* Auxiliary vector entry on initial stack */
__ElfType(Auxinfo);
+/*
+ * Types of dynamic symbol hash table bucket and chain elements.
+ *
+ * This is inconsistent among 64 bit architectures, so a machine dependent
+ * typedef is required.
+ */
+
+typedef Elf32_Off Elf32_Hashelt;
+
+__ElfType(Hashelt);
+
/* Values for a_type. */
#define AT_NULL 0 /* Terminates the vector. */
#define AT_IGNORE 1 /* Ignored entry. */
OpenPOWER on IntegriCloud