OSDN Git Service

objtool: Generate ORC data for __pfx code
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 12 Apr 2023 20:26:15 +0000 (13:26 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 14 Apr 2023 14:08:30 +0000 (16:08 +0200)
commit5743654f5e2ebd56df99f56fca5ba4b23fe3c815
treeecebac1bcca601698a3504bb04fe39985b335ca7
parent4a2c3448ed3d362431c249ec0eb0f90281804ea8
objtool: Generate ORC data for __pfx code

Allow unwinding from prefix code by copying the CFI from the starting
instruction of the corresponding function.  Even when the NOPs are
replaced, they're still stack-invariant instructions so the same ORC
entry can be reused everywhere.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/bc3344e51f3e87102f1301a0be0f72a7689ea4a4.1681331135.git.jpoimboe@kernel.org
tools/objtool/check.c