[PATCH, V5 11/16] opcodes: i386: new marker for insns that implicitly update stack pointer

Jan Beulich jbeulich@suse.com
Thu Jan 11 07:57:54 GMT 2024
On 11.01.2024 08:48, Indu Bhagat wrote:
> [Changes from V4 to V5]
>   - IMPLICIT_STACK_OP as a new constraint (was attribute in V4).
> [End of Changes from V4 to V5]
> 
> [New in V4]
> 
> Some x86 instructions affect the stack pointer implicitly.  Add a new
> operand constraint to reflect this.  This will be useful for SCFI
> implmentation to ensure its correctness.
> 
> Mark all push, pop, call, ret, enter, leave, INT, iret instructions.
> 
> opcodes/
> 	* i386-gen.c: Update opcode_modifiers.
> 	* i386-opc.h: Add a new constraint.
> 	* i386-opc.tbl: Update the affected instructions.
> 	* i386-tbl.h: Regenerated.

This and patch 10 are okay as long as not committed ahead of time.

Jan


More information about the Binutils mailing list