Skip to content

Instantly share code, notes, and snippets.

@VentGrey
Created September 2, 2018 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VentGrey/7f694bd35cdd99cf0d51c2d47b873942 to your computer and use it in GitHub Desktop.
Save VentGrey/7f694bd35cdd99cf0d51c2d47b873942 to your computer and use it in GitHub Desktop.
.text
.file "main0-317d481089b8c8fe83113de504472633.rs"
.section .text._ZN3std2rt10lang_start17haec5f20d0f279a35E,"ax",@progbits
.hidden _ZN3std2rt10lang_start17haec5f20d0f279a35E
.globl _ZN3std2rt10lang_start17haec5f20d0f279a35E
.p2align 4, 0x90
.type _ZN3std2rt10lang_start17haec5f20d0f279a35E,@function
_ZN3std2rt10lang_start17haec5f20d0f279a35E:
.cfi_startproc
subq $40, %rsp
.cfi_def_cfa_offset 48
leaq .Lvtable.0(%rip), %rax
leaq 32(%rsp), %rcx
movq %rdi, 32(%rsp)
movq %rcx, %rdi
movq %rsi, 24(%rsp)
movq %rax, %rsi
movq 24(%rsp), %rax
movq %rdx, 16(%rsp)
movq %rax, %rdx
movq 16(%rsp), %rcx
callq _ZN3std2rt19lang_start_internal17h249c3823b1cd2120E@PLT
movq %rax, 8(%rsp)
movq 8(%rsp), %rax
addq $40, %rsp
retq
.Lfunc_end0:
.size _ZN3std2rt10lang_start17haec5f20d0f279a35E, .Lfunc_end0-_ZN3std2rt10lang_start17haec5f20d0f279a35E
.cfi_endproc
.section ".text._ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E","ax",@progbits
.p2align 4, 0x90
.type _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E,@function
_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E:
.cfi_startproc
pushq %rax
.cfi_def_cfa_offset 16
callq *(%rdi)
callq _ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfaa6b768b164e469E
movl %eax, 4(%rsp)
movl 4(%rsp), %eax
popq %rcx
retq
.Lfunc_end1:
.size _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E, .Lfunc_end1-_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E
.cfi_endproc
.section .text._ZN3std3sys4unix7process14process_common8ExitCode6as_i3217hbf90d290dc576dc4E,"ax",@progbits
.p2align 4, 0x90
.type _ZN3std3sys4unix7process14process_common8ExitCode6as_i3217hbf90d290dc576dc4E,@function
_ZN3std3sys4unix7process14process_common8ExitCode6as_i3217hbf90d290dc576dc4E:
.cfi_startproc
movb (%rdi), %al
movzbl %al, %eax
retq
.Lfunc_end2:
.size _ZN3std3sys4unix7process14process_common8ExitCode6as_i3217hbf90d290dc576dc4E, .Lfunc_end2-_ZN3std3sys4unix7process14process_common8ExitCode6as_i3217hbf90d290dc576dc4E
.cfi_endproc
.section .text._ZN4core3fmt9Arguments6new_v117h5554d2bb88b5f3faE,"ax",@progbits
.p2align 4, 0x90
.type _ZN4core3fmt9Arguments6new_v117h5554d2bb88b5f3faE,@function
_ZN4core3fmt9Arguments6new_v117h5554d2bb88b5f3faE:
.cfi_startproc
subq $16, %rsp
.cfi_def_cfa_offset 24
movq %rdi, %rax
movq $0, (%rsp)
movq %rsi, (%rdi)
movq %rdx, 8(%rdi)
movq (%rsp), %rdx
movq 8(%rsp), %rsi
movq %rdx, 16(%rdi)
movq %rsi, 24(%rdi)
movq %rcx, 32(%rdi)
movq %r8, 40(%rdi)
addq $16, %rsp
retq
.Lfunc_end3:
.size _ZN4core3fmt9Arguments6new_v117h5554d2bb88b5f3faE, .Lfunc_end3-_ZN4core3fmt9Arguments6new_v117h5554d2bb88b5f3faE
.cfi_endproc
.section .text._ZN4core3ops8function6FnOnce9call_once17hfb199801f7592cc7E,"ax",@progbits
.p2align 4, 0x90
.type _ZN4core3ops8function6FnOnce9call_once17hfb199801f7592cc7E,@function
_ZN4core3ops8function6FnOnce9call_once17hfb199801f7592cc7E:
.Lfunc_begin0:
.cfi_startproc
.cfi_personality 155, DW.ref.rust_eh_personality
.cfi_lsda 27, .Lexception0
subq $40, %rsp
.cfi_def_cfa_offset 48
movq %rdi, 8(%rsp)
.Ltmp0:
leaq 8(%rsp), %rdi
callq _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E
.Ltmp1:
movl %eax, 4(%rsp)
jmp .LBB4_1
.LBB4_1:
jmp .LBB4_2
.LBB4_2:
movl 4(%rsp), %eax
addq $40, %rsp
retq
.LBB4_3:
jmp .LBB4_4
.LBB4_4:
movq 24(%rsp), %rdi
callq _Unwind_Resume@PLT
ud2
.LBB4_5:
.Ltmp2:
movl %edx, %ecx
movq %rax, 24(%rsp)
movl %ecx, 32(%rsp)
jmp .LBB4_3
.Lfunc_end4:
.size _ZN4core3ops8function6FnOnce9call_once17hfb199801f7592cc7E, .Lfunc_end4-_ZN4core3ops8function6FnOnce9call_once17hfb199801f7592cc7E
.cfi_endproc
.section .gcc_except_table,"a",@progbits
.p2align 2
GCC_except_table4:
.Lexception0:
.byte 255
.byte 155
.asciz "\234"
.byte 3
.byte 26
.long .Ltmp0-.Lfunc_begin0
.long .Ltmp1-.Ltmp0
.long .Ltmp2-.Lfunc_begin0
.byte 0
.long .Ltmp1-.Lfunc_begin0
.long .Lfunc_end4-.Ltmp1
.long 0
.byte 0
.p2align 2
.section .text._ZN4core3ptr13drop_in_place17hf1cb456e69452353E,"ax",@progbits
.p2align 4, 0x90
.type _ZN4core3ptr13drop_in_place17hf1cb456e69452353E,@function
_ZN4core3ptr13drop_in_place17hf1cb456e69452353E:
.cfi_startproc
pushq %rax
.cfi_def_cfa_offset 16
movq %rdi, (%rsp)
popq %rax
retq
.Lfunc_end5:
.size _ZN4core3ptr13drop_in_place17hf1cb456e69452353E, .Lfunc_end5-_ZN4core3ptr13drop_in_place17hf1cb456e69452353E
.cfi_endproc
.section ".text._ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfaa6b768b164e469E","ax",@progbits
.p2align 4, 0x90
.type _ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfaa6b768b164e469E,@function
_ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfaa6b768b164e469E:
.cfi_startproc
pushq %rax
.cfi_def_cfa_offset 16
xorl %edi, %edi
callq _ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17hbaff95f015013e1aE
movl %eax, 4(%rsp)
movl 4(%rsp), %eax
popq %rcx
retq
.Lfunc_end6:
.size _ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfaa6b768b164e469E, .Lfunc_end6-_ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfaa6b768b164e469E
.cfi_endproc
.section ".text._ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17hbaff95f015013e1aE","ax",@progbits
.p2align 4, 0x90
.type _ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17hbaff95f015013e1aE,@function
_ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17hbaff95f015013e1aE:
.cfi_startproc
pushq %rax
.cfi_def_cfa_offset 16
movb %dil, %al
leaq 7(%rsp), %rdi
movb %al, 7(%rsp)
callq _ZN3std3sys4unix7process14process_common8ExitCode6as_i3217hbf90d290dc576dc4E
movl %eax, (%rsp)
movl (%rsp), %eax
popq %rcx
retq
.Lfunc_end7:
.size _ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17hbaff95f015013e1aE, .Lfunc_end7-_ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17hbaff95f015013e1aE
.cfi_endproc
.section .text._ZN4main4main17hba75c185e3039e42E,"ax",@progbits
.p2align 4, 0x90
.type _ZN4main4main17hba75c185e3039e42E,@function
_ZN4main4main17hba75c185e3039e42E:
.cfi_startproc
subq $72, %rsp
.cfi_def_cfa_offset 80
leaq 16(%rsp), %rdi
leaq .Lbyte_str.2(%rip), %rax
movl $1, %ecx
movl %ecx, %edx
leaq .Lbyte_str.3(%rip), %rsi
xorl %ecx, %ecx
movl %ecx, %r8d
movq %rsi, 8(%rsp)
movq %rax, %rsi
movq 8(%rsp), %rcx
callq _ZN4core3fmt9Arguments6new_v117h5554d2bb88b5f3faE
leaq 16(%rsp), %rdi
callq _ZN3std2io5stdio6_print17ha644d8a6c5fabe29E@PLT
addq $72, %rsp
retq
.Lfunc_end8:
.size _ZN4main4main17hba75c185e3039e42E, .Lfunc_end8-_ZN4main4main17hba75c185e3039e42E
.cfi_endproc
.section .text.main,"ax",@progbits
.globl main
.p2align 4, 0x90
.type main,@function
main:
.cfi_startproc
pushq %rax
.cfi_def_cfa_offset 16
leaq _ZN4main4main17hba75c185e3039e42E(%rip), %rax
movslq %edi, %rcx
movq %rax, %rdi
movq %rsi, (%rsp)
movq %rcx, %rsi
movq (%rsp), %rdx
callq _ZN3std2rt10lang_start17haec5f20d0f279a35E
movl %eax, %r8d
movl %r8d, %eax
popq %rcx
retq
.Lfunc_end9:
.size main, .Lfunc_end9-main
.cfi_endproc
.type .Lvtable.0,@object
.section .data.rel.ro..Lvtable.0,"aw",@progbits
.p2align 3
.Lvtable.0:
.quad _ZN4core3ptr13drop_in_place17hf1cb456e69452353E
.quad 8
.quad 8
.quad _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E
.quad _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h0cf7a77d32dceae2E
.quad _ZN4core3ops8function6FnOnce9call_once17hfb199801f7592cc7E
.size .Lvtable.0, 48
.type .Lbyte_str.1,@object
.section .rodata..Lbyte_str.1,"a",@progbits
.Lbyte_str.1:
.ascii "Hello, world!\n"
.size .Lbyte_str.1, 14
.type .Lbyte_str.2,@object
.section .data.rel.ro..Lbyte_str.2,"aw",@progbits
.p2align 3
.Lbyte_str.2:
.quad .Lbyte_str.1
.asciz "\016\000\000\000\000\000\000"
.size .Lbyte_str.2, 16
.type .Lbyte_str.3,@object
.section .rodata..Lbyte_str.3,"a",@progbits
.p2align 3
.Lbyte_str.3:
.size .Lbyte_str.3, 0
.hidden DW.ref.rust_eh_personality
.weak DW.ref.rust_eh_personality
.section .data.DW.ref.rust_eh_personality,"aGw",@progbits,DW.ref.rust_eh_personality,comdat
.p2align 3
.type DW.ref.rust_eh_personality,@object
.size DW.ref.rust_eh_personality, 8
DW.ref.rust_eh_personality:
.quad rust_eh_personality
.section ".note.GNU-stack","",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment