linux-mips
[Top] [All Lists]

Re: Can't execute any MIPS binary

To: Matteo Croce <technoboy85@gmail.com>
Subject: Re: Can't execute any MIPS binary
From: David Daney <ddaney@avtrex.com>
Date: Wed, 13 Feb 2008 09:31:29 -0800
Cc: linux-mips@linux-mips.org
In-reply-to: <200802131721.11392.technoboy85@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200802130034.25052.rootkit85@yahoo.it> <47B231AD.5050809@avtrex.com> <200802131721.11392.technoboy85@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.9 (X11/20071115)
Matteo Croce wrote:
Il Wednesday 13 February 2008 00:54:21 hai scritto:
You should be able to run the binary if run a binary editor on it and clear the mips32 flag (i.e. change the flags from 0x50001007 to just 0x1007).

Solved by changing flags from 0x50001007 to 0x5, thanks :)

I think that you only want to clear the mips32 part (that is the part keeping the elf exec from working). I would leave all the other bits as they were.

In other words, probably the flags should be 0x1007, instead of 0x5.

Although it may not really matter. It has been several years since I studied the code.

David Daney

<Prev in Thread] Current Thread [Next in Thread>