summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-mips-elf/compressed-plt-1d.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/ld/testsuite/ld-mips-elf/compressed-plt-1d.s')
-rw-r--r--binutils-2.25/ld/testsuite/ld-mips-elf/compressed-plt-1d.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/binutils-2.25/ld/testsuite/ld-mips-elf/compressed-plt-1d.s b/binutils-2.25/ld/testsuite/ld-mips-elf/compressed-plt-1d.s
new file mode 100644
index 00000000..8163c8e1
--- /dev/null
+++ b/binutils-2.25/ld/testsuite/ld-mips-elf/compressed-plt-1d.s
@@ -0,0 +1,22 @@
+# Create a GOT reference for every function under test.
+
+ .abicalls
+ .option pic2
+
+ .include "compressed-plt-1.s"
+
+ .macro test_one, name, types
+ lw $2,%got(\name)($gp)
+ .endm
+
+ .if micromips
+ .set micromips
+ .endif
+
+ .section .text.d, "ax", @progbits
+ .globl testgot
+ .ent testgot
+ .set noreorder
+testgot:
+ test_all
+ .end testgot