split_x32_2.s 445 B

123456789101112131415161718192021222324252627282930313233
  1. # split_x32_2.s: x32 specific, -fsplit-stack calling non-split
  2. .text
  3. .global fn1
  4. .type fn1,@function
  5. fn1:
  6. cmp %fs:0x40,%esp
  7. jae 1f
  8. callq __morestack
  9. retq
  10. 1:
  11. callq fn3
  12. retq
  13. .size fn1,. - fn1
  14. .global fn2
  15. .type fn2,@function
  16. fn2:
  17. lea -0x200(%rsp),%r10d
  18. cmp %fs:0x40,%r10d
  19. jae 1f
  20. callq __morestack
  21. retq
  22. 1:
  23. callq fn3
  24. retq
  25. .size fn2,. - fn2
  26. .section .note.GNU-stack,"",@progbits
  27. .section .note.GNU-split-stack,"",@progbits