aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/plt1.s
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-10-24 13:29:37 +0000
committerAlan Modra <amodra@gmail.com>2006-10-24 13:29:37 +0000
commitfaead5625efc1e8bacf407cf79cbc29261e4722b (patch)
tree7392e9fb367d804f76297f8d8502bb3ca3fd0db0 /ld/testsuite/ld-powerpc/plt1.s
parent058a363ddc625e9f83ae0cf7b3bf322be87aafaa (diff)
downloadgdb-faead5625efc1e8bacf407cf79cbc29261e4722b.zip
gdb-faead5625efc1e8bacf407cf79cbc29261e4722b.tar.gz
gdb-faead5625efc1e8bacf407cf79cbc29261e4722b.tar.bz2
* ld-powerpc/plt1.s: New.
* ld-powerpc/plt1.d: New. * ld-powerpc/relbrlt.s: New. * ld-powerpc/relbrlt.d: New. * ld-powerpc/powerpc.exp: Run them.
Diffstat (limited to 'ld/testsuite/ld-powerpc/plt1.s')
-rw-r--r--ld/testsuite/ld-powerpc/plt1.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/plt1.s b/ld/testsuite/ld-powerpc/plt1.s
new file mode 100644
index 0000000..c00c264
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/plt1.s
@@ -0,0 +1,9 @@
+ .text
+ .global _start
+_start:
+ bcl 20,31,1f
+1: mflr 30
+ addis 30,30,(_GLOBAL_OFFSET_TABLE_-1b)@ha
+ addi 30,30,(_GLOBAL_OFFSET_TABLE_-1b)@l
+ bl _exit@plt
+ b _start