diff options
author | Julien Thierry <jthierry@redhat.com> | 2020-04-03 14:17:30 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-04-22 10:53:49 +0200 |
commit | 5377cae94ae31b089d4a69e7706672501c974f4d (patch) | |
tree | 1ef18a8b85549cc38e021ba4104c8b84bc32f8a6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 963d5669171adcd59b45cad58fab81bbd599c3c8 (diff) |
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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions