summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/protected3.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/protected3.d')
-rw-r--r--ld/testsuite/ld-i386/protected3.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/protected3.d b/ld/testsuite/ld-i386/protected3.d
new file mode 100644
index 0000000..aafa2d8
--- /dev/null
+++ b/ld/testsuite/ld-i386/protected3.d
@@ -0,0 +1,13 @@
+#as: --32
+#ld: -shared -melf_i386
+#objdump: -drw
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+0+[a-f0-9]+ <bar>:
+[ ]*[a-f0-9]+: 8b 81 [a-f0-9][a-f0-9] [a-f0-9][a-f0-9] 00 00 mov 0x[a-f0-9]+\(%ecx\),%eax
+[ ]*[a-f0-9]+: c3 ret
+#pass