From nobody Wed Nov 30 06:37:45 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NMTzF6mPvz4hypT for ; Wed, 30 Nov 2022 06:37:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NMTzF5DPPz41bH for ; Wed, 30 Nov 2022 06:37:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669790265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+1nwzmgH5Ajs2gzgQ8YWLWjsCS7lHeuxI3nke8ZU9Jo=; b=ekpOTHpb/1rJ7m/qdMtbrn24sNt8nJ9wUzvWgFiUodOufVc2OmXW0vWJb95w+k5Qgg+avu c5yImjVPkR+wRKkaa15BFvdJmaK4lwbdcNJQWJ5Po/4s2uhHTVOT1InNdj4L9/ZsGB4wtj Aol/7UDf2hMADKlJNJuS4A/e8qnnnMjMvzF672Fo+ujiHUYRYMbRNEW601kQ+9+QZ3eTLn hToGhe2jcDiSu8T5McjcmuiXdYLIcZxF0jYOiDgfwj4ED/DpQdJ9xlJOeeKl0pW1cmweDG rQ5ti/eL2rMBQxR3IM0yZfURV6tihXlVJRakk3K96iQmAcjbcvvES8hR+QBi8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669790265; a=rsa-sha256; cv=none; b=ok5iYf2XddDF7mVCGHrANfRJFeV1VJz51a335m3QkS5/SaY1eidUyN//eVzN0ArJiEw4Fp QDbQfP/Le1GpeA2GPG/md2Aqk4CEOoSEiSuZ5IycFVyEbwGTpH/gRqdZClJtO6xJrBrOF5 0gufR3DeOayDIHBuONZhCjNksHP0gTjIyFSvfnTBv7gGuSCEkG5ox+gbj8v9wlk+y7zDHj 44Eg0RrWU1jC3v3+OV4DDzEGGsbz1Zotec2YqrAcymilQD2wgtabUqaX9A6/TVNW4I+k08 9J+RRif73luoqk6c0xNqcStfEss4RQaPj1BFc8mm45B9tTrcmooMvSa24keTnA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NMTzF4BlPzmWp for ; Wed, 30 Nov 2022 06:37:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2AU6bjf2032378 for ; Wed, 30 Nov 2022 06:37:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AU6bjBS032377 for bugs@FreeBSD.org; Wed, 30 Nov 2022 06:37:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268071] elftoolchain readelf: feature to force display filename Date: Wed, 30 Nov 2022 06:37:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tatsuki_makino@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268071 Bug ID: 268071 Summary: elftoolchain readelf: feature to force display filename Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: tatsuki_makino@hotmail.com Created attachment 238439 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238439&action= =3Dedit experimental patch readelf displays file names when 2 or more files are given as arguments. However, find exec and xargs are sometimes executed with 1 argument, so the last file name may not be known. for example, find -s /usr/local/lib -type f -name lib\* -exec readelf -h {} + find -s /usr/local/lib -type f -name lib\* -print0 | xargs -0 readelf -h If the argument is limited to one, the filename is never known. for example, find -s /usr/local/lib -type f -name lib\* -exec readelf -h {} \; find -s /usr/local/lib -type f -name lib\* -print0 | xargs -0 -L 1 readelf = -h A modification like the patch will force readelf to display the filename by option. How to use find -s /usr/local/lib -type f -name lib\* -exec readelf --display-filename= -h {} \; find -s /usr/local/lib -type f -name lib\* -print0 | xargs -0 -L 1 readelf --display-filename -h I sometimes want to run readelf on the pkg info -lq results :) pkg info -l -q something | xargs readelf --display-filename -d -s --=20 You are receiving this mail because: You are the assignee for the bug.=