From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id CF9DD3858406 for ; Fri, 19 Nov 2021 22:46:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CF9DD3858406 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x10.wildebeest.org [172.31.17.146]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 2317E302FBAF; Fri, 19 Nov 2021 23:46:21 +0100 (CET) Received: by reform (Postfix, from userid 1000) id 34BF82E83693; Fri, 19 Nov 2021 23:46:21 +0100 (CET) Date: Fri, 19 Nov 2021 23:46:21 +0100 From: Mark Wielaard To: abstrakta <1771139389@qq.com> Cc: elfutils-devel Subject: Re: eu-strip supported cpu architecture? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2021 22:46:25 -0000 Hi, On Thu, Nov 18, 2021 at 09:08:05AM +0800, abstrakta via Elfutils-devel wrote: > I find that rpmbuild use eu-strip to get debuginfo of binaries when > generating debuginfo package.Even when cross compiling,eu-strip > seems to strip out the correct debuginfo.Can eu-strip installed on > x86_64 process arm64,mips64 binaries directly? arm64 yes, mips64 no, see below. > I know the strip in > binutils can only process binaries of its own arch. I don't know about the binutils strip implementation. But I believe you can build it to support multiple targets. You might want to ask on the binutils list. > Does elfutils is extended to support many arch at the same time? Normally elfutils is build with all supported backends, so yes. > Your website says "Included backends for machine specific ELF > handling: aarch64 alpha arm bpf csky i386 ia64 m68k ppc ppc64 riscv > riscv64 s390 s390x sh sparc sparc64 tilegx x32 x86_64 " So mips64 is > not included? But I test mips64 binaries can be eu-strip without > warning. Can I trust eu-strip process mips64 binaries when cross > compiling? Without a mips64 backend you cannot trust it. Debian apparently has a mips64 backend but it isn't upstreamed. See also: https://sourceware.org/bugzilla/show_bug.cgi?id=23902 And: https://sourceware.org/bugzilla/show_bug.cgi?id=24795 Cheers, Mark