mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
pr_out is only special left in piegen engine, the rest use compel's pr_x output. Probably we will need to enhance it one day to make same close to what we have in criu. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
22 lines
486 B
C
22 lines
486 B
C
#include <string.h>
|
|
|
|
#include "uapi/compel.h"
|
|
|
|
#include "handle-elf.h"
|
|
#include "piegen.h"
|
|
#include "log.h"
|
|
|
|
static const unsigned char __maybe_unused
|
|
elf_ident_32[EI_NIDENT] = {
|
|
0x7f, 0x45, 0x4c, 0x46, 0x01, 0x01, 0x01, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
int handle_binary(void *mem, size_t size)
|
|
{
|
|
if (memcmp(mem, elf_ident_32, sizeof(elf_ident_32)) == 0)
|
|
return handle_elf_arm(mem, size);
|
|
|
|
pr_err("Unsupported Elf format detected\n");
|
|
return -EINVAL;
|
|
}
|