gas/
* testsuite/gas/pe/seh-x64-err-2.s: New test.
* testsuite/gas/pe/seh-x64-err-2.l: New stderr output.
* testsuite/gas/pe/pe.exp: Add test.
* config/obj-coff-seh.c (obj_coff_seh_do_final): Don't try to end
seh part.
+2017-07-19 Tristan Gingold <gingold@adacore.com>
+
+ * testsuite/gas/pe/seh-x64-err-2.s: New test.
+ * testsuite/gas/pe/seh-x64-err-2.l: New stderr output.
+ * testsuite/gas/pe/pe.exp: Add test.
+ * config/obj-coff-seh.c (obj_coff_seh_do_final): Don't try to end
+ seh part.
+
2017-07-18 Nick Clifton <nickc@redhat.com>
PR 21775
obj_coff_seh_do_final (void)
{
if (seh_ctx_cur != NULL)
- {
- as_bad (_("open SEH entry at end of file (missing .cfi_endproc)"));
- do_seh_endproc ();
- }
+ as_bad (_("open SEH entry at end of file (missing .seh_endproc)"));
}
/* Enter a prologue element into current context (x64). */
# These tests are only for x86_64 targets
if ([istarget "x86_64-*-mingw*"]) then {
run_list_test "seh-x64-err-1" ""
+ run_list_test "seh-x64-err-2" ""
run_dump_test "peseh-x64"
run_dump_test "peseh-x64-2"
run_dump_test "peseh-x64-3"
--- /dev/null
+.*: Assembler messages:
+
+.*: Error: open SEH entry at end of file \(missing .seh_endproc\)
--- /dev/null
+ .file "t2.c"
+ .text
+
+# missing endproc
+ .seh_proc test_missing_endproc
+test_missing_endproc:
+ .seh_setframe %rbp, 0
+ .seh_endprologue
+ ret