public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* eu-strip supported cpu architecture?
@ 2021-11-18  1:08 abstrakta
  2021-11-19 22:46 ` Mark Wielaard
  0 siblings, 1 reply; 2+ messages in thread
From: abstrakta @ 2021-11-18  1:08 UTC (permalink / raw)
  To: elfutils-devel

Hi,
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?I know the strip in binutils can only process binaries of its own arch. Does elfutils is extended to support many arch at the same time?  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?


Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: eu-strip supported cpu architecture?
  2021-11-18  1:08 eu-strip supported cpu architecture? abstrakta
@ 2021-11-19 22:46 ` Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2021-11-19 22:46 UTC (permalink / raw)
  To: abstrakta; +Cc: elfutils-devel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-19 22:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18  1:08 eu-strip supported cpu architecture? abstrakta
2021-11-19 22:46 ` Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).