tlspic.s

来自「俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)」· S 代码 · 共 40 行

S
40
字号
	.section ".tdata", "awT", @progbits	.globl foofoo:	.long 25	.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	/* foo can be anywhere in the startup TLS  */	movl	%gs:0, %eax	/* Arbitrary instructions in between.  */	leal	0(%esi, 1), %esi	subl	foo@GOTTPOFF(%ebx), %eax	/* %eax now contains &foo  */	/* Now the GNU sequence.  */	movl	foo@GOTNTPOFF(%ebx), %eax	/* Arbitrary instructions in between.  */	leal	0(%esi, 1), %esi	movl	%gs:(%eax), %eax	/* %eax now contains foo  */	movl	%gs:0, %ecx	addl	foo@GOTNTPOFF(%ebx), %ecx	movl    -4(%ebp), %ebx	leave	ret

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?