[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix symbol lookup for mips64* targets
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH] Fix symbol lookup for mips64* targets |
Date: |
Thu, 2 Oct 2008 22:53:18 +0300 |
On 10/2/08, Stefan Weil <address@hidden> wrote:
> For 64 bit targets, lookup_symbol() compares a 64-bit target address
> with a 32 bit symbol address. This only works for addresses less than 2^32.
>
> MIPS64 kernels use addresses larger than 0xffffffff80000000,
> so qemu.log never shows symbolic names.
>
> My patch is a workaround which works with Qemu's 32 bit address hack.
> Please apply it to Qemu trunk.
This applies to all architectures, not just MIPS64, so it need not be
conditional to TARGET_MIPS64.
> Maybe a better solution would use symbol addresses without shortening
> them to 32 bits.
Yes. That would mean using elf_sym instead of Elf32_sym in places
where symbols are used and removing the SZ==64 hacks in elf_ops.h.
Re: [Qemu-devel] [PATCH] Fix symbol lookup for mips64* targets, Thiemo Seufer, 2008/10/02