Skip to content

Commit 12bb0de

Browse files
committed
vdso: correct data types for ELF hash table sizes
Let's change the data types of `nbucket` and `nchain` to uint32. This should fix the following compile-time error on arm32: /criu/criu/pie/util-vdso.c:336: undefined reference to `__aeabi_uldivmod' Signed-off-by: Andrei Vagin <[email protected]>
1 parent ce6bb4f commit 12bb0de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

criu/pie/util-vdso.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static bool elf_symbol_match(uintptr_t mem, size_t size,
302302
static unsigned long elf_symbol_lookup(uintptr_t mem, size_t size,
303303
const char *symbol, uint32_t symbol_hash, unsigned int sym_off,
304304
uintptr_t dynsymbol_names, Dyn_t *dyn_symtab, Phdr_t *load,
305-
uint64_t nbucket, uint64_t nchain, void *_bucket, Hash_t *chain,
305+
uint32_t nbucket, uint32_t nchain, void *_bucket, Hash_t *chain,
306306
const size_t vdso_symbol_length, bool use_gnu_hash)
307307
{
308308
unsigned int j;
@@ -360,7 +360,7 @@ static int parse_elf_symbols(uintptr_t mem, size_t size, Phdr_t *load,
360360

361361
void *bucket = NULL;
362362
Hash_t *chain = NULL;
363-
uint64_t nbucket, nchain = 0;
363+
uint32_t nbucket, nchain = 0;
364364

365365
unsigned int sym_off = 0;
366366
unsigned int i = 0;

0 commit comments

Comments
 (0)