diff options
| author | Michael Matz <matz@suse.de> | 2015-02-22 05:59:06 +0100 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-02-23 22:51:10 +0000 |
| commit | 6d055312a270e8e32bf47eb0efd0423b8b1fc5b7 (patch) | |
| tree | 4b22874a1935123b5d65492c880a7c7db5e263db /tccrun.c | |
| parent | b14ef0e24bcb70d70360690130b2bf2a0c8f8d33 (diff) | |
| download | tinycc-6d055312a270e8e32bf47eb0efd0423b8b1fc5b7.tar.gz tinycc-6d055312a270e8e32bf47eb0efd0423b8b1fc5b7.tar.bz2 | |
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.
Diffstat (limited to 'tccrun.c')
| -rw-r--r-- | tccrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
