Re: [PATCH] objtool: Fix off-by-one in symbol_by_offset()

From: Miroslav Benes
Date: Mon Apr 06 2020 - 05:11:07 EST


On Fri, 3 Apr 2020, Julien Thierry wrote:

> Sometimes, WARN_FUNC() and other users of symbol_by_offset() will
> associate the first instruction of a symbol with the symbol preceding
> it.
> This is because symbol->offset + symbol->len is already outside of the
> symbol's range.
>
> Signed-off-by: Julien Thierry <jthierry@xxxxxxxxxx>

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>