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

Reply via email to