summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr26018.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/pr26018.d')
-rw-r--r--ld/testsuite/ld-i386/pr26018.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/pr26018.d b/ld/testsuite/ld-i386/pr26018.d
new file mode 100644
index 00000000000..9ff16c13434
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr26018.d
@@ -0,0 +1,16 @@
+#source: ../ld-x86-64/pr26018.s
+#as: --32
+#ld: -shared -Bsymbolic-functions -melf_i386
+#objdump: -dw
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+[0-9a-f]+ <_start>:
+ +[a-f0-9]+: e8 00 00 00 00 call [0-9a-f]+ <foo>
+
+[0-9a-f]+ <foo>:
+ +[a-f0-9]+: c3 ret
+#pass