Re: [PATCH] libbpf: Fix readelf output parsing for Fedora
- To: Andrii Nakryiko <andrii.nakryiko@gmail.com>
- Cc: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>, Justin Forbes <jmforbes@linuxtx.org>, Daniel Borkmann <daniel@iogearbox.net>, Song Liu <songliubraving@fb.com>, Andrii Nakryiko <andriin@fb.com>, Alexei Starovoitov <ast@kernel.org>, LKML <linux-kernel@vger.kernel.org>, "open list:BPF (Safe dynamic programs and tools)" <netdev@vger.kernel.org>, Yonghong Song <yhs@fb.com>, "open list:BPF (Safe dynamic programs and tools)" <bpf@vger.kernel.org>, ppc-dev <linuxppc-dev@lists.ozlabs.org>, Martin KaFai Lau <kafai@fb.com>, Aurelien Jarno <aurelien@aurel32.net>, debian-kernel@lists.debian.org
- Subject: Re: [PATCH] libbpf: Fix readelf output parsing for Fedora
- From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
- Date: Sun, 15 Dec 2019 09:42:34 -0800
- Message-id: <[🔎] CAADnVQJY+URQfAk=372TUqVkB4dxNPqNVY8-eSe7mFXuY_XhRA@mail.gmail.com>
- In-reply-to: <[🔎] CAEf4BzY-JP+vYNjwShhgMs6sJ+Bdqc8FEd19BVf8uf+jSnX1Jw@mail.gmail.com>
- References: <[🔎] 20191201195728.4161537-1-aurelien@aurel32.net> <[🔎] 87zhgbe0ix.fsf@mpe.ellerman.id.au> <[🔎] 20191202093752.GA1535@localhost.localdomain> <[🔎] CAFxkdAqg6RaGbRrNN3e_nHfHFR-xxzZgjhi5AnppTxxwdg0VyQ@mail.gmail.com> <[🔎] 20191210222553.GA4580@calabresa> <[🔎] CAFxkdAp6Up0qSyp0sH0O1yD+5W3LvY-+-iniBrorcz2pMV+y-g@mail.gmail.com> <[🔎] 20191211160133.GB4580@calabresa> <[🔎] CAFxkdAp9OGjJS1Sdny+TiG2+zU4n0Nj+ZVrZt5J6iVsS_zqqcw@mail.gmail.com> <[🔎] 20191213101114.GA3986@calabresa> <[🔎] CAEf4BzY-JP+vYNjwShhgMs6sJ+Bdqc8FEd19BVf8uf+jSnX1Jw@mail.gmail.com>
On Fri, Dec 13, 2019 at 9:02 AM Andrii Nakryiko
<andrii.nakryiko@gmail.com> wrote:
>
> On Fri, Dec 13, 2019 at 2:11 AM Thadeu Lima de Souza Cascardo
> <cascardo@canonical.com> wrote:
> >
> > 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 <jmforbes@linuxtx.org>
> > Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
> > ---
>
> 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 <andriin@fb.com>
Applied. Thanks
Reply to: