criu/compel
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
..
arch compel/mips: Relax ELF magic check to support MIPS libraries 2025-09-18 22:24:58 -07:00
include compel: fix the stack test 2025-04-04 08:29:52 -07:00
plugins compel: infect: prepare parasite_service() for addition of CET support 2024-09-11 16:02:11 -07:00
src compel: flush caches after parasite injection 2025-07-25 04:47:03 +00:00
test compel: fix the stack test 2025-04-04 08:29:52 -07:00
.gitignore compel: fix gitignore and remove autogenerated code 2024-11-21 14:44:52 -08:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile compel: add riscv64 support 2024-10-26 22:18:22 -07:00