Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3435540ybl; Sun, 15 Dec 2019 09:43:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwMwHHD6RJA9OWW80dXREM3aw0YIqV4hgbkC4l0unrt7yrgcD6eFfXupi6LZphGcRdwaTdu X-Received: by 2002:a9d:32a2:: with SMTP id u31mr25925226otb.249.1576431818047; Sun, 15 Dec 2019 09:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576431818; cv=none; d=google.com; s=arc-20160816; b=T5iM62635+bna91sIMGMpmWYzVhEdhsHqy4+d5PX03iyggQwMlW04bgremXUuqwbfp MKH6xxUl11yJIOaiZDKHJQhwBNIKI0BdDZL7LAdRBC3GQwkv6M2iIIimcai08O2tDLV8 p6zGiDE7qtrKFupnud52sD3JZxOyWd2RKq1tZqszjTbiiG0aZduIOMfAKFCr2JIlgtnV +Wf6A0MgIjWsz74MVOwhxOYfiEtpSDDpWSPEpC6c6OprSV3NA+5Q/87RaWROWDDc2rWj UgbO2BcIzsHRNohIEyt2nIUwLKnk7UnYzsmx/c9cGc5UMb1DyUVqCHRVSKCPNqfc88j/ U0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AUhydgvmr8d296EsM44KLtz5TapZKISR8Mk06Hsxmpw=; b=JiNYKsOKTR8ZwPMSpBvASb6mA00DYefazve/G8A3aFEAlFPYtuHJ6R4oGA9a0lfNEY owfgxHjYymTpTcI9to0n8IEo+ASqsNcLUWDxc4hqKJtuwg41cGWUwBv2pwpoCJbQ6PrN tW9Eas3RMPtOxsVReIJ2bhXi2EjG8lpwKFhtWTX7E5y1b988zPxpHVvYPpgN6hzwk8fm K31WUlJhfZS1772J3PuuU6nlI6SjZU5p2u6HzU56Om7y6TsDY5epregJJ2VcmHJzhixt mk7cbIP5ENkzdqDnU6VJ5xyrFihRb9r30kz0/kz4tRw+Xu5mriMGshBc9wfKDaNsVasn j55A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vWFc+tty; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si9134577otk.132.2019.12.15.09.43.26; Sun, 15 Dec 2019 09:43:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vWFc+tty; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726445AbfLORms (ORCPT + 99 others); Sun, 15 Dec 2019 12:42:48 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37148 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbfLORms (ORCPT ); Sun, 15 Dec 2019 12:42:48 -0500 Received: by mail-lf1-f66.google.com with SMTP id b15so2603872lfc.4; Sun, 15 Dec 2019 09:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AUhydgvmr8d296EsM44KLtz5TapZKISR8Mk06Hsxmpw=; b=vWFc+ttySOUZBiFE/iWiSppbkP+sqNfBnoBw/J2iL3Hqn4Drlz+PSTvTjKoeD10YhC 3csWHOkn+ooTHB0Jf6yLQJCRuUnfL7HGatXc6autez33cqhB0FG6joQQjnyuN1zZJFGO VG4xGVjI4NnpO0FY7fiXhS4h36Qs+khbbqtW69dIboGFkTPAq9zuqXv62BUVzmnNk7Lf ZFHXyQB/piXa+EiXO3wHJnIvjaWy9jG51X1lCbYn2X+UtjRLoFexDBIzDU5O+LCOpoCC OWCDq8F+YucbIjVP8gEqkdbDg+eLOrU6jF9oyLsXSM5uKOK+/xa2gQdTWCnwFrObtfuY ScZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AUhydgvmr8d296EsM44KLtz5TapZKISR8Mk06Hsxmpw=; b=f48GNMusi0sWrlaN70M8aiLdES4418h6ZwZA1TMIa/w/h36SariKASxAUUkpJpLuOb 3UU10pva5LSyyYe0xC1gicd8krb09eVHw0MSC17a9znqMPDC+b4rLNHQ+lQjKEOG5asw v1q4lzCP3XVveIEOC6oX3Qqbom7l2KplTZN9N0K1daw+a/KeY2kT3qVYZWNgxSMhC45v vb6k5M/jF17bCMV2a+TtZTgU4e0f0W6I6vyhua8ELpdAm3nIfMHXMdXiXrD2eZU9WP8k Id0fgzoSZpx5jTuv4kOKLJmwd/fxeMzHKIkc/CaxsswB+o62FSK/Fc+G41ckxq5PNjkF kuDg== X-Gm-Message-State: APjAAAUiDKVB35gp5PpcA4u+2vaekrj6mOsgiP0BZs0skPkdRUms9xEk dutFJ9gkMGXjJ4A8wowc8N5DCaYU2/DGdO1AFFA= X-Received: by 2002:a19:48c5:: with SMTP id v188mr14502104lfa.100.1576431765980; Sun, 15 Dec 2019 09:42:45 -0800 (PST) MIME-Version: 1.0 References: <20191201195728.4161537-1-aurelien@aurel32.net> <87zhgbe0ix.fsf@mpe.ellerman.id.au> <20191202093752.GA1535@localhost.localdomain> <20191210222553.GA4580@calabresa> <20191211160133.GB4580@calabresa> <20191213101114.GA3986@calabresa> In-Reply-To: From: Alexei Starovoitov Date: Sun, 15 Dec 2019 09:42:34 -0800 Message-ID: Subject: Re: [PATCH] libbpf: Fix readelf output parsing for Fedora To: Andrii Nakryiko Cc: Thadeu Lima de Souza Cascardo , Justin Forbes , Daniel Borkmann , Song Liu , Andrii Nakryiko , Alexei Starovoitov , LKML , "open list:BPF (Safe dynamic programs and tools)" , Yonghong Song , "open list:BPF (Safe dynamic programs and tools)" , ppc-dev , Martin KaFai Lau , Aurelien Jarno , debian-kernel@lists.debian.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 13, 2019 at 9:02 AM Andrii Nakryiko wrote: > > On Fri, Dec 13, 2019 at 2:11 AM Thadeu Lima de Souza Cascardo > 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 > > Fixes: 3464afdf11f9 (libbpf: Fix readelf output parsing on powerpc with recent binutils) > > Reported-by: Justin Forbes > > Signed-off-by: Thadeu Lima de Souza Cascardo > > --- > > 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 Applied. Thanks