1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
| .arch armv5te
.fpu softvfp
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 18, 4
.file "a.c"
.global i
.data
.align 2
.type i, %object
.size i, 4
i:
.word 12
.comm j,4,4
.section .rodata
.align 2
.LC0:
.ascii "Hello World\000"
.text
.align 2
.global main
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
stmfd sp!, {fp, lr}
add fp, sp, #4
ldr r3, .L2
.LPIC0:
add r3, pc, r3
ldr r2, .L2+4
ldr r2, [r3, r2]
mov r1, #34
str r1, [r2, #0]
ldr r2, .L2+8
ldr r3, [r3, r2]
mov r2, #56
str r2, [r3, #0]
ldr r3, .L2+12
.LPIC1:
add r3, pc, r3
mov r0, r3
bl puts(PLT)
mov r3, #0
mov r0, r3
ldmfd sp!, {fp, pc}
.L3:
.align 2
.L2:
.word _GLOBAL_OFFSET_TABLE_-(.LPIC0+8)
.word i(GOT)
.word j(GOT)
.word .LC0-(.LPIC1+8)
.size main, .-main
.ident "GCC: (GNU) 4.6 20120106 (prerelease)"
.section .note.GNU-stack,"",%progbits
|