All pastes #803281 Raw Edit

assembled PIC code with extern d

public text v1 · immutable
·published 2007-12-01 01:21 UTC
rendered paste body
	.file	"initram_printktest.c"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Absolute call successful.\n"
	.text
.globl printktest
	.type	printktest, @function
printktest:
	pushl	%ebx
	call	__i686.get_pc_thunk.bx
	addl	$_GLOBAL_OFFSET_TABLE_, %ebx
	leal	.LC0@GOTOFF(%ebx), %eax
	pushl	%eax
	movl	printk@GOT(%ebx), %eax
	pushl	$6
	call	*(%eax)
	popl	%eax
	xorl	%eax, %eax
	popl	%edx
	popl	%ebx
	ret
	.size	printktest, .-printktest
	.ident	"GCC: (GNU) 4.2.1 (SUSE Linux)"
	.section	.text.__i686.get_pc_thunk.bx,"axG",@progbits,__i686.get_pc_thunk.bx,comdat
.globl __i686.get_pc_thunk.bx
	.hidden	__i686.get_pc_thunk.bx
	.type	__i686.get_pc_thunk.bx, @function
__i686.get_pc_thunk.bx:
	movl	(%esp), %ebx
	ret
	.section	.note.GNU-stack,"",@progbits