aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/elfv2-2a.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-powerpc/elfv2-2a.s')
-rw-r--r--ld/testsuite/ld-powerpc/elfv2-2a.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/elfv2-2a.s b/ld/testsuite/ld-powerpc/elfv2-2a.s
new file mode 100644
index 0000000..303087a
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/elfv2-2a.s
@@ -0,0 +1,27 @@
+ .globl f1
+ .type f1,@function
+ .text
+f1:
+ addis 2,12,.TOC.-f1@ha
+ addi 2,2,.TOC.-f1@l
+ .localentry f1,.-f1
+ blr
+ .size f1,.-f1
+
+ .globl f2
+ .type f2,@function
+ .text
+f2:
+ addi 2,12,.TOC.-f2
+ .localentry f2,.-f2
+ blr
+ .size f2,.-f2
+
+ .quad f1
+ .quad f1@localentry
+ .quad f2
+ .quad f2@localentry
+ .quad f3
+ .quad f3@localentry
+ .quad f4
+ .quad f4@localentry