pr25416-5b.s 869 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .text
  2. .p2align 4
  3. .globl test1
  4. .type test1, @function
  5. test1:
  6. .cfi_startproc
  7. subl $8, %esp
  8. .cfi_def_cfa_offset 16
  9. lea foo@TLSDESC(%rip), %eax
  10. call *foo@TLSCALL(%eax)
  11. addl %fs:0, %eax
  12. cmpl %edi, (%eax)
  13. jne .L5
  14. addl $8, %esp
  15. .cfi_remember_state
  16. .cfi_def_cfa_offset 8
  17. ret
  18. .L5:
  19. .cfi_restore_state
  20. call abort@PLT
  21. .cfi_endproc
  22. .size test1, .-test1
  23. .p2align 4
  24. .globl test2
  25. .type test2, @function
  26. test2:
  27. .cfi_startproc
  28. subl $8, %esp
  29. .cfi_def_cfa_offset 16
  30. lea bar@TLSDESC(%rip), %eax
  31. call *bar@TLSCALL(%eax)
  32. addl %fs:0, %eax
  33. cmpl %edi, (%eax)
  34. jne .L9
  35. addl $8, %esp
  36. .cfi_remember_state
  37. .cfi_def_cfa_offset 8
  38. ret
  39. .L9:
  40. .cfi_restore_state
  41. call abort@PLT
  42. .cfi_endproc
  43. .size test2, .-test2
  44. .section .tdata,"awT",@progbits
  45. .align 4
  46. .hidden foo
  47. .globl foo
  48. .type foo, @object
  49. .size foo, 4
  50. foo:
  51. .long 30
  52. .section .note.GNU-stack,"",@progbits