summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-04-06 04:09:42 +0000
committerpeter <peter@FreeBSD.org>2002-04-06 04:09:42 +0000
commit66482b75cf85b692719e8bf73771be9b143886da (patch)
tree4b653efdfe481224c0f1848e4959ba0194c90d3d /sys/boot
parent4e70269a832650804853a8e07584a30e01aa78ad (diff)
downloadFreeBSD-src-66482b75cf85b692719e8bf73771be9b143886da.zip
FreeBSD-src-66482b75cf85b692719e8bf73771be9b143886da.tar.gz
Use the correct elf hash table entry type. This matches a similar fix
in the kernel side of things some time ago. The hash table entries are always 32 bits wide, even on 64 bit machines.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/load_elf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index 22f7ff7..95a437c 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -48,11 +48,11 @@ typedef struct elf_file {
Elf_Phdr *ph;
Elf_Ehdr *ehdr;
Elf_Sym *symtab;
- Elf_Off *hashtab;
- Elf_Off nbuckets;
- Elf_Off nchains;
- Elf_Off* buckets;
- Elf_Off* chains;
+ Elf_Hashelt *hashtab;
+ Elf_Hashelt nbuckets;
+ Elf_Hashelt nchains;
+ Elf_Hashelt *buckets;
+ Elf_Hashelt *chains;
char *strtab;
size_t strsz;
int fd;
@@ -481,7 +481,7 @@ nosyms:
break;
switch (dp[i].d_tag) {
case DT_HASH:
- ef->hashtab = (Elf_Off*)(dp[i].d_un.d_ptr + off);
+ ef->hashtab = (Elf_Hashelt*)(dp[i].d_un.d_ptr + off);
break;
case DT_STRTAB:
ef->strtab = (char *)(dp[i].d_un.d_ptr + off);
OpenPOWER on IntegriCloud