| Date | Tue, 08 Mar 2022 16:30:16 +0100 | From | Peter Zijlstra <> | Subject | [PATCH v4 05/45] objtool: Have WARN_FUNC fall back to sym+off |
| |
Currently WARN_FUNC() either prints func+off and failing that prints sec+off, add an intermediate sym+off. This is useful when playing around with entry code.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> --- tools/objtool/include/objtool/warn.h | 2 ++ 1 file changed, 2 insertions(+)
--- a/tools/objtool/include/objtool/warn.h +++ b/tools/objtool/include/objtool/warn.h @@ -22,6 +22,8 @@ static inline char *offstr(struct sectio unsigned long name_off; func = find_func_containing(sec, offset); + if (!func) + func = find_symbol_containing(sec, offset); if (func) { name = func->name; name_off = offset - func->offset;
|