mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-02 10:54:04 +03:00
43 lines
625 B
ArmAsm
43 lines
625 B
ArmAsm
.file "test2.c"
|
|
.globl g
|
|
.data
|
|
.align 4
|
|
.type g, @object
|
|
.size g, 4
|
|
g:
|
|
.long -11
|
|
.text
|
|
.globl _start
|
|
.type _start, @function
|
|
_start:
|
|
.LFB0:
|
|
.cfi_startproc
|
|
pushq %rbp
|
|
.cfi_def_cfa_offset 16
|
|
.cfi_offset 6, -16
|
|
movq %rsp, %rbp
|
|
.cfi_def_cfa_register 6
|
|
movl g(%rip), %eax
|
|
testl %eax, %eax
|
|
jle .L2
|
|
movl g(%rip), %eax
|
|
addl $1, %eax
|
|
movl %eax, g(%rip)
|
|
.L2:
|
|
#APP
|
|
# 10 "test2.c" 1
|
|
movq $60,%rax
|
|
movq $0,%rdi
|
|
syscall
|
|
# 0 "" 2
|
|
#NO_APP
|
|
nop
|
|
popq %rbp
|
|
.cfi_def_cfa 7, 8
|
|
ret
|
|
.cfi_endproc
|
|
.LFE0:
|
|
.size _start, .-_start
|
|
.ident "GCC: (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005"
|
|
.section .note.GNU-stack,"",@progbits
|