Julien Thierry 7f9b34f36c objtool: Fix off-by-one in symbol_by_offset()
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.

Fixes: 2a362ecc3ec9 ("objtool: Optimize find_symbol_*() and read_symbols()")
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2020-04-22 23:14:46 +02:00
..
2019-07-18 21:01:10 +02:00
2020-03-25 18:28:28 +01:00
2020-03-25 18:28:28 +01:00
2020-03-25 18:28:30 +01:00
2020-04-22 23:09:50 +02:00
2020-03-25 18:28:30 +01:00
2020-01-22 07:54:34 +01:00
2020-03-25 18:28:29 +01:00