x86: Propery check PC16 reloc overflow in 16-bit mode instructions
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / code16.d
diff --git a/ld/testsuite/ld-x86-64/code16.d b/ld/testsuite/ld-x86-64/code16.d
new file mode 100644 (file)
index 0000000..20096ab
--- /dev/null
@@ -0,0 +1,19 @@
+#name: x86-64 R_X86_64_PC16 reloc in 16-bit mode
+#as: --64 -mx86-used-note=no --generate-missing-build-notes=no
+#source: ${srcdir}/../../../gas/testsuite/gas/i386/code16-2.s
+#ld: -T code16.t
+#objdump: -dw -Mi8086
+
+.*: +file format .*
+
+
+Disassembly of section .text.default_process_op.isra.0:
+
+0+737c <default_process_op.isra.0>:
+ +[a-f0-9]+:   66 c3                   retl   
+
+Disassembly of section .text.mpt_scsi_process_op:
+
+0+f869 <mpt_scsi_process_op>:
+ +[a-f0-9]+:   e9 10 7b                jmp    737c <default_process_op.isra.0>
+#pass
This page took 0.023472 seconds and 4 git commands to generate.