]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-mips-elf/got-dump-1.s
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-mips-elf / got-dump-1.s
diff --git a/ld/testsuite/ld-mips-elf/got-dump-1.s b/ld/testsuite/ld-mips-elf/got-dump-1.s
new file mode 100644 (file)
index 0000000..d6c318e
--- /dev/null
@@ -0,0 +1,22 @@
+       .global glob
+       .ent    glob
+glob:
+       lw      $4,%got(local)($28)
+       addiu   $4,$4,%lo(local)
+       lw      $4,%got(hidden)($28)
+       lw      $4,%call16(glob)($28)
+       lw      $4,%call16(extern)($28)
+       .end    glob
+
+       .data
+       .type   local,%object
+       .size   local,4
+local:
+       .word   undef
+
+       .globl  hidden
+       .hidden hidden
+       .type   hidden,%object
+       .size   hidden,4
+hidden:
+       .word   0