mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2024-12-25 11:41:16 +07:00
36 lines
752 B
ArmAsm
36 lines
752 B
ArmAsm
.text
|
|
.file "hello.c"
|
|
.globl main # -- Begin function main
|
|
.p2align 4, 0x90
|
|
.type main,@function
|
|
main: # @main
|
|
.cfi_startproc
|
|
# BB#0:
|
|
pushq %rbp
|
|
.Lcfi0:
|
|
.cfi_def_cfa_offset 16
|
|
.Lcfi1:
|
|
.cfi_offset %rbp, -16
|
|
movq %rsp, %rbp
|
|
.Lcfi2:
|
|
.cfi_def_cfa_register %rbp
|
|
movabsq $.L.str, %rdi
|
|
movb $0, %al
|
|
callq printf
|
|
xorl %eax, %eax
|
|
popq %rbp
|
|
retq
|
|
.Lfunc_end0:
|
|
.size main, .Lfunc_end0-main
|
|
.cfi_endproc
|
|
# -- End function
|
|
.type .L.str,@object # @.str
|
|
.section .rodata.str1.1,"aMS",@progbits,1
|
|
.L.str:
|
|
.asciz "hello, world\n"
|
|
.size .L.str, 14
|
|
|
|
|
|
.ident "clang version 5.0.1 (tags/RELEASE_501/final)"
|
|
.section ".note.GNU-stack","",@progbits
|