[PATCH v2] gas: support for .pushsection and .popsection pseudo ops for coff

Jan Beulich jbeulich@suse.com
Fri Jul 31 09:58:54 GMT 2026


On 24.07.2026 14:28, Johannes Khoshnazar-Thoma wrote:
> @@ -1898,6 +1932,8 @@ static const pseudo_typeS coff_pseudo_table[] =
>    {"ident", obj_coff_ident, 0},
>    {"line", obj_coff_line, 0},
>    {"ln", obj_coff_ln, 0},
> +  {"pushsection", obj_coff_section, 1},
> +  {"popsection", obj_coff_popsection, 0},
>    {"scl", obj_coff_scl, 0},
>    {"sect", obj_coff_section, 0},
>    {"sect.s", obj_coff_section, 0},

While now you insert at the right spot, what you insert is still the wrong
way round. Beyond this things look okay now as far as these two directives
go, but (to re-state the obvious) support for .previous is still missing.

Jan


More information about the Binutils mailing list