old-cross-binutils/ld/testsuite/ld-mips-elf/reloc-6b.s
Richard Sandiford 77c56f443d bfd/
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
	global GOT entries for GOT_PAGE relocations against global symbols.

ld/testsuite/
	* lib/ld-lib.exp (run_ld_link_tests): Simplify pass/fail logic.
	Fail if the link command fails and if no test rules are defined.
	* ld-mips-elf/reloc-6a.s, ld-mips-elf/reloc-6b.s: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2011-05-15 18:52:01 +00:00

11 lines
203 B
ArmAsm

.globl __start
.globl gs
__start:
gs:
ls:
lw $4,%got_page(us)($gp)
addiu $4,$4,%got_ofst(us)
lw $4,%got_page(gs)($gp)
addiu $4,$4,%got_ofst(gs)
lw $4,%got_page(ls)($gp)
addiu $4,$4,%got_ofst(ls)