Re: [PATCH 3/3] objtool: check: Make SP memory operation match PUSH/POP semantics

2020-09-21 Thread Josh Poimboeuf
On Mon, Sep 21, 2020 at 11:31:28AM +0100, Julien Thierry wrote: > > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > > > index f45991c2db41..7ff87fa3caec 100644 > > > --- a/tools/objtool/check.c > > > +++ b/tools/objtool/check.c > > > @@ -2005,6 +2005,13 @@ static int update_cfi_state

Re: [PATCH 3/3] objtool: check: Make SP memory operation match PUSH/POP semantics

2020-09-21 Thread Julien Thierry
On 9/18/20 10:43 PM, Josh Poimboeuf wrote: On Tue, Sep 15, 2020 at 09:12:04AM +0100, Julien Thierry wrote: 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,

Re: [PATCH 3/3] objtool: check: Make SP memory operation match PUSH/POP semantics

2020-09-18 Thread Josh Poimboeuf
On Tue, Sep 15, 2020 at 09:12:04AM +0100, Julien Thierry wrote: > 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. > >

[PATCH 3/3] objtool: check: Make SP memory operation match PUSH/POP semantics

2020-09-15 Thread Julien Thierry
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 --- tools/objtool/check.c | 17 +