old-cross-binutils/ld/testsuite/ld-mips-elf/got-dump-1.s
Richard Sandiford ccb4c9519b binutils/
* readelf.c (print_mips_got_entry): New function.
	(process_mips_specific): Print GOT information.

ld/testsuite/
	* ld-mips-elf/got-dump-1.d, ld-mips-elf/got-dump-1.s,
	ld-mips-elf/got-dump-1.ld, ld-mips-elf/got-dump-2.d,
	ld-mips-elf/got-dump-2.s, ld-mips-elf/got-dump-2.ld: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2008-03-20 10:53:11 +00:00

22 lines
320 B
ArmAsm

.global glob
.ent glob
glob:
lw $4,%got(local)($28)
addiu $4,$4,%lo(local)
lw $4,%got(hidden)($28)
lw $4,%call16(glob)($28)
lw $4,%call16(extern)($28)
.end glob
.data
.type local,%object
.size local,4
local:
.word undef
.globl hidden
.hidden hidden
.type hidden,%object
.size hidden,4
hidden:
.word 0