criu/compel/arch/mips
dong sunchao dcd9df7389 compel/mips: Relax ELF magic check to support MIPS libraries
On MIPS platforms, shared libraries may use EI_ABIVERSION = 5 to indicate
support for .MIPS.xhash sections. The previous ELF header check in
handle_binary() strictly compared e_ident against a hardcoded value,
causing legitimate shared objects to be rejected.

This patch replaces the memcmp-based check with a structured validation
of ELF magic and class, and allows EI_ABIVERSION values beside 0.

fixes: #2745
Signed-off-by: dong sunchao <dongsunchao@gmail.com>
2025-09-18 22:24:58 -07:00
..
plugins util: use close_range when it's supported 2024-09-11 16:02:11 -07:00
scripts mips: coding style fixes 2021-09-03 10:31:00 -07:00
src/lib compel/mips: Relax ELF magic check to support MIPS libraries 2025-09-18 22:24:58 -07:00