tlsd.s
来自「俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)」· S 代码 · 共 43 行
S
43 行
.section ".tdata", "awT", @progbits .globl foo, baz .hidden bazfoo: .long 25bar: .long 27baz: .long 29 .text .globl fn .type fn,@functionfn: pushl %ebp movl %esp, %ebp pushl %ebx pushl %eax call 1f1: popl %ebx addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx /* Dynamic TLS model, foo not known to be in the current object */ leal foo@TLSGD(,%ebx,1), %eax call ___tls_get_addr@PLT /* %eax now contains &foo */ /* Dynamic TLS model, bar and baz known to be in the current object */ leal bar@TLSLDM(%ebx), %eax call ___tls_get_addr@PLT /* Just show that there can be arbitrary instructions here */ leal 0(%edi, 1), %edi leal bar@DTPOFF(%eax), %edx /* %edx now contains &bar */ /* Again, arbitrary instructions */ leal 0(%esi, 1), %esi leal baz@DTPOFF(%eax), %ecx /* %ecx now contains &baz */ movl -4(%ebp), %ebx leave ret
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?