Displaying 1 result from an estimated 1 matches for "e58320ac".
Did you mean:
e58300a8
2018 Mar 12
3
Cross-compiling for ARM Cortex-M3 on x86
...7, pc}
But libc code is in ARM mode:
1563 000091d8 <*srand*>:
1564 91d8: e3a02000 mov r2, #0
1565 91dc: e59f300c ldr r3, [pc, #12] ; 91f0 <srand+0x18>
1566 91e0: e5933000 ldr r3, [r3]
1567 91e4: e58300a8 str r0, [r3, #168] ; 0xa8
1568 91e8: e58320ac str r2, [r3, #172] ; 0xac
1569 91ec: e12fff1e bx lr
As you can see, the call to *srand* is just a *bl (Branch with Link)*, not
a *blx (Branch with Link and Exchange instruction set)*, so I think
something is going wrong here. Indeed, when using a binary analysis tool to
simulate this...