File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c
2+ index 964fe87e0ac..f907e729bcf 100644
3+ --- a/gas/config/obj-coff-seh.c
4+ +++ b/gas/config/obj-coff-seh.c
5+ @@ -582,12 +582,31 @@ obj_coff_seh_pushreg (int what ATTRIBUTE_UNUSED)
6+ static void
7+ obj_coff_seh_pushframe (int what ATTRIBUTE_UNUSED)
8+ {
9+ + int code = 0;
10+ +
11+ if (!verify_context_and_target (".seh_pushframe", seh_kind_x64)
12+ || !seh_validate_seg (".seh_pushframe"))
13+ return;
14+ +
15+ + SKIP_WHITESPACE();
16+ +
17+ + if (is_name_beginner (*input_line_pointer))
18+ + {
19+ + char* identifier;
20+ +
21+ + get_symbol_name (&identifier);
22+ + if (strcmp (identifier, "code") != 0)
23+ + {
24+ + as_bad(_("invalid argument \"%s\" for .seh_pushframe. Expected \"code\" or nothing"),
25+ + identifier);
26+ + return;
27+ + }
28+ + code = 1;
29+ + }
30+ +
31+ demand_empty_rest_of_line ();
32+
33+ - seh_x64_make_prologue_element (UWOP_PUSH_MACHFRAME, 0, 0);
34+ + seh_x64_make_prologue_element (UWOP_PUSH_MACHFRAME, code, 0);
35+ }
36+
37+ /* Add a register save-unwind token to current context. */
38+ - -
39+ 2.27.0
40+
You can’t perform that action at this time.
0 commit comments