Re: [PATCH v2 0/3] objtool: Support the stack swizzle

2021-02-09 Thread Miroslav Benes
On Tue, 9 Feb 2021, Peter Zijlstra wrote: > Hi! > > Implement objtool support for the x86_64 stack swizzle pattern. > > This means we can use the minial stack swizzle: > > mov %rsp, (%[tos]) > mov %[tos], %rsp > ... > pop %rsp > > from inline asm, with arbitrary stack setup. The ORC

[PATCH v2 0/3] objtool: Support the stack swizzle

2021-02-09 Thread Peter Zijlstra
Hi! Implement objtool support for the x86_64 stack swizzle pattern. This means we can use the minial stack swizzle: mov %rsp, (%[tos]) mov %[tos], %rsp ... pop %rsp from inline asm, with arbitrary stack setup. The ORC data for the Top-of-Stack will use the SP_INDIRECT CFA base. In