OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [mips/] [elf-rel10.s] - Rev 156

Compare with Previous | Blame | View Log

	.globl	foo
	.ent	foo
foo:
	lui	$gp,%hi(%neg(%gp_rel(foo)))
	addiu	$gp,$gp,%lo(%neg(%gp_rel(foo)))
	daddu	$gp,$gp,$25
	.end	foo
 
	.ent	bar
bar:
	lui	$gp,%hi(%neg(%gp_rel(bar)))
	addiu	$gp,$gp,%lo(%neg(%gp_rel(bar)))
	daddu	$gp,$gp,$25
	.end	bar
 
	.ent	frob
frob:	
	lw	$4,%got_page(foo)($gp)
	addiu	$4,$4,%got_ofst(foo)
 
	lw	$4,%got_page(foo + 0x1234)($gp)
	addiu	$4,$4,%got_ofst(foo + 0x1234)
 
	lw	$4,%got_page(bar)($gp)
	addiu	$4,$4,%got_ofst(bar)
 
	lw	$4,%got_page(bar + 0x332211)($gp)
	addiu	$4,$4,%got_ofst(bar + 0x332211)
 
	lw	$4,%got_page(frob)($gp)
	addiu	$4,$4,%got_ofst(frob)
	.end	frob
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.