Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 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 .text.unlikely
  30. .LCOLDB2:
  31. .text
  32. .LHOTB2:
  33. .p2align 4,,15
  34. .globl func1
  35. .type func1, @function
  36. func1:
  37. .LFB14:
  38. .cfi_startproc
  39. movl $0, flag(%rip)
  40. ret
  41. .cfi_endproc
  42. .LFE14:
  43. .size func1, .-func1
  44. .section .text.unlikely
  45. .LCOLDE2:
  46. .text
  47. .LHOTE2:
  48. .section .text.unlikely
  49. .LCOLDB3:
  50. .section .text.startup,"ax",@progbits
  51. .LHOTB3:
  52. .p2align 4,,15
  53. .globl main
  54. .type main, @function
  55. main:
  56. .LFB16:
  57. .cfi_startproc
  58. subq $24, %rsp
  59. .cfi_def_cfa_offset 32
  60. xorl %ecx, %ecx
  61. movl $func2, %edx
  62. leaq 8(%rsp), %rdi
  63. xorl %esi, %esi
  64. call pthread_create
  65. movl $0, flag(%rip)
  66. .L7:
  67. jmp .L7
  68. .cfi_endproc
  69. .LFE16:
  70. .size main, .-main
  71. .section .text.unlikely
  72. .LCOLDE3:
  73. .section .text.startup
  74. .LHOTE3:
  75. .local flag
  76. .comm flag,4,4
  77. .ident "GCC: (Debian 4.9.2-10) 4.9.2"
  78. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement