Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. .file "main.c"
  2. .section .rodata.str1.1,"aMS",@progbits,1
  3. .LC0:
  4. .string "THR STARTED"
  5. .section .text.unlikely,"ax",@progbits
  6. .LCOLDB1:
  7. .text
  8. .LHOTB1:
  9. .p2align 4,,15
  10. .globl func2
  11. .type func2, @function
  12. func2:
  13. .LFB15:
  14. .cfi_startproc
  15. subq $8, %rsp
  16. .cfi_def_cfa_offset 16
  17. movl $.LC0, %edi
  18. call puts
  19. movl $1, flag(%rip)
  20. .L2:
  21. jmp .L2
  22. .cfi_endproc
  23. .LFE15:
  24. .size func2, .-func2
  25. .section .text.unlikely
  26. .LCOLDE1:
  27. .text
  28. .LHOTE1:
  29. .section .rodata.str1.1
  30. .LC2:
  31. .string "YOBA"
  32. .section .text.unlikely
  33. .LCOLDB3:
  34. .text
  35. .LHOTB3:
  36. .p2align 4,,15
  37. .globl func1
  38. .type func1, @function
  39. func1:
  40. .LFB14:
  41. .cfi_startproc
  42. subq $8, %rsp
  43. .cfi_def_cfa_offset 16
  44. movl $1, flag(%rip)
  45. .p2align 4,,10
  46. .p2align 3
  47. .L6:
  48. movl $.LC2, %edi
  49. call puts
  50. movl flag(%rip), %eax
  51. testl %eax, %eax
  52. jne .L6
  53. addq $8, %rsp
  54. .cfi_def_cfa_offset 8
  55. ret
  56. .cfi_endproc
  57. .LFE14:
  58. .size func1, .-func1
  59. .section .text.unlikely
  60. .LCOLDE3:
  61. .text
  62. .LHOTE3:
  63. .section .text.unlikely
  64. .LCOLDB4:
  65. .section .text.startup,"ax",@progbits
  66. .LHOTB4:
  67. .p2align 4,,15
  68. .globl main
  69. .type main, @function
  70. main:
  71. .LFB16:
  72. .cfi_startproc
  73. subq $24, %rsp
  74. .cfi_def_cfa_offset 32
  75. xorl %ecx, %ecx
  76. movl $func2, %edx
  77. leaq 8(%rsp), %rdi
  78. xorl %esi, %esi
  79. call pthread_create
  80. movl $1, flag(%rip)
  81. .p2align 4,,10
  82. .p2align 3
  83. .L10:
  84. movl $.LC2, %edi
  85. call puts
  86. movl flag(%rip), %eax
  87. testl %eax, %eax
  88. jne .L10
  89. .L13:
  90. jmp .L13
  91. .cfi_endproc
  92. .LFE16:
  93. .size main, .-main
  94. .section .text.unlikely
  95. .LCOLDE4:
  96. .section .text.startup
  97. .LHOTE4:
  98. .local flag
  99. .comm flag,4,4
  100. .ident "GCC: (Debian 4.9.2-10) 4.9.2"
  101. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement