arm汇编:伪指令ldr分析

文件名:start.S

1 .globl _start
2 
3 _start:
4     ldr r0, =0x11111111
5     
6     b .
7     

反汇编文件名:start_elf.dis

 1 start.elf:     file format elf32-littlearm
 2 
 3 
 4 Disassembly of section .text:
 5 
 6 00000000 <_start>:
 7    0:    e59f3000     ldr    r3, [pc, #0]    ; 8 <_start+0x8>
 8    4:    eafffffe     b    4 <_start+0x4>
 9    8:    000001ff     strdeq    r0, [r0], -pc
10 
11 Disassembly of section .ARM.attributes:
12 
13 00000000 <.ARM.attributes>:
14    0:    00001a41     andeq    r1, r0, r1, asr #20
15    4:    61656100     cmnvs    r5, r0, lsl #2
16    8:    01006962     tsteq    r0, r2, ror #18
17    c:    00000010     andeq    r0, r0, r0, lsl r0
18   10:    45543505     ldrbmi    r3, [r4, #-1285]    ; 0x505
19   14:    08040600     stmdaeq    r4, {r9, sl}
20   18:    Address 0x00000018 is out of bounds.
原文地址:https://www.cnblogs.com/vivohan/p/7900755.html