77c56f443d
* 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.
11 lines
203 B
ArmAsm
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)
|