]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
This commit was manufactured by cvs2svn to create branch 'binutils-
authornobody <>
Sun, 15 May 2011 18:52:02 +0000 (18:52 +0000)
committernobody <>
Sun, 15 May 2011 18:52:02 +0000 (18:52 +0000)
2_21-branch'.

Cherrypick from master 2011-05-15 18:52:01 UTC Richard Sandiford <rdsandiford@googlemail.com> 'bfd/':
    ld/testsuite/ld-mips-elf/reloc-6a.s
    ld/testsuite/ld-mips-elf/reloc-6b.s

ld/testsuite/ld-mips-elf/reloc-6a.s [new file with mode: 0644]
ld/testsuite/ld-mips-elf/reloc-6b.s [new file with mode: 0644]

diff --git a/ld/testsuite/ld-mips-elf/reloc-6a.s b/ld/testsuite/ld-mips-elf/reloc-6a.s
new file mode 100644 (file)
index 0000000..4d84e83
--- /dev/null
@@ -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)
diff --git a/ld/testsuite/ld-mips-elf/reloc-6b.s b/ld/testsuite/ld-mips-elf/reloc-6b.s
new file mode 100644 (file)
index 0000000..aa2a726
--- /dev/null
@@ -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)