aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/inline.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-powerpc/inline.s')
-rw-r--r--ld/testsuite/ld-powerpc/inline.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/inline.s b/ld/testsuite/ld-powerpc/inline.s
new file mode 100644
index 0000000..462e702
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/inline.s
@@ -0,0 +1,12 @@
+ .text
+ .globl _start
+_start:
+ std 2,24(1)
+ .reloc .-4,R_PPC64_PLTSEQ,my_func
+ addis 12,2,my_func@plt@ha # .reloc .,R_PPC64_PLT16_HA,my_func
+ ld 12,my_func@plt@l(12) # .reloc .,R_PPC64_PLT16_LO_DS,my_func
+ mtctr 12
+ .reloc .-4,R_PPC64_PLTSEQ,my_func
+ bctrl
+ .reloc .-4,R_PPC64_PLTCALL,my_func
+ ld 2,24(1)