Timo Lindfors wrote:
> Package: elfsh
> Version: 0.51b3-2.1
> Severity: normal
> 
> Steps to reproduce:
> 1) cat > hello.c <<EOF
> #include <stdio.h>
> 
> int main(int argc, char **argv) {
>         printf("Hello world\n");
>         return 0;
> }
> EOF
> 2) mips-unknown-linux-gnu-gcc -o hello hello.c
> 3) elfsh
> 4) type "load hello"
> 
> Expected results:
> 4) elfsh should load hello, print
> 
> "[*] New object hello loaded on Sat Jul  1 18:53:20 2006"
> 
> and show the "[ELFsh-0.51b3]$" prompt.
> 
> Actual results:
> 4) elfsh segfaults without printing anything.

I can confirm that
  - The hello world binary runs fine natively.
  - elfsh loads this binary as expected on mips, and also on powerpc.

The first suspect which comes to mind is some endianness issue.
Does ELFsh succeed in loading any object of the "other" endianness?

> More info:
> 1) I built the cross compiler (gcc 3.4.1) with the crosstool script
> from http://kegel.com/crosstool/crosstool-0.42/ since toolchain-source
> failed (I haven't finished the bug report for this one yet).

Toolchain-source is mostly obsolete now, you may want to build a cross
toolchain from the standard gcc/binutils packages in debian instead.
(See README.cross in the source of those packages.)


Thiemo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to