mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
compel: Provide piegen_opt_t in library
Fixes: verify-elf: ERROR: ./usr/lib64/libcompel.so.1.0: undefined symbol: opts Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> Reported-by: Alexey Shabalin <> Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
committed by
Andrei Vagin
parent
7886b2572d
commit
d4f3c7cd55
@@ -18,6 +18,8 @@
|
||||
#include "piegen.h"
|
||||
#include "log.h"
|
||||
|
||||
piegen_opt_t opts = {};
|
||||
|
||||
/* Check if pointer is out-of-bound */
|
||||
static bool __ptr_oob(const uintptr_t ptr, const uintptr_t start, const size_t size)
|
||||
{
|
||||
|
@@ -60,7 +60,6 @@ static const flags_t flags = {
|
||||
#endif
|
||||
};
|
||||
|
||||
piegen_opt_t opts = {};
|
||||
const char *uninst_root;
|
||||
|
||||
static int piegen(void)
|
||||
|
@@ -23,13 +23,6 @@ const size_t test_elf_buf_size = 4096;
|
||||
extern int handle_binary(void *mem, size_t size);
|
||||
extern void run_tests(void *mem);
|
||||
|
||||
/* To shut down error printing on tests for failures */
|
||||
piegen_opt_t opts = {
|
||||
.fout = NULL,
|
||||
.ferr = NULL,
|
||||
.fdebug = NULL,
|
||||
};
|
||||
|
||||
int launch_test(void *mem, int expected_ret, const char *test_fmt, ...)
|
||||
{
|
||||
static unsigned test_nr = 1;
|
||||
|
Reference in New Issue
Block a user