Browse Source
* 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.binutils-2_22-branch
7 changed files with 54 additions and 21 deletions
@ -0,0 +1,11 @@ |
|||
.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) |
|||
@ -0,0 +1,11 @@ |
|||
.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) |
|||
Loading…
Reference in new issue