criu/compel/arch/mips/src/lib
dong sunchao 80c280610e 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-11-02 07:48:23 -08:00
..
include compel: add helpers to get/set instruction pointer 2022-04-28 17:53:52 -07:00
cpu.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
handle-elf-host.c mips:compel/arch/mips: Add architecture support to compel tool and libraries 2020-10-20 00:18:24 -07:00
handle-elf.c compel/mips: Relax ELF magic check to support MIPS libraries 2025-11-02 07:48:23 -08:00
infect.c arm64: C/R PAC keys 2025-03-21 12:40:31 -07:00