qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1527300] [NEW] linux-user/elfload.c: byteswap function


From: jordy
Subject: [Qemu-devel] [Bug 1527300] [NEW] linux-user/elfload.c: byteswap function is not working when ELF is big endian
Date: Thu, 17 Dec 2015 15:26:10 -0000

Public bug reported:

I run qemu-mipsel for ELF with mips MSB(big endian), it always outputs
error message: Invalid ELF image for this architecture. For the ELF I
run:

$file busybox

ELF 32-bit MSB  executable, MIPS, MIPS-I version 1 (SYSV), statically
linked, stripped

The section header is not corrupted(MSB, corrputed section header table
also outputs same error as above), when I run ELF with LSB, it works
perfectly. I debugged with /linux-user/elfload.c, I am sure that the
problem comes from byteswap function. But I don't know how to handle it.
I really hope this can be fixed ASAP. Really appreciate your help.

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: functionality problem

** Attachment added: "I outputted these with LSB and MSB"
   
https://bugs.launchpad.net/bugs/1527300/+attachment/4536297/+files/Capture.PNG

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1527300

Title:
  linux-user/elfload.c: byteswap function is not working when ELF is big
  endian

Status in QEMU:
  New

Bug description:
  I run qemu-mipsel for ELF with mips MSB(big endian), it always outputs
  error message: Invalid ELF image for this architecture. For the ELF I
  run:

  $file busybox

  ELF 32-bit MSB  executable, MIPS, MIPS-I version 1 (SYSV), statically
  linked, stripped

  The section header is not corrupted(MSB, corrputed section header
  table also outputs same error as above), when I run ELF with LSB, it
  works perfectly. I debugged with /linux-user/elfload.c, I am sure that
  the problem comes from byteswap function. But I don't know how to
  handle it. I really hope this can be fixed ASAP. Really appreciate
  your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1527300/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]