mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
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.
12 lines
193 B
ArmAsm
12 lines
193 B
ArmAsm
.globl us
|
|
.globl gs
|
|
us:
|
|
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)
|