Thread (14 messages) flat view 14 messages, 8 authors, 2019-12-15

Re: [PATCH] libbpf: Fix readelf output parsing for Fedora

From: Alexei Starovoitov <hidden>
Date: 2019-12-15 17:42:49
Also in: bpf, linuxppc-dev, lkml

On Fri, Dec 13, 2019 at 9:02 AM Andrii Nakryiko
[off-list ref] wrote:
On Fri, Dec 13, 2019 at 2:11 AM Thadeu Lima de Souza Cascardo
[off-list ref] wrote:
quoted
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.

Cc: Aurelien Jarno <aurelien@aurel32.net>
Fixes: 3464afdf11f9 (libbpf: Fix readelf output parsing on powerpc with recent binutils)
Reported-by: Justin Forbes <redacted>
Signed-off-by: Thadeu Lima de Souza Cascardo <redacted>
---
I was briefly playing with it and trying to make it use nm to dump
symbols, instead of parsing more human-oriented output of readelf, but
somehow nm doesn't output symbols with @@LIBBPF.* suffix at the end,
so I just gave up. So I think this one is good.

This should go through bpf-next tree.

Acked-by: Andrii Nakryiko <redacted>
Applied. Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help