unwind-4.s 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .cfi_sections .c6xabi.exidx
  2. .text
  3. # out of line table entry
  4. .global _start
  5. .type _start, %function
  6. _start:
  7. .cfi_startproc
  8. .cfi_offset B3, 0
  9. .cfi_def_cfa_offset 8
  10. nop
  11. .p2align 6
  12. .cfi_endproc
  13. .personalityindex 3
  14. .handlerdata
  15. .word 0
  16. .endp
  17. # entry that can be merged
  18. .cfi_startproc
  19. .cfi_offset B3, 0
  20. .cfi_def_cfa_offset 8
  21. nop
  22. .p2align 6
  23. .cfi_endproc
  24. .personalityindex 3
  25. .endp
  26. # Section that will be placed first
  27. .section .before, "xa"
  28. .type _before, %function
  29. _before:
  30. .cfi_startproc
  31. .cfi_offset B3, 0
  32. .cfi_def_cfa_offset 8
  33. nop
  34. .p2align 6
  35. .cfi_endproc
  36. .personalityindex 3
  37. .endp
  38. # section that will be placed last
  39. .section .after, "xa"
  40. .global __c6xabi_unwind_cpp_pr3
  41. .type __c6xabi_unwind_cpp_pr3, %function
  42. __c6xabi_unwind_cpp_pr3:
  43. # entry that can be merged
  44. .cfi_startproc
  45. .cfi_offset B3, 0
  46. .cfi_def_cfa_offset 8
  47. nop
  48. .cfi_endproc
  49. .personalityindex 3
  50. .endp
  51. # final function is cantunwind, so output table size is smaller
  52. # than sum of input sections
  53. .global foo
  54. .type foo, %function
  55. foo:
  56. .cfi_startproc
  57. nop
  58. .p2align 6
  59. .cfi_endproc
  60. .cantunwind
  61. .endp
  62. .section .far
  63. .word 0