title: ARMv5 with Valgrind: illegal instruction
body: <p>thanks to other posts here, I managed to build and install Valgrind for ARM:</p>
  
  <pre><code>make clean
  make distclean
  
  export PATH=$PATH:/usr/local/angstrom/arm/bin
  export CROSS_COMPILE=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-
  export CC=${CROSS_COMPILE}gcc
  export CPP=${CROSS_COMPILE}cpp
  export CXX=${CROSS_COMPILE}g++
  export LD=${CROSS_COMPILE}ld
  export AR=${CROSS_COMPILE}ar
  export RANLIB=${CROSS_COMPILE}ranlib
  
  sed -i -e "s#armv7#arm#g" configure
  
  ./configure   --host=arm-none-linux-gnueabi \
      --host=arm-none-linux-gnueabi \
            --prefix=/opt/valgrind/ \
            CFLAGS=-static
  
  make
  
  make install
  </code></pre>
  
  <p>and copied it into the same path on the ARMv5 machine.</p>
  
  <p>I am running an ARMv5 and apparently Valgrind is still not supporting ARMv5.</p>
  
  <p>When starting Valgrind, I'll get</p>
  
  <pre><code>Illegal instruction
  </code></pre>
  
  <p>and I suppose this is, because Valgrind needs the ARMv7 instruction set?</p>
  
  <p>So:</p>
  
  <ul>
  <li>did I make any error in configure when cross-compiling valgrind?</li>
  <li>is there any way to get Valgrind up and running on ARMv5 or even only the vgdb or Memcheck tool included in Valgrind?</li>
  </ul>
  
  <p>Is there any other tool to do memchecks on ARMv5, I have heard about</p>
  
  <ul>
  <li>Adress Sanitizer or</li>
  <li>Malloc_Check</li>
  </ul>
  
  <p>and are they recommendable for ARMv5?</p>
  
  <p>Thanks a lot for help and support!
  BR Florian</p>
  
  <p>I have created a core dump and run gdb, unfortunately without debugging symbols:</p>
  
  <p><strong>What command should i used?</strong></p>
  
  <pre><code>[New Thread 10495]
  Core was generated by `/opt/valgrind/bin/valgrind'.
  Program terminated with signal 4, Illegal instruction.
  #0  0x38035804 in ?? ()
  (gdb) list
  305                  platform ? platform : "unknown");
  306 
  307    return platform;
  308 }
  309 
  310 /* Where we expect to find all our aux files */
  311 static const char *valgrind_lib = VG_LIBDIR;
  312 
  313 int main(int argc, char** argv, char** envp)
  314 {
  (gdb) info frame
  Stack level 0, frame at 0x38ac7894:
   pc = 0x38035804; saved pc 0x380425e0
   called by frame at 0x38ac7894
  Cannot access memory at address 0x0
   Arglist at 0x38ac7894, args: 
   Locals at 0x38ac7894, Previous frame's sp is 0x38ac7894
  (gdb) list main
  326 
  327    /* Start the debugging-log system ASAP.  First find out how many 
  328       "-d"s were specified.  This is a pre-scan of the command line.
  329       At the same time, look for the tool name. */
  330    loglevel = 0;
  331    for (i = 1; i &lt; argc; i++) {
  332       if (argv[i][0] != '-') {
  333          clientname = argv[i];
  334          break;
  335       }
  (gdb) disassemble main
  Dump of assembler code for function main:
     0x000087b4 &lt;+0&gt;: cmp r0, #1
     0x000087b8 &lt;+4&gt;: push    {r4, r5, r6, r7, r8, r9, r10, r11, lr}
     0x000087bc &lt;+8&gt;: mov r10, r0
     0x000087c0 &lt;+12&gt;:    sub sp, sp, #12
     0x000087c4 &lt;+16&gt;:    mov r11, r1
     0x000087c8 &lt;+20&gt;:    mov r9, r2
     0x000087cc &lt;+24&gt;:    ble 0x8c90 &lt;main+1244&gt;
     0x000087d0 &lt;+28&gt;:    ldr r4, [r1, #4]
     0x000087d4 &lt;+32&gt;:    ldrb    r3, [r4]
  
     0x000087d8 &lt;+36&gt;:    cmp r3, #45 ; 0x2d
     0x000087dc &lt;+40&gt;:    movne   r8, #0
     0x000087e0 &lt;+44&gt;:    movne   r7, r8
     0x000087e4 &lt;+48&gt;:    bne 0x8820 &lt;main+108&gt;
     0x000087e8 &lt;+52&gt;:    ldr r0, [pc, #1372] ; 0x8d4c &lt;main+1432&gt;
     0x000087ec &lt;+56&gt;:    bl  0x29d20 &lt;strlen&gt;
     0x000087f0 &lt;+60&gt;:    mov r8, #0
     0x000087f4 &lt;+64&gt;:    mov r5, #1
     0x000087f8 &lt;+68&gt;:    mov r7, r8
     0x000087fc &lt;+72&gt;:    mov r6, r0
     0x00008800 &lt;+76&gt;:    cmp r6, #3
     0x00008804 &lt;+80&gt;:    bhi 0x8b70 &lt;main+956&gt;
     0x00008808 &lt;+84&gt;:    cmp r6, #0
     0x0000880c &lt;+88&gt;:    bne 0x8a00 &lt;main+588&gt;
     0x00008810 &lt;+92&gt;:    add r0, r5, #1
     0x00008814 &lt;+96&gt;:    cmp r10, r0
     0x00008818 &lt;+100&gt;:   ble 0x8b90 &lt;main+988&gt;
     0x0000881c &lt;+104&gt;:   ldr r4, [r11, r0, lsl #2]
     0x00008820 &lt;+108&gt;:   mov r0, r8
     0x00008824 &lt;+112&gt;:   ldr r1, [pc, #1316] ; 0x8d50 &lt;main+1436&gt;
     0x00008828 &lt;+116&gt;:   bl  0xa258 &lt;vgPlain_debugLog_startup&gt;
     0x0000882c &lt;+120&gt;:   cmp r7, #0
     0x00008830 &lt;+124&gt;:   mov r10, r7
     0x00008834 &lt;+128&gt;:   beq 0x8bac &lt;main+1016&gt;
     0x00008838 &lt;+132&gt;:   mov r3, r7
     0x0000883c &lt;+136&gt;:   mov r0, #1
     0x00008840 &lt;+140&gt;:   ldr r1, [pc, #1292] ; 0x8d54 &lt;main+1440&gt;
     0x00008844 &lt;+144&gt;:   ldr r2, [pc, #1292] ; 0x8d58 &lt;main+1444&gt;
     0x00008848 &lt;+148&gt;:   bl  0x9ff0 &lt;vgPlain_debugLog&gt;
     0x0000884c &lt;+152&gt;:   cmp r4, #0
     0x00008850 &lt;+156&gt;:   beq 0x8bc8 &lt;main+1044&gt;
     0x00008854 &lt;+160&gt;:   mov r0, r4
     0x00008858 &lt;+164&gt;:   bl  0x8278 &lt;select_platform&gt;
     0x0000885c &lt;+168&gt;:   subs    r8, r0, #0
     0x00008860 &lt;+172&gt;:   beq 0x8c6c &lt;main+1208&gt;
     0x00008864 &lt;+176&gt;:   mov r0, #1
     0x00008868 &lt;+180&gt;:   ldr r1, [pc, #1252] ; 0x8d54 &lt;main+1440&gt;
     0x0000886c &lt;+184&gt;:   ldr r2, [pc, #1256] ; 0x8d5c &lt;main+1448&gt;
     0x00008870 &lt;+188&gt;:   mov r3, r8
     0x00008874 &lt;+192&gt;:   bl  0x9ff0 &lt;vgPlain_debugLog&gt;
     0x00008878 &lt;+196&gt;:   mov r0, #0
     0x0000887c &lt;+200&gt;:   mov r5, r0
     0x00008880 &lt;+204&gt;:   add r4, r0, #500    ; 0x1f4
     0x00008884 &lt;+208&gt;:   mov r1, r4
     0x00008888 &lt;+212&gt;:   mov r0, r5
     0x0000888c &lt;+216&gt;:   bl  0x290ec &lt;realloc&gt;
     0x00008890 &lt;+220&gt;:   subs    r5, r0, #0
     0x00008894 &lt;+224&gt;:   beq 0x8c88 &lt;main+1236&gt;
     0x00008898 &lt;+228&gt;:   ldr r0, [pc, #1216] ; 0x8d60 &lt;main+1452&gt;
     0x0000889c &lt;+232&gt;:   mov r1, r5
     0x000088a0 &lt;+236&gt;:   mov r2, r4
     0x000088a4 &lt;+240&gt;:   bl  0x2d760 &lt;readlink&gt;
     0x000088a8 &lt;+244&gt;:   cmn r0, #1
     0x000088ac &lt;+248&gt;:   beq 0x8c44 &lt;main+1168&gt;
     0x000088b0 &lt;+252&gt;:   cmp r0, r4
     0x000088b4 &lt;+256&gt;:   beq 0x8880 &lt;main+204&gt;
     0x000088b8 &lt;+260&gt;:   movcc   r3, #0
     0x000088bc &lt;+264&gt;:   movcc   r6, r5
     0x000088c0 &lt;+268&gt;:   strbcc  r3, [r5, r0]
     0x000088c4 &lt;+272&gt;:   bcs 0x8d38 &lt;main+1412&gt;
     0x000088c8 &lt;+276&gt;:   ldr r0, [pc, #1172] ; 0x8d64 &lt;main+1456&gt;
     0x000088cc &lt;+280&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x000088d0 &lt;+284&gt;:   mov r4, r0
     0x000088d4 &lt;+288&gt;:   mov r0, r6
     0x000088d8 &lt;+292&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x000088dc &lt;+296&gt;:   add r4, r4, r0
     0x000088e0 &lt;+300&gt;:   add r0, r4, #2
     0x000088e4 &lt;+304&gt;:   bl  0x28928 &lt;malloc&gt;
     0x000088e8 &lt;+308&gt;:   subs    r7, r0, #0
     0x000088ec &lt;+312&gt;:   beq 0x8ca4 &lt;main+1264&gt;
     0x000088f0 &lt;+316&gt;:   ldr r1, [pc, #1132] ; 0x8d64 &lt;main+1456&gt;
     0x000088f4 &lt;+320&gt;:   bl  0x29b00 &lt;strcpy&gt;
     0x000088f8 &lt;+324&gt;:   ldr r1, [pc, #1128] ; 0x8d68 &lt;main+1460&gt;
     0x000088fc &lt;+328&gt;:   mov r0, r7
     0x00008900 &lt;+332&gt;:   bl  0x29994 &lt;strcat&gt;
     0x00008904 &lt;+336&gt;:   mov r0, r7
     0x00008908 &lt;+340&gt;:   mov r1, r6
     0x0000890c &lt;+344&gt;:   bl  0x29994 &lt;strcat&gt;
     0x00008910 &lt;+348&gt;:   ldr r3, [r9]
     0x00008914 &lt;+352&gt;:   cmp r3, #0
     0x00008918 &lt;+356&gt;:   moveq   r4, r3
     0x0000891c &lt;+360&gt;:   moveq   r5, #2
     0x00008920 &lt;+364&gt;:   moveq   r0, #8
     0x00008924 &lt;+368&gt;:   beq 0x8944 &lt;main+400&gt;
     0x00008928 &lt;+372&gt;:   mov r4, #0
     0x0000892c &lt;+376&gt;:   add r4, r4, #1
     0x00008930 &lt;+380&gt;:   ldr r3, [r9, r4, lsl #2]
     0x00008934 &lt;+384&gt;:   cmp r3, #0
     0x00008938 &lt;+388&gt;:   bne 0x892c &lt;main+376&gt;
     0x0000893c &lt;+392&gt;:   add r5, r4, #2
     0x00008940 &lt;+396&gt;:   lsl r0, r5, #2
     0x00008944 &lt;+400&gt;:   bl  0x28928 &lt;malloc&gt;
     0x00008948 &lt;+404&gt;:   subs    r6, r0, #0
     0x0000894c &lt;+408&gt;:   beq 0x8cac &lt;main+1272&gt;
     0x00008950 &lt;+412&gt;:   cmp r4, #0
     0x00008954 &lt;+416&gt;:   moveq   r1, r4
     0x00008958 &lt;+420&gt;:   moveq   r0, #4
     0x0000895c &lt;+424&gt;:   moveq   r2, #2
     0x00008960 &lt;+428&gt;:   beq 0x8994 &lt;main+480&gt;
     0x00008964 &lt;+432&gt;:   mov r1, #0
     0x00008968 &lt;+436&gt;:   mov r2, r1
     0x0000896c &lt;+440&gt;:   ldr r3, [r9, r2]
     0x00008970 &lt;+444&gt;:   add r1, r1, #1
     0x00008974 &lt;+448&gt;:   cmp r4, r1
     0x00008978 &lt;+452&gt;:   str r3, [r6, r2]
     0x0000897c &lt;+456&gt;:   add r2, r2, #4
     0x00008980 &lt;+460&gt;:   bgt 0x896c &lt;main+440&gt;
     0x00008984 &lt;+464&gt;:   add r3, r4, #1
     0x00008988 &lt;+468&gt;:   add r2, r3, #1
     0x0000898c &lt;+472&gt;:   lsl r1, r4, #2
     0x00008990 &lt;+476&gt;:   lsl r0, r3, #2
     0x00008994 &lt;+480&gt;:   cmp r2, r5
     0x00008998 &lt;+484&gt;:   str r7, [r6, r1]
     0x0000899c &lt;+488&gt;:   mov r3, #0
     0x000089a0 &lt;+492&gt;:   str r3, [r6, r0]
     0x000089a4 &lt;+496&gt;:   bne 0x8cb4 &lt;main+1280&gt;
     0x000089a8 &lt;+500&gt;:   ldr r0, [pc, #956]  ; 0x8d6c &lt;main+1464&gt;
     0x000089ac &lt;+504&gt;:   bl  0x12650 &lt;getenv&gt;
     0x000089b0 &lt;+508&gt;:   subs    r3, r0, #0
     0x000089b4 &lt;+512&gt;:   ldrne   r0, [pc, #948]  ; 0x8d70 &lt;main+1468&gt;
     0x000089b8 &lt;+516&gt;:   ldreq   r0, [pc, #944]  ; 0x8d70 &lt;main+1468&gt;
     0x000089bc &lt;+520&gt;:   strne   r3, [r0]
     0x000089c0 &lt;+524&gt;:   ldr r0, [r0]
     0x000089c4 &lt;+528&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x000089c8 &lt;+532&gt;:   mov r4, r0
     0x000089cc &lt;+536&gt;:   mov r0, r10
     0x000089d0 &lt;+540&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x000089d4 &lt;+544&gt;:   mov r5, r0
     0x000089d8 &lt;+548&gt;:   mov r0, r8
     0x000089dc &lt;+552&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x000089e0 &lt;+556&gt;:   add r4, r4, r5
     0x000089e4 &lt;+560&gt;:   add r4, r4, #3
     0x000089e8 &lt;+564&gt;:   add r0, r4, r0
     0x000089ec &lt;+568&gt;:   bl  0x28928 &lt;malloc&gt;
     0x000089f0 &lt;+572&gt;:   subs    r4, r0, #0
     0x000089f4 &lt;+576&gt;:   bne 0x8cc8 &lt;main+1300&gt;
     0x000089f8 &lt;+580&gt;:   ldr r0, [pc, #884]  ; 0x8d74 &lt;main+1472&gt;
     0x000089fc &lt;+584&gt;:   bl  0x8234 &lt;barf&gt;
     0x00008a00 &lt;+588&gt;:   ldrb    r2, [r4, #1]
     0x00008a04 &lt;+592&gt;:   cmp r6, #1
     0x00008a08 &lt;+596&gt;:   movls   r3, #0
     0x00008a0c &lt;+600&gt;:   movhi   r3, #1
     0x00008a10 &lt;+604&gt;:   cmp r2, #45 ; 0x2d
     0x00008a14 &lt;+608&gt;:   movne   r3, #0
     0x00008a18 &lt;+612&gt;:   cmp r3, #0
     0x00008a1c &lt;+616&gt;:   sub r0, r2, #45 ; 0x2d
     0x00008a20 &lt;+620&gt;:   beq 0x8a50 &lt;main+668&gt;
     0x00008a24 &lt;+624&gt;:   ldrb    r0, [r4, #2]
     0x00008a28 &lt;+628&gt;:   cmp r6, #2
     0x00008a2c &lt;+632&gt;:   movls   r3, #0
     0x00008a30 &lt;+636&gt;:   movhi   r3, #1
     0x00008a34 &lt;+640&gt;:   cmp r0, #0
     0x00008a38 &lt;+644&gt;:   movne   r3, #0
     0x00008a3c &lt;+648&gt;:   cmp r3, #0
     0x00008a40 &lt;+652&gt;:   ldrne   r1, [pc, #772]  ; 0x8d4c &lt;main+1432&gt;
     0x00008a44 &lt;+656&gt;:   ldrbne  r2, [r4, #3]
     0x00008a48 &lt;+660&gt;:   ldrbne  r3, [r1, #3]
     0x00008a4c &lt;+664&gt;:   rsbne   r0, r3, r2
     0x00008a50 &lt;+668&gt;:   cmp r0, #0
     0x00008a54 &lt;+672&gt;:   beq 0x8810 &lt;main+92&gt;
     0x00008a58 &lt;+676&gt;:   ldr r0, [pc, #792]  ; 0x8d78 &lt;main+1476&gt;
     0x00008a5c &lt;+680&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x00008a60 &lt;+684&gt;:   cmp r0, #3
     0x00008a64 &lt;+688&gt;:   bhi 0x8c10 &lt;main+1116&gt;
     0x00008a68 &lt;+692&gt;:   cmp r0, #0
     0x00008a6c &lt;+696&gt;:   beq 0x8c08 &lt;main+1108&gt;
     0x00008a70 &lt;+700&gt;:   ldrb    r2, [r4, #1]
     0x00008a74 &lt;+704&gt;:   cmp r0, #1
     0x00008a78 &lt;+708&gt;:   movls   r3, #0
     0x00008a7c &lt;+712&gt;:   movhi   r3, #1
     0x00008a80 &lt;+716&gt;:   cmp r2, #100    ; 0x64
     0x00008a84 &lt;+720&gt;:   movne   r3, #0
     0x00008a88 &lt;+724&gt;:   cmp r3, #0
     0x00008a8c &lt;+728&gt;:   sub r2, r2, #100    ; 0x64
     0x00008a90 &lt;+732&gt;:   beq 0x8ac0 &lt;main+780&gt;
     0x00008a94 &lt;+736&gt;:   ldrb    r2, [r4, #2]
     0x00008a98 &lt;+740&gt;:   cmp r0, #2
     0x00008a9c &lt;+744&gt;:   movls   r3, #0
     0x00008aa0 &lt;+748&gt;:   movhi   r3, #1
     0x00008aa4 &lt;+752&gt;:   cmp r2, #0
     0x00008aa8 &lt;+756&gt;:   movne   r3, #0
     0x00008aac &lt;+760&gt;:   cmp r3, #0
     0x00008ab0 &lt;+764&gt;:   ldrne   r1, [pc, #704]  ; 0x8d78 &lt;main+1476&gt;
     0x00008ab4 &lt;+768&gt;:   ldrbne  r2, [r4, #3]
     0x00008ab8 &lt;+772&gt;:   ldrbne  r3, [r1, #3]
     0x00008abc &lt;+776&gt;:   rsbne   r2, r3, r2
     0x00008ac0 &lt;+780&gt;:   cmp r2, #0
     0x00008ac4 &lt;+784&gt;:   beq 0x8c08 &lt;main+1108&gt;
     0x00008ac8 &lt;+788&gt;:   ldr r0, [pc, #684]  ; 0x8d7c &lt;main+1480&gt;
     0x00008acc &lt;+792&gt;:   bl  0x29d20 &lt;strlen&gt;
     0x00008ad0 &lt;+796&gt;:   cmp r0, #6
     0x00008ad4 &lt;+800&gt;:   mov r1, r0
     0x00008ad8 &lt;+804&gt;:   bhi 0x8be4 &lt;main+1072&gt;
     0x00008adc &lt;+808&gt;:   cmp r0, #3
     0x00008ae0 &lt;+812&gt;:   bhi 0x8c24 &lt;main+1136&gt;
     0x00008ae4 &lt;+816&gt;:   cmp r0, #0
     0x00008ae8 &lt;+820&gt;:   beq 0x8b80 &lt;main+972&gt;
     0x00008aec &lt;+824&gt;:   ldrb    r3, [r4, #1]
     0x00008af0 &lt;+828&gt;:   cmp r3, #45 ; 0x2d
     0x00008af4 &lt;+832&gt;:   movne   r0, #0
     0x00008af8 &lt;+836&gt;:   moveq   r0, #1
     0x00008afc &lt;+840&gt;:   cmp r1, #1
     0x00008b00 &lt;+844&gt;:   movls   r2, #0
     0x00008b04 &lt;+848&gt;:   andhi   r2, r0, #1
     0x00008b08 &lt;+852&gt;:   cmp r2, #0
     0x00008b0c &lt;+856&gt;:   beq 0x8b44 &lt;main+912&gt;
     0x00008b10 &lt;+860&gt;:   ldrb    r3, [r4, #2]
     0x00008b14 &lt;+864&gt;:   cmp r3, #116    ; 0x74
     0x00008b18 &lt;+868&gt;:   movne   r0, #0
     0x00008b1c &lt;+872&gt;:   moveq   r0, #1
     0x00008b20 &lt;+876&gt;:   cmp r1, #2
     0x00008b24 &lt;+880&gt;:   movls   r2, #0
     0x00008b28 &lt;+884&gt;:   andhi   r2, r0, #1
     0x00008b2c &lt;+888&gt;:   cmp r2, #0
     0x00008b30 &lt;+892&gt;:   beq 0x8b44 &lt;main+912&gt;
     0x00008b34 &lt;+896&gt;:   ldrb    r3, [r4, #3]
     0x00008b38 &lt;+900&gt;:   cmp r3, #111    ; 0x6f
     0x00008b3c &lt;+904&gt;:   movne   r0, #0
     0x00008b40 &lt;+908&gt;:   moveq   r0, #1
     0x00008b44 &lt;+912&gt;:   cmp r0, #0
     0x00008b48 &lt;+916&gt;:   bne 0x8b80 &lt;main+972&gt;
     0x00008b4c &lt;+920&gt;:   add r5, r5, #1
     0x00008b50 &lt;+924&gt;:   cmp r10, r5
     0x00008b54 &lt;+928&gt;:   ble 0x8b90 &lt;main+988&gt;
     0x00008b58 &lt;+932&gt;:   ldr r4, [r11, r5, lsl #2]
     0x00008b5c &lt;+936&gt;:   ldrb    r3, [r4]
     0x00008b60 &lt;+940&gt;:   cmp r3, #45 ; 0x2d
     0x00008b64 &lt;+944&gt;:   bne 0x8820 &lt;main+108&gt;
     0x00008b68 &lt;+948&gt;:   cmp r6, #3
     0x00008b6c &lt;+952&gt;:   bls 0x8808 &lt;main+84&gt;
     0x00008b70 &lt;+956&gt;:   mov r0, r4
     0x00008b74 &lt;+960&gt;:   ldr r1, [pc, #464]  ; 0x8d4c &lt;main+1432&gt;
     0x00008b78 &lt;+964&gt;:   bl  0x29acc &lt;strcmp&gt;
     0x00008b7c &lt;+968&gt;:   b   0x8a50 &lt;main+668&gt;
     0x00008b80 &lt;+972&gt;:   add r5, r5, #1
     0x00008b84 &lt;+976&gt;:   cmp r10, r5
     0x00008b88 &lt;+980&gt;:   add r7, r4, #7
     0x00008b8c &lt;+984&gt;:   bgt 0x8b58 &lt;main+932&gt;
     0x00008b90 &lt;+988&gt;:   mov r0, r8
     0x00008b94 &lt;+992&gt;:   ldr r1, [pc, #436]  ; 0x8d50 &lt;main+1436&gt;
     0x00008b98 &lt;+996&gt;:   bl  0xa258 &lt;vgPlain_debugLog_startup&gt;
     0x00008b9c &lt;+1000&gt;:  cmp r7, #0
     0x00008ba0 &lt;+1004&gt;:  mov r10, r7
     0x00008ba4 &lt;+1008&gt;:  mov r4, #0
     0x00008ba8 &lt;+1012&gt;:  bne 0x8838 &lt;main+132&gt;
     0x00008bac &lt;+1016&gt;:  mov r0, #1
     0x00008bb0 &lt;+1020&gt;:  ldr r1, [pc, #412]  ; 0x8d54 &lt;main+1440&gt;
     0x00008bb4 &lt;+1024&gt;:  ldr r2, [pc, #452]  ; 0x8d80 &lt;main+1484&gt;
     0x00008bb8 &lt;+1028&gt;:  bl  0x9ff0 &lt;vgPlain_debugLog&gt;
     0x00008bbc &lt;+1032&gt;:  cmp r4, #0
     0x00008bc0 &lt;+1036&gt;:  ldr r10, [pc, #444] ; 0x8d84 &lt;main+1488&gt;
     0x00008bc4 &lt;+1040&gt;:  bne 0x8854 &lt;main+160&gt;
     0x00008bc8 &lt;+1044&gt;:  mov r0, #1
     0x00008bcc &lt;+1048&gt;:  ldr r1, [pc, #384]  ; 0x8d54 &lt;main+1440&gt;
     0x00008bd0 &lt;+1052&gt;:  ldr r2, [pc, #432]  ; 0x8d88 &lt;main+1492&gt;
     0x00008bd4 &lt;+1056&gt;:  ldr r3, [pc, #432]  ; 0x8d8c &lt;main+1496&gt;
     0x00008bd8 &lt;+1060&gt;:  bl  0x9ff0 &lt;vgPlain_debugLog&gt;
     0x00008bdc &lt;+1064&gt;:  ldr r8, [pc, #424]  ; 0x8d8c &lt;main+1496&gt;
     0x00008be0 &lt;+1068&gt;:  b   0x8878 &lt;main+196&gt;
     0x00008be4 &lt;+1072&gt;:  mov r0, r4
     0x00008be8 &lt;+1076&gt;:  ldr r1, [pc, #396]  ; 0x8d7c &lt;main+1480&gt;
     0x00008bec &lt;+1080&gt;:  mov r2, #7
     0x00008bf0 &lt;+1084&gt;:  bl  0x29e90 &lt;strncmp&gt;
     0x00008bf4 &lt;+1088&gt;:  rsbs    r0, r0, #1
     0x00008bf8 &lt;+1092&gt;:  movcc   r0, #0
     0x00008bfc &lt;+1096&gt;:  cmp r0, #0
     0x00008c00 &lt;+1100&gt;:  beq 0x8b4c &lt;main+920&gt;
     0x00008c04 &lt;+1104&gt;:  b   0x8b80 &lt;main+972&gt;
     0x00008c08 &lt;+1108&gt;:  add r8, r8, #1
     0x00008c0c &lt;+1112&gt;:  b   0x8ac8 &lt;main+788&gt;
     0x00008c10 &lt;+1116&gt;:  mov r0, r4
     0x00008c14 &lt;+1120&gt;:  ldr r1, [pc, #348]  ; 0x8d78 &lt;main+1476&gt;
     0x00008c18 &lt;+1124&gt;:  bl  0x29acc &lt;strcmp&gt;
     0x00008c1c &lt;+1128&gt;:  mov r2, r0
     0x00008c20 &lt;+1132&gt;:  b   0x8ac0 &lt;main+780&gt;
     0x00008c24 &lt;+1136&gt;:  mov r0, r4
     0x00008c28 &lt;+1140&gt;:  ldr r1, [pc, #332]  ; 0x8d7c &lt;main+1480&gt;
     0x00008c2c &lt;+1144&gt;:  bl  0x29acc &lt;strcmp&gt;
     0x00008c30 &lt;+1148&gt;:  rsbs    r0, r0, #1
     0x00008c34 &lt;+1152&gt;:  movcc   r0, #0
     0x00008c38 &lt;+1156&gt;:  cmp r0, #0
     0x00008c3c &lt;+1160&gt;:  beq 0x8b4c &lt;main+920&gt;
     0x00008c40 &lt;+1164&gt;:  b   0x8b80 &lt;main+972&gt;
     0x00008c44 &lt;+1168&gt;:  ldr r4, [pc, #324]  ; 0x8d90 &lt;main+1500&gt;
     0x00008c48 &lt;+1172&gt;:  ldr r1, [pc, #324]  ; 0x8d94 &lt;main+1504&gt;
     0x00008c4c &lt;+1176&gt;:  ldr r2, [pc, #268]  ; 0x8d60 &lt;main+1452&gt;
     0x00008c50 &lt;+1180&gt;:  ldr r0, [r4]
     0x00008c54 &lt;+1184&gt;:  bl  0x1b4c0 &lt;fprintf&gt;
     0x00008c58 &lt;+1188&gt;:  ldr r0, [r4]
     0x00008c5c &lt;+1192&gt;:  ldr r1, [pc, #308]  ; 0x8d98 &lt;main+1508&gt;
     0x00008c60 &lt;+1196&gt;:  bl  0x1b4c0 &lt;fprintf&gt;
     0x00008c64 &lt;+1200&gt;:  ldr r6, [pc, #304]  ; 0x8d9c &lt;main+1512&gt;
     0x00008c68 &lt;+1204&gt;:  b   0x88c8 &lt;main+276&gt;
     0x00008c6c &lt;+1208&gt;:  mov r0, #1
     0x00008c70 &lt;+1212&gt;:  ldr r1, [pc, #220]  ; 0x8d54 &lt;main+1440&gt;
     0x00008c74 &lt;+1216&gt;:  ldr r2, [pc, #292]  ; 0x8da0 &lt;main+1516&gt;
     0x00008c78 &lt;+1220&gt;:  ldr r3, [pc, #268]  ; 0x8d8c &lt;main+1496&gt;
     0x00008c7c &lt;+1224&gt;:  bl  0x9ff0 &lt;vgPlain_debugLog&gt;
     0x00008c80 &lt;+1228&gt;:  ldr r8, [pc, #260]  ; 0x8d8c &lt;main+1496&gt;
     0x00008c84 &lt;+1232&gt;:  b   0x8878 &lt;main+196&gt;
     0x00008c88 &lt;+1236&gt;:  ldr r0, [pc, #276]  ; 0x8da4 &lt;main+1520&gt;
     0x00008c8c &lt;+1240&gt;:  bl  0x8234 &lt;barf&gt;
     0x00008c90 &lt;+1244&gt;:  mov r0, #0
     0x00008c94 &lt;+1248&gt;:  ldr r1, [pc, #180]  ; 0x8d50 &lt;main+1436&gt;
     0x00008c98 &lt;+1252&gt;:  bl  0xa258 &lt;vgPlain_debugLog_startup&gt;
     0x00008c9c &lt;+1256&gt;:  mov r4, #0
     0x00008ca0 &lt;+1260&gt;:  b   0x8bac &lt;main+1016&gt;
     0x00008ca4 &lt;+1264&gt;:  ldr r0, [pc, #252]  ; 0x8da8 &lt;main+1524&gt;
     0x00008ca8 &lt;+1268&gt;:  bl  0x8234 &lt;barf&gt;
     0x00008cac &lt;+1272&gt;:  ldr r0, [pc, #248]  ; 0x8dac &lt;main+1528&gt;
     0x00008cb0 &lt;+1276&gt;:  bl  0x8234 &lt;barf&gt;
     0x00008cb4 &lt;+1280&gt;:  ldr r0, [pc, #244]  ; 0x8db0 &lt;main+1532&gt;
     0x00008cb8 &lt;+1284&gt;:  ldr r1, [pc, #244]  ; 0x8db4 &lt;main+1536&gt;
     0x00008cbc &lt;+1288&gt;:  movw    r2, #463    ; 0x1cf
     0x00008cc0 &lt;+1292&gt;:  ldr r3, [pc, #240]  ; 0x8db8 &lt;main+1540&gt;
     0x00008cc4 &lt;+1296&gt;:  bl  0xd5dc &lt;__assert_fail&gt;
     0x00008cc8 &lt;+1300&gt;:  ldr r3, [pc, #160]  ; 0x8d70 &lt;main+1468&gt;
     0x00008ccc &lt;+1304&gt;:  ldr r1, [pc, #232]  ; 0x8dbc &lt;main+1544&gt;
     0x00008cd0 &lt;+1308&gt;:  ldr r2, [r3]
     0x00008cd4 &lt;+1312&gt;:  mov r3, r10
     0x00008cd8 &lt;+1316&gt;:  str r8, [sp]
     0x00008cdc &lt;+1320&gt;:  bl  0x1b4e0 &lt;sprintf&gt;
     0x00008ce0 &lt;+1324&gt;:  mov r3, r4
     0x00008ce4 &lt;+1328&gt;:  mov r0, #1
     0x00008ce8 &lt;+1332&gt;:  ldr r1, [pc, #100]  ; 0x8d54 &lt;main+1440&gt;
     0x00008cec &lt;+1336&gt;:  ldr r2, [pc, #204]  ; 0x8dc0 &lt;main+1548&gt;
     0x00008cf0 &lt;+1340&gt;:  bl  0x9ff0 &lt;vgPlain_debugLog&gt;
     0x00008cf4 &lt;+1344&gt;:  mov r1, r11
     0x00008cf8 &lt;+1348&gt;:  mov r2, r6
     0x00008cfc &lt;+1352&gt;:  mov r0, r4
     0x00008d00 &lt;+1356&gt;:  bl  0x2ca60 &lt;execve&gt;
     0x00008d04 &lt;+1360&gt;:  ldr r3, [pc, #132]  ; 0x8d90 &lt;main+1500&gt;
     0x00008d08 &lt;+1364&gt;:  ldr r4, [r3]
     0x00008d0c &lt;+1368&gt;:  bl  0xd5c0 &lt;__errno_location&gt;
     0x00008d10 &lt;+1372&gt;:  ldr r0, [r0]
     0x00008d14 &lt;+1376&gt;:  bl  0x29b60 &lt;strerror&gt;
     0x00008d18 &lt;+1380&gt;:  mov r2, r10
     0x00008d1c &lt;+1384&gt;:  mov r3, r8
     0x00008d20 &lt;+1388&gt;:  ldr r1, [pc, #156]  ; 0x8dc4 &lt;main+1552&gt;
     0x00008d24 &lt;+1392&gt;:  str r0, [sp]
     0x00008d28 &lt;+1396&gt;:  mov r0, r4
     0x00008d2c &lt;+1400&gt;:  bl  0x1b4c0 &lt;fprintf&gt;
     0x00008d30 &lt;+1404&gt;:  mov r0, #1
     0x00008d34 &lt;+1408&gt;:  bl  0x12768 &lt;exit&gt;
     0x00008d38 &lt;+1412&gt;:  ldr r0, [pc, #136]  ; 0x8dc8 &lt;main+1556&gt;
     0x00008d3c &lt;+1416&gt;:  ldr r1, [pc, #112]  ; 0x8db4 &lt;main+1536&gt;
     0x00008d40 &lt;+1420&gt;:  movw    r2, #438    ; 0x1b6
     0x00008d44 &lt;+1424&gt;:  ldr r3, [pc, #108]  ; 0x8db8 &lt;main+1540&gt;
     0x00008d48 &lt;+1428&gt;:  bl  0xd5dc &lt;__assert_fail&gt;
     0x00008d4c &lt;+1432&gt;:          ; &lt;UNDEFINED&gt; instruction: 0x000672b4
     0x00008d50 &lt;+1436&gt;:  andeq   r7, r6, r4, asr #5
     0x00008d54 &lt;+1440&gt;:  andeq   r7, r6, r0, asr #2
     0x00008d58 &lt;+1444&gt;:  andeq   r7, r6, r12, asr #5
     0x00008d5c &lt;+1448&gt;:  andeq   r7, r6, r12, lsl #5
     0x00008d60 &lt;+1452&gt;:  andeq   r7, r6, r0, lsr #7
     0x00008d64 &lt;+1456&gt;:  andeq   r7, r6, r8, lsr r4
     0x00008d68 &lt;+1460&gt;:  andeq   r8, r7, r0, asr #24
     0x00008d6c &lt;+1464&gt;:  muleq   r6, r0, r4
     0x00008d70 &lt;+1468&gt;:  strdeq  r4, [r8], -r0
     0x00008d74 &lt;+1472&gt;:  andeq   r7, r6, r0, lsr #9
     0x00008d78 &lt;+1476&gt;:          ; &lt;UNDEFINED&gt; instruction: 0x000672b8
     0x00008d7c &lt;+1480&gt;:          ; &lt;UNDEFINED&gt; instruction: 0x000672bc
     0x00008d80 &lt;+1484&gt;:  andeq   r7, r6, r4, ror #5
     0x00008d84 &lt;+1488&gt;:  andeq   r7, r6, r4, lsl r3
     0x00008d88 &lt;+1492&gt;:  andeq   r7, r6, r0, lsr #6
     0x00008d8c &lt;+1496&gt;:  andeq   r7, r6, r8, lsl #4
     0x00008d90 &lt;+1500&gt;:  andeq   r4, r8, r8, lsr #20
     0x00008d94 &lt;+1504&gt;:          ; &lt;UNDEFINED&gt; instruction: 0x000673b0
     0x00008d98 &lt;+1508&gt;:  andeq   r7, r6, r8, ror #7
     0x00008d9c &lt;+1512&gt;:  andeq   r9, r7, r8, lsl #29
     0x00008da0 &lt;+1516&gt;:  andeq   r7, r6, r4, asr r3
     0x00008da4 &lt;+1520&gt;:  andeq   r7, r6, r8, lsl #7
     0x00008da8 &lt;+1524&gt;:  andeq   r7, r6, r12, asr #8
     0x00008dac &lt;+1528&gt;:  andeq   r7, r6, r8, ror #8
     0x00008db0 &lt;+1532&gt;:  andeq   r7, r6, r4, lsl #9
     0x00008db4 &lt;+1536&gt;:  muleq   r6, r0, r1
     0x00008db8 &lt;+1540&gt;:  andeq   r7, r6, r0, lsr r5
     0x00008dbc &lt;+1544&gt;:          ; &lt;UNDEFINED&gt; instruction: 0x000674bc
     0x00008dc0 &lt;+1548&gt;:  andeq   r7, r6, r8, asr #9
     0x00008dc4 &lt;+1552&gt;:  ldrdeq  r7, [r6], -r8
     0x00008dc8 &lt;+1556&gt;:  andeq   r7, r6, r12, lsr #8
  </code></pre>