Re: [Qemu-devel] [PATCH 1/3] linux-user: Handle ELFv2 PPC64 binaries in user mode.

2014-05-08 Thread Ulrich Weigand
Doug Kwan (關振德) wrote on 08.05.2014 10:43:14: On Thu, May 8, 2014 at 1:36 AM, Alexander Graf wrote: >> -    _regs->gpr[2] = ldq_raw(infop->entry + 8) + infop->load_bias; >> -    infop->entry = ldq_raw(infop->entry) + infop->load_bias; >> +    if (get_ppc64_abi(infop) < 2) { >> +      _regs->gpr[

Re: [Qemu-devel] [PATCH 1/3] linux-user: Handle ELFv2 PPC64 binaries in user mode.

2014-05-08 Thread Alexander Graf
On 05/08/2014 10:43 AM, Doug Kwan (關振德) wrote: Hi On Thu, May 8, 2014 at 1:36 AM, Alexander Graf > wrote: 3 Please write bitmasks in hex. Will fix. + /* PowerPC relocations defined by the ABIs */ #define R_PPC_NONE0

Re: [Qemu-devel] [PATCH 1/3] linux-user: Handle ELFv2 PPC64 binaries in user mode.

2014-05-08 Thread Alexander Graf
On 05/08/2014 10:26 AM, Doug Kwan wrote: Look at ELF header to determin ABI version on PPC64. This is required for executing the first instruction correctly. Signed-off-by: Doug Kwan --- include/elf.h| 5 + linux-user/elfload.c | 17 +++-- 2 files changed, 20 inser