Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "main.c"
- .section .rodata.str1.1,"aMS",@progbits,1
- .LC0:
- .string "THR STARTED"
- .section .text.unlikely,"ax",@progbits
- .LCOLDB1:
- .text
- .LHOTB1:
- .p2align 4,,15
- .globl func2
- .type func2, @function
- func2:
- .LFB15:
- .cfi_startproc
- subq $8, %rsp
- .cfi_def_cfa_offset 16
- movl $.LC0, %edi
- call puts
- movl $1, flag(%rip)
- .L2:
- jmp .L2
- .cfi_endproc
- .LFE15:
- .size func2, .-func2
- .section .text.unlikely
- .LCOLDE1:
- .text
- .LHOTE1:
- .section .rodata.str1.1
- .LC2:
- .string "YOBA"
- .section .text.unlikely
- .LCOLDB3:
- .text
- .LHOTB3:
- .p2align 4,,15
- .globl func1
- .type func1, @function
- func1:
- .LFB14:
- .cfi_startproc
- subq $8, %rsp
- .cfi_def_cfa_offset 16
- movl $1, flag(%rip)
- .p2align 4,,10
- .p2align 3
- .L6:
- movl $.LC2, %edi
- call puts
- movl flag(%rip), %eax
- testl %eax, %eax
- jne .L6
- addq $8, %rsp
- .cfi_def_cfa_offset 8
- ret
- .cfi_endproc
- .LFE14:
- .size func1, .-func1
- .section .text.unlikely
- .LCOLDE3:
- .text
- .LHOTE3:
- .section .text.unlikely
- .LCOLDB4:
- .section .text.startup,"ax",@progbits
- .LHOTB4:
- .p2align 4,,15
- .globl main
- .type main, @function
- main:
- .LFB16:
- .cfi_startproc
- subq $24, %rsp
- .cfi_def_cfa_offset 32
- xorl %ecx, %ecx
- movl $func2, %edx
- leaq 8(%rsp), %rdi
- xorl %esi, %esi
- call pthread_create
- movl $1, flag(%rip)
- .p2align 4,,10
- .p2align 3
- .L10:
- movl $.LC2, %edi
- call puts
- movl flag(%rip), %eax
- testl %eax, %eax
- jne .L10
- .L13:
- jmp .L13
- .cfi_endproc
- .LFE16:
- .size main, .-main
- .section .text.unlikely
- .LCOLDE4:
- .section .text.startup
- .LHOTE4:
- .local flag
- .comm flag,4,4
- .ident "GCC: (Debian 4.9.2-10) 4.9.2"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement