diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-07-19 08:05:30 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-07-19 08:05:30 +0200 |
commit | 804a4093182a4bdbc30abfd3081a3f58c3bd2329 (patch) | |
tree | cf2e69e801baba7bb4afe3e5c086dcc81decfd3c /gas/config/obj-coff-seh.c | |
parent | 801f648cfc26f588aee8fc37ddc4ac959f331bd0 (diff) | |
download | gdb-804a4093182a4bdbc30abfd3081a3f58c3bd2329.zip gdb-804a4093182a4bdbc30abfd3081a3f58c3bd2329.tar.gz gdb-804a4093182a4bdbc30abfd3081a3f58c3bd2329.tar.bz2 |
Fix gas crash on missing seh_endproc.
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.
Diffstat (limited to 'gas/config/obj-coff-seh.c')
-rw-r--r-- | gas/config/obj-coff-seh.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c index 5c028f1..88ce0fc 100644 --- a/gas/config/obj-coff-seh.c +++ b/gas/config/obj-coff-seh.c @@ -483,10 +483,7 @@ void 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). */ |