aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/compressed-plt-1d.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/compressed-plt-1d.s')
-rw-r--r--ld/testsuite/ld-mips-elf/compressed-plt-1d.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/compressed-plt-1d.s b/ld/testsuite/ld-mips-elf/compressed-plt-1d.s
new file mode 100644
index 0000000..8163c8e
--- /dev/null
+++ b/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