All pastes #803282 Raw Edit

assembled PIC code without exter

public text v1 · immutable
·published 2007-12-01 01:22 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
	pushl	$6
	call	*printk@GOTOFF(%ebx)
	popl	%eax
	xorl	%eax, %eax
	popl	%edx
	popl	%ebx
	ret
	.size	printktest, .-printktest
.globl post_code
	.section	.data.rel,"aw",@progbits
	.align 4
	.type	post_code, @object
	.size	post_code, 4
post_code:
	.long	stage0_post_code
.globl printk
	.align 4
	.type	printk, @object
	.size	printk, 4
printk:
	.long	stage0_printk
	.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