objtool: Make SP memory operation match PUSH/POP semantics
authorJulien Thierry <jthierry@redhat.com>
Wed, 14 Oct 2020 07:38:02 +0000 (08:38 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 14 Jan 2021 00:13:10 +0000 (18:13 -0600)
commit201ef5a974e24112953b74cc9f33dcfc4cbcc1cb
tree5550866c1f4b6fdc2e026c9aed3cd3c89958054e
parent468af56a7bbaa626da5a4578bedc930d731fba13
objtool: Make SP memory operation match PUSH/POP semantics

Architectures without PUSH/POP instructions will always access the stack
though memory operations (SRC/DEST_INDIRECT). Make those operations have
the same effect on the CFA as PUSH/POP, with no stack pointer
modification.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
tools/objtool/check.c