From 6d055312a270e8e32bf47eb0efd0423b8b1fc5b7 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 22 Feb 2015 05:59:06 +0100 Subject: aarch64: Fix -run. This adds some more support for properly transfering some offsets over the different stages of a relocations life. Still not at all psABI compliant and DSOs can't yet be generated. But it runs the testsuite in qemu-arm64. --- tccrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index 264322b..8f7257d 100644 --- a/tccrun.c +++ b/tccrun.c @@ -196,7 +196,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr) if (0 == (s->sh_flags & SHF_ALLOC)) continue; length = s->data_offset; - // printf("%-12s %08x %04x\n", s->name, s->sh_addr, length); + // printf("%-12s %08lx %04x\n", s->name, s->sh_addr, length); ptr = (void*)s->sh_addr; if (NULL == s->data || s->sh_type == SHT_NOBITS) memset(ptr, 0, length); -- cgit v1.3.1