Commit aff5e169 authored by Julien Thierry's avatar Julien Thierry Committed by Ingo Molnar

objtool: Use arch specific values in restore_reg()

The initial register state is set up by arch specific code. Use the
value the arch code has set when restoring registers from the stack.
Suggested-by: default avatarRaphael Gault <raphael.gault@arm.com>
Signed-off-by: default avatarJulien Thierry <jthierry@redhat.com>
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarMiroslav Benes <mbenes@suse.cz>
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 7170cf47
...@@ -1486,8 +1486,8 @@ static void save_reg(struct insn_state *state, unsigned char reg, int base, ...@@ -1486,8 +1486,8 @@ static void save_reg(struct insn_state *state, unsigned char reg, int base,
static void restore_reg(struct insn_state *state, unsigned char reg) static void restore_reg(struct insn_state *state, unsigned char reg)
{ {
state->regs[reg].base = CFI_UNDEFINED; state->regs[reg].base = initial_func_cfi.regs[reg].base;
state->regs[reg].offset = 0; state->regs[reg].offset = initial_func_cfi.regs[reg].offset;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment