Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp983365ybl; Fri, 13 Dec 2019 07:41:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxd0tZGw0z2mCz5LSY/yYNi2PofKZTgxNweW2DoMRyRAc0VgLuPGeA0W8fDbWtZjGTtIutO X-Received: by 2002:a9d:74c4:: with SMTP id a4mr15603720otl.119.1576251680277; Fri, 13 Dec 2019 07:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576251680; cv=none; d=google.com; s=arc-20160816; b=aacdFN0rL1eggjaadtQQq+ga52QDAcBhRP94M4jrSskFfQ0f5GBAv3BnjlFsMH2sbj PF8guPgMw9TGstth40mF5ufQj1kD0iLg04K87UONz2akMS/eaYPOTwwwrWEVi/eHMvBE EIuAjC77JLrZ74PWBJwzLAWX6iIjdJUk+X7Uu0eubStckKBe8PyNmqrcF3s0bKDo0AMj 0F92D20R/X9YZfu9yv4N7N4JEH9L13AmiQ+8tby/E3tOWHRSWvPwaipJKnJ3gufm5NLB lwYstYRFHbwdvtcvqh2Yw7N/kgFczOLfE+tZMEVzgdG1Xd1RYWrliT5GTnPu/ESnzlD+ vn4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=HNLriPSiuhV5fiGvxhOkNGFQvFwWpfOAMA+gn5euctE=; b=oJpOr8oOBP3qQhQNivamoxaZG4iu6672QfUML08mJL9CcJbmC+tP6kNNyOFfrYPZJH /7D/pH/0NDi30tb7g0wOSiDs9O/Jklac9s2jNutfjGwzRZQao3/xdlRzXK1QlCZ2H6p7 FKXTBUkubo+OAaPpGc4y7alWBrM++mJA6jaSVL142QWtHn9dfZCKRkSLua2Xm/T4AnZ6 oHaNJ3Vx15chNS5OLHC4veDP4+Qgn32+e8BucFNOMcqaIZg8e1GLkO9a90T/PSorzF4B ds4H7sl4luP0HSTx10aS3t35lKQPYp51h62CENEuf8p1V1yBBNE78I5Tc+nMq32+WnL6 e7fw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si5030955oip.248.2019.12.13.07.41.08; Fri, 13 Dec 2019 07:41:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbfLMPjz (ORCPT + 99 others); Fri, 13 Dec 2019 10:39:55 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40648 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbfLMPjy (ORCPT ); Fri, 13 Dec 2019 10:39:54 -0500 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ifn2Y-0001FZ-DR; Fri, 13 Dec 2019 15:39:38 +0000 Received: from ben by deadeye with local (Exim 4.93-RC7) (envelope-from ) id 1ifn2X-00056v-9m; Fri, 13 Dec 2019 15:39:37 +0000 Message-ID: <784d8f924612b91310baca25f2b0acc7ba78b83b.camel@decadent.org.uk> Subject: Re: [PATCH] libbpf: fix readelf output parsing on powerpc with recent binutils From: Ben Hutchings To: Michael Ellerman , Thadeu Lima de Souza Cascardo , Justin Forbes Cc: 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)" , linuxppc-dev@lists.ozlabs.org, Martin KaFai Lau , Aurelien Jarno , debian-kernel@lists.debian.org, Nick Clifton Date: Fri, 13 Dec 2019 15:39:32 +0000 In-Reply-To: <87a77ypdno.fsf@mpe.ellerman.id.au> References: <20191201195728.4161537-1-aurelien@aurel32.net> <87zhgbe0ix.fsf@mpe.ellerman.id.au> <20191202093752.GA1535@localhost.localdomain> <20191210222553.GA4580@calabresa> <20191211160133.GB4580@calabresa> <87a77ypdno.fsf@mpe.ellerman.id.au> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-XTuTpKbXj3nCdOipqGDS" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-XTuTpKbXj3nCdOipqGDS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2019-12-12 at 11:53 +1100, Michael Ellerman wrote: > Thadeu Lima de Souza Cascardo writes: [...] > > This is a patch on binutils carried by Fedora: > >=20 > > https://src.fedoraproject.org/rpms/binutils/c/b8265c46f7ddae23a792ee830= 6fbaaeacba83bf8 > >=20 > > " b8265c Have readelf display extra symbol information at the end of th= e line. " > >=20 > > It has the following comment: > >=20 > > # FIXME: The proper fix would be to update the scripts that are expe= cting > > # a fixed output from readelf. But it seems that some of the= m are > > # no longer being maintained. > >=20 > > This commit is from 2017, had it been on binutils upstream, maybe the s= ituation > > right now would be different. >=20 > Bleeping bleep. >=20 > Looks like it was actually ruby that was the original problem: >=20 > https://bugzilla.redhat.com/show_bug.cgi?id=3D1479302 >=20 >=20 > Why it wasn't hacked around in the ruby package I don't know, doing it in > the distro binutils package is not ideal. That wouldn't help people building Ruby from upstream. Any tool generating tabular output like this should add new fields at the end (or show them only if requested), since there are bound to be scripts that parse the output like this. So I think Fedora's change to readelf was reasonable, but should have been pushed upstream as soon as possible. Now everyone is going to have to deal with both formats. Ben. --=20 Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case. --=-XTuTpKbXj3nCdOipqGDS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAl3zsLQACgkQ57/I7JWG EQn2Yg//TXyohEOZzCVyllfhvYlZubQmABin7AvKKCrohI86PUkKZzydMPKW7wjF KSi+xCi62Q52OwskMvIaWjiBzvhijZaFWHB8EPGqRMeJtnbjjwGTTta0ZzPYBBEa ngKWvU50Vjqlt8uF7qNXQk3M/mJloOXmqhjPjwuX2Yqa/aWz20NAzV2WQQ9OzNMn 8HQzX5jHN76CWmMwkqblKqO0yRpb8Cw08bpn42zkVYlIZapxAeBIY4DQP2A+TWPs 3ElgHxlL3Rgg4qvYqnhIzD7Jr/jOCFIcdD/j5SaNMJV6HzLK5/vUQs0NEA0y6M7I 91T2k3hhd6pJPpCn4eP0Vc2JQWZQl4P+x0FMlYiXfBiOjdy2cOqDiez0g3i3SqyQ 6i29+SUSriP5QvPHK8Pg2L4MRuelBoNyuP55IZWonDYpQx1qDoI8ycXgEtPpuP1s B41ClX9UNrozPrEuDEcC7tbw+ak+xsJy+PqEF9RYnIJcJ8bJRI2YTR1h8ysWZyOI 13zEPyAZG2b34rBmUaqA2fBFTG98qPuEV6Amcq4rpdqsdbzTkD1PYCpEtXnqiok/ C0o/6Wsey1BpfcXsag7xX824BvJkgsWzQnFJ1cto4zmsHxUyLvLh+X5VXilsRgTd ongG67DAwcznlANn9XjPGeN3qjDErgSWwXPdUecrKm0+xgMNPo0= =ttgq -----END PGP SIGNATURE----- --=-XTuTpKbXj3nCdOipqGDS--