old-cross-binutils/ld/testsuite/ld-mips-elf/no-shared-1-n64.d
Richard Sandiford 0a61c8c283 bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
	for all relocation types.  Allow any type of relocation to refer to
	__gnu_local_gp.

ld/testsuite/
	* ld-mips-elf/no-shared-1-o32.s,
	ld-mips-elf/no-shared-1-o32.d,
	ld-mips-elf/no-shared-1-n32.d,
	ld-mips-elf/no-shared-1-n64.s,
	ld-mips-elf/no-shared-1-n64.d,
	ld-mips-elf/no-shared-1.ld: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2008-07-10 19:06:54 +00:00

26 lines
553 B
Makefile

#as: -mabi=64 -EB
#ld: -melf64btsmip -T no-shared-1.ld
#objdump: -dr -j.text -j.data -j.got
.*
Disassembly of section \.text:
0000000000050000 <__start>:
50000: 3c020007 lui v0,0x7
50004: 64428000 daddiu v0,v0,-32768
50008: df828020 ld v0,-32736\(gp\)
5000c: df828020 ld v0,-32736\(gp\)
#...
Disassembly of section \.data:
0000000000060000 <\.data>:
60000: 00000000 .*
60004: 00068000 .*
#...
Disassembly of section \.got:
0000000000060010 <_GLOBAL_OFFSET_TABLE_>:
\.\.\.
60018: 80000000 00000000 00000000 00068000 .*