diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-06-18 22:52:01 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-06-18 22:52:01 -0400 |
commit | 596d60c5650488069ac1bbabb786685ebd3298c1 (patch) | |
tree | e9fd62b84e433288cfcc6e28a25b615e7ebf23de /src/ldso | |
parent | 51e2d8310222ddd4d4e895f55c627100d863aa95 (diff) | |
download | musl-596d60c5650488069ac1bbabb786685ebd3298c1.tar.gz musl-596d60c5650488069ac1bbabb786685ebd3298c1.tar.xz musl-596d60c5650488069ac1bbabb786685ebd3298c1.zip |
dynamic linker 64bit fix: hash table entries are always 32bit
Diffstat (limited to 'src/ldso')
-rw-r--r-- | src/ldso/dynlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index b4444252..8ade0737 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -35,7 +35,7 @@ struct dso int refcnt; size_t *dynv; Sym *syms; - size_t *hashtab; + uint32_t *hashtab; char *strings; unsigned char *base; unsigned char *map; @@ -71,7 +71,7 @@ static uint32_t hash(const char *s) return h & 0xfffffff; } -static Sym *lookup(const char *s, uint32_t h, Sym *syms, size_t *hashtab, char *strings) +static Sym *lookup(const char *s, uint32_t h, Sym *syms, uint32_t *hashtab, char *strings) { size_t i; for (i=hashtab[2+h%hashtab[0]]; i; i=hashtab[2+hashtab[0]+i]) { |