aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/reloc_ler_with_shared.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/reloc_ler_with_shared.s')
-rw-r--r--ld/testsuite/ld-loongarch-elf/reloc_ler_with_shared.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/reloc_ler_with_shared.s b/ld/testsuite/ld-loongarch-elf/reloc_ler_with_shared.s
new file mode 100644
index 0000000..a9e5696
--- /dev/null
+++ b/ld/testsuite/ld-loongarch-elf/reloc_ler_with_shared.s
@@ -0,0 +1,9 @@
+ .text
+ .globl s
+ .section .tdata,"awT",@progbits
+ .type s, @object
+ s:
+ .word 123
+ .text
+ lu12i.w $r4,%le_hi20_r(s)
+ add.d $r4,$r4,$r2,%le_add_r(s)