tag:blogger.com,1999:blog-8227611414371590425.post5991394418341471879..comments2023-07-04T11:18:05.052+02:00Comments on Le journal d'un reverser: How to debug ARM binary under x86 linux boxMitsurugihttp://www.blogger.com/profile/16733777190739911775noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8227611414371590425.post-39696233920095751762018-07-12T18:57:06.088+02:002018-07-12T18:57:06.088+02:00I asked the dynamic linked case at: https://stacko...I asked the dynamic linked case at: https://stackoverflow.com/questions/51310756/how-to-gdb-step-debug-a-dynamically-linked-arm-executable-qemu-user-modeciro.santillihttps://www.blogger.com/profile/02642132378416878124noreply@blogger.comtag:blogger.com,1999:blog-8227611414371590425.post-49790515541649374782018-03-06T10:17:27.990+01:002018-03-06T10:17:27.990+01:00Never too late than never for an answer.
It doesn...Never too late than never for an answer.<br /><br />It doesn't work because you have a dynamically linked binary. So, the binary try to find the linker file in order to resolve symbols. And in your x86 file hierarchy, you don't have a /usr/lib/ldqnx.so.2 file, so qemu stops.<br /><br />Two solutions:<br />-use static binaries only<br />-use the -L flags of qemu which makes a kind of "soft" chroot for the Library research path Mitsurugihttps://www.blogger.com/profile/16733777190739911775noreply@blogger.comtag:blogger.com,1999:blog-8227611414371590425.post-37988099683896236442015-05-15T20:07:09.873+02:002015-05-15T20:07:09.873+02:00elango@ubuntu:~/practice$ qemu-arm -version
qemu-a...elango@ubuntu:~/practice$ qemu-arm -version<br />qemu-arm version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.11), Copyright (c) 2003-2008 Fabrice Bellard<br />elango@ubuntu:~/practice$ file Test<br />Test: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), BuildID[md5/uuid]=e9607f8a8db3aced5eb230400beb0f85, not stripped<br />elango@ubuntu:~/practice$ qemu-arm -g 1234 ./Test<br />/usr/lib/ldqnx.so.2: No such file or directoryElangovan Manickamhttps://www.blogger.com/profile/06528923301361838364noreply@blogger.com