Re: [RFC PATCH] x86/boot: use zstd -19 if building for 32-bit
From: Xi Ruoyao
Date: Tue Jul 28 2026 - 11:06:56 EST
On Tue, 2026-07-28 at 22:31 +0800, Mingcong Bai wrote:
> When using native build environments (that is, 32-bit x86 chroot/container
> as build environment for 32-bit x86 binaries), `zstd -22' requests more
> virtual memory than that could be allowed on 32-bit hosts.
>
> Introduce `cmd_zstd_with_size' for CONFIG_X86_32 builds.
>
> This is quite possibly just stupid... But there doesn't seem to be a way
> to detect the host environment. So I'm sending this patch as a means to
> ask for your opinions.
"readelf -d $(which zstd) -h | grep ELF64" ?
But it's also stupid, if someone is using a script wrapping the actual
zstd executable or cross-compiling from a non-ELF platform things will
still blow up.
--
Xi Ruoyao <xry111@xxxxxxxxxxx>