tls-3.s 422 B

1234567891011121314151617181920
  1. .text
  2. .weak u
  3. .globl _start
  4. _start:
  5. call #gettlsoff(u)
  6. sethi.p #gottlsdeschi(u), gr14
  7. setlo #gottlsdesclo(u), gr14
  8. ldd #tlsdesc(u)@(gr15, gr14), gr8
  9. calll #gettlsoff(u)@(gr8, gr0)
  10. lddi.p @(gr15, #gottlsdesc12(u)), gr8
  11. setlos #gottlsdesclo(u), gr14
  12. calll #gettlsoff(u)@(gr8, gr0)
  13. ldi @(gr15, #gottlsoff12(u)), gr9
  14. sethi.p #gottlsoffhi(u), gr14
  15. setlo #gottlsofflo(u), gr14
  16. ld #tlsoff(u)@(gr15, gr14), gr9