]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.s
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-mips-elf / pic-and-nonpic-3b.s
diff --git a/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.s b/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.s
new file mode 100644 (file)
index 0000000..571c774
--- /dev/null
@@ -0,0 +1,22 @@
+       .abicalls
+       .option pic0
+       .global __start
+       .ent    __start
+__start:
+       jal     foo
+       j       ext
+       .end    __start
+
+       .global ext
+       .ent    ext
+ext:
+       lui     $gp,%hi(__gnu_local_gp)
+       addiu   $gp,$gp,%lo(__gnu_local_gp)
+       lw      $2,%got(local)($gp)
+       addiu   $2,$2,%lo(local)
+       lw      $25,%call16(bar)($gp)
+       jr      $25
+       .end    ext
+
+       .data
+local: .word   1