zeroeh_x.s 760 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ;# Main file, x.s, with the program (_start) referring to two
  2. ;# linkonce functions fn and fn2. The functions fn and fn2 are
  3. ;# supposed to be equivalent of C++ template instantiations; the
  4. ;# main file instantiates fn.
  5. .text
  6. .global _start
  7. _start:
  8. .long fn
  9. .long fn2
  10. .section .gnu.linkonce.t.fn,"ax",@progbits
  11. .weak fn
  12. .type fn,@function
  13. fn:
  14. .La:
  15. .long 1
  16. .long 2
  17. .Lb:
  18. .size fn,.Lb-.La
  19. .section .gcc_except_table,"aw",@progbits
  20. .long 2
  21. .long .La
  22. .long .Lb-.La
  23. .section .eh_frame,"aw",@progbits
  24. .Lframe1:
  25. .long .LECIE1-.LSCIE1
  26. .LSCIE1:
  27. .long 0x0
  28. .byte 0x1
  29. .byte 0
  30. .uleb128 0x1
  31. .sleb128 -4
  32. .byte 0
  33. .p2align 2
  34. .LECIE1:
  35. .LSFDE1:
  36. .long .LEFDE1-.LASFDE1
  37. .LASFDE1:
  38. .long .LASFDE1-.Lframe1
  39. .long .La
  40. .long .Lb-.La
  41. .p2align 2
  42. .LEFDE1: