]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - tools/objtool/orc_gen.c
x86/unwind/orc: Detect the end of the stack
[mirror_ubuntu-focal-kernel.git] / tools / objtool / orc_gen.c
index 18384d9be4e170f5d15b5c8981d0a576e1fac87a..3f98dcfbc177b12147f491d9fd577916c02b2076 100644 (file)
@@ -31,6 +31,8 @@ int create_orc(struct objtool_file *file)
                struct cfi_reg *cfa = &insn->state.cfa;
                struct cfi_reg *bp = &insn->state.regs[CFI_BP];
 
+               orc->end = insn->state.end;
+
                if (cfa->base == CFI_UNDEFINED) {
                        orc->sp_reg = ORC_REG_UNDEFINED;
                        continue;