summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-metag/stub_pic_app.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-metag/stub_pic_app.s')
-rw-r--r--ld/testsuite/ld-metag/stub_pic_app.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ld-metag/stub_pic_app.s b/ld/testsuite/ld-metag/stub_pic_app.s
new file mode 100644
index 0000000..288334f
--- /dev/null
+++ b/ld/testsuite/ld-metag/stub_pic_app.s
@@ -0,0 +1,25 @@
+
+ .text
+ .global __start
+__start:
+ CALLR D1RtP,_far
+ CALLR D1RtP,_lib_func
+ CALLR D1RtP,_far2
+
+ .section .text.pad,"ax"
+ .space 0x200000
+ .global pad_end
+pad_end:
+ .section .text.far,"ax"
+ .global _far2
+_far2:
+ NOP
+_far:
+ CALLR D1RtP,_far2@PLT
+
+ .data
+ .balign 4
+ .type _app_data,@object
+ .size _app_data,4
+_app_data:
+ .long _lib_data