1

I have a 32-bit MIPS binary and I'm trying to execute it on Ubuntu 64-bit.

file command for the binary shows:

bin: ELF 32-bit MSB  executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked (uses shared libs), stripped

If I use qemu-mips to execute it, I get the following error:

/lib/ld-musl-mips-sf.so.1: No such file or directory

How can I execute it? I'd like to remote debug it using IDA Pro.

8
  • This is a dynamically linked binary. You need the corresponding libc package (like from here )
    – 0xec
    Nov 30, 2018 at 19:25
  • 1
    and then run qemu-mipsel -L /usr/mipsel-linux-gnu/ ./filename
    – 0xec
    Nov 30, 2018 at 19:28
  • Alternatively you can use qemu full system emulation and run the binary within this
    – 0xec
    Nov 30, 2018 at 19:31
  • For debugging, run qemu-mipsel with the gdb stub (The -g parameter) and attach IDA to it
    – 0xec
    Nov 30, 2018 at 19:34
  • 2
    In that case check out the precompiled toolchains from toolchains.bootlin.com
    – 0xec
    Dec 5, 2018 at 16:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.