summaryrefslogtreecommitdiffstats
path: root/ld/testsuite/ld-i386/vxworks1-lib.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/vxworks1-lib.s')
-rw-r--r--ld/testsuite/ld-i386/vxworks1-lib.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/vxworks1-lib.s b/ld/testsuite/ld-i386/vxworks1-lib.s
new file mode 100644
index 0000000000..d2bbac074d
--- /dev/null
+++ b/ld/testsuite/ld-i386/vxworks1-lib.s
@@ -0,0 +1,28 @@
+ .text
+ .globl foo
+ .type foo, @function
+foo:
+ push %ebx
+ movl __GOTT_BASE__, %ebx
+ movl __GOTT_INDEX__(%ecx), %ebx
+ movl x@GOT(%ebx), %eax
+ incl (%eax)
+ call slocal@plt
+ call sglobal@plt
+ call sexternal@plt
+ pop %ebx
+ ret
+ .size foo, .-foo
+
+ .type slocal, @function
+slocal:
+ ret
+ .size slocal, .-slocal
+
+ .globl sglobal
+ .type sglobal, @function
+sglobal:
+ ret
+ .size sglobal, .-sglobal
+
+ .comm x,4,4
OpenPOWER on IntegriCloud