old-cross-binutils/ld/testsuite/ld-mips-elf/got-dump-2.d
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

25 lines
920 B
Makefile

#name: GOT dump (readelf -A) test 2
#source: got-dump-2.s
#as: -mips3 -EB -64
#ld: -Tgot-dump-2.ld -shared -melf64btsmip
#readelf: -A
Primary GOT:
Canonical gp value: 0001236000008000
Reserved entries:
Address Access Initial Purpose
0001236000000010 -32752\(gp\) 0000000000000000 Lazy resolver
0001236000000018 -32744\(gp\) 8000000000000000 Module pointer \(GNU extension\)
Local entries:
Address Access Initial
0001236000000020 -32736\(gp\) 0001236000000000
0001236000000028 -32728\(gp\) 0001236000000008
Global entries:
Address Access Initial Sym.Val. Type Ndx Name
0001236000000030 -32720\(gp\) 0001235000000020 0001235000000020 FUNC UND extern
0001236000000038 -32712\(gp\) 0000000000000000 0000000000000000 NOTYPE UND undef
0001236000000040 -32704\(gp\) 0001235000000000 0001235000000000 FUNC 7 glob