diff options
| author | Thadeu Lima de Souza Cascardo <[email protected]> | 2019-12-13 07:11:14 -0300 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-12-15 09:40:58 -0800 |
| commit | aa915931ac3e53ccf371308e6750da510e3591dd (patch) | |
| tree | c644355aabba6755693d068e605a90267b6c301b /tools/perf/scripts/python/check-perf-trace.py | |
| parent | a06ae6acc14b7f8c07ce9d9685e7b90fcba5b52f (diff) | |
libbpf: Fix readelf output parsing for Fedora
Fedora binutils has been patched to show "other info" for a symbol at the
end of the line. This was done in order to support unmaintained scripts
that would break with the extra info. [1]
[1] https://src.fedoraproject.org/rpms/binutils/c/b8265c46f7ddae23a792ee8306fbaaeacba83bf8
This in turn has been done to fix the build of ruby, because of checksec.
[2] Thanks Michael Ellerman for the pointer.
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1479302
As libbpf Makefile is not unmaintained, we can simply deal with either
output format, by just removing the "other info" field, as it always comes
inside brackets.
Fixes: 3464afdf11f9 (libbpf: Fix readelf output parsing on powerpc with recent binutils)
Reported-by: Justin Forbes <[email protected]>
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Link: https://lore.kernel.org/bpf/20191213101114.GA3986@calabresa
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions