strip with mismatched machines
Paul Edwards
mutazilah@gmail.com
Sat Sep 20 08:22:40 GMT 2025
I used gcc on an x64 system to create a loongarch64 target.
So they are still x64 executables, they just do something unusual.
But that didn't occur to me at the time, and I attempted to use
the loongarch64 strip on the new x64 executables.
I have qemu installed, so it seamlessly ran.
However, the new executables (xgcc renamed to gcc etc)
were deemed corrupt and wouldn't run.
At the time I just thought "my bad" and moved on, but it
occurred to me that maybe strip should check that it is
being run on the right ELF type.
I can provide samples if required, but there is no point if
it is simply deemed "user error" and "bad luck", which is
fine. I just thought I'd report it in case it was considered
to be a bug.
Thanks. Paul.
More information about the Binutils
mailing list