Skip to content

Commit de5dba8

Browse files
committed
vdso: handle s390x correctly
On s390x there is currently a build failure: criu/pie/util-vdso.c: In function ‘elf_symbol_lookup’: criu/pie/util-vdso.c:313:31: error: initialization of ‘uint32_t *’ {aka ‘unsigned int *’} from incompatible pointer type ‘Hash_t *’ {aka ‘long unsigned int *’} [-Wincompatible-pointer-types] 313 | uint32_t *h = bucket + nbucket + (j - sym_off); | ^~~~~~ Replacing uint32_t with Hash_t which is defined behind a architecture specific ifdef solves this error. Signed-off-by: Adrian Reber <areber@redhat.com>
1 parent d4585a0 commit de5dba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

criu/pie/util-vdso.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ static unsigned long elf_symbol_lookup(uintptr_t mem, size_t size,
310310
addr = mem + dyn_symtab->d_un.d_ptr - load->p_vaddr;
311311

312312
if (use_gnu_hash) {
313-
uint32_t *h = bucket + nbucket + (j - sym_off);
314-
uint32_t hash_val;
313+
Hash_t *h = bucket + nbucket + (j - sym_off);
314+
Hash_t hash_val;
315315

316316
symbol_hash |= 1;
317317
do {

0 commit comments

Comments
 (0)