Skip to content

Instantly share code, notes, and snippets.

@aeickho
Created August 15, 2016 23:07
Show Gist options
  • Save aeickho/920ff39e0dee4fdf93038a3e693fd677 to your computer and use it in GitHub Desktop.
Save aeickho/920ff39e0dee4fdf93038a3e693fd677 to your computer and use it in GitHub Desktop.
[ ] 1 arm_16: thumb ldr pc-rel analysis
[OK]
[ ] 2 arm_16: thumb ldr pc-rel emulation
[OK]
[ ] 3 arm_16: bx ip eof
[OK]
[ ] 4 arm_16: thumb ldr pc-rel analysis
[OK]
[ ] 5 arm_16: thumb ldr+add pc-rel analysis
[XX]
Regression: ./arm_16
Command: /home/alex/bin/radare2 -e scr.color=0 -N -q -i /tmp/r2-regressions//arm_16-bydtGB/rad malloc://32 > /tmp/r2-regressions//arm_16-bydtGB/out 2> /tmp/r2-regressions//arm_16-bydtGB/err
File: malloc://32
Script:
e asm.arch=arm
e asm.bits=16
e asm.emu=1
wx 0249 024a 024b 7944 7a44 7b44 1111 2222 3333 4444 5555 6666 7777
pd 6
Diff: --- /tmp/r2-regressions//arm_16-bydtGB/exp 2016-08-16 01:06:25.809904412 +0200
+++ /tmp/r2-regressions//arm_16-bydtGB/out 2016-08-16 01:06:25.881905035 +0200
@@ -1,6 +1,6 @@
- 0x00000000 0249 ldr r1, [pc, 8] ; [0xc:4]=0x22221111 ; 12; r1=0x22221111 -> 0xffffff00
+ 0x00000000 0249 ldr r1, [pc, 8] ; [0xc:4]=0x22221111 ; 12; r1=0x1111447b -> 0xffffff00
0x00000002 024a ldr r2, [pc, 8] ; [0xc:4]=0x22221111 ; 12; r2=0x22221111 -> 0xffffff00
- 0x00000004 024b ldr r3, [pc, 8] ; [0x10:4]=0x44443333 ; 16; r3=0x44443333 -> 0xffffff00
- 0x00000006 7944 add r1, pc ; r1=0x2222111b -> 0xffffff00
- 0x00000008 7a44 add r2, pc ; r2=0x2222111d -> 0xffffff00
- 0x0000000a 7b44 add r3, pc ; r3=0x44443341 -> 0xffffff00
+ 0x00000004 024b ldr r3, [pc, 8] ; [0x10:4]=0x44443333 ; 16; r3=0x33332222 -> 0xffffff00
+ 0x00000006 7944 add r1, pc ; 14
+ 0x00000008 7a44 add r2, pc ; 16
+ 0x0000000a 7b44 add r3, pc ; 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment