mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 23:05:39 +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 "piegen.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
|
piegen_opt_t opts = {};
|
||||||
|
|
||||||
/* Check if pointer is out-of-bound */
|
/* Check if pointer is out-of-bound */
|
||||||
static bool __ptr_oob(const uintptr_t ptr, const uintptr_t start, const size_t size)
|
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
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
piegen_opt_t opts = {};
|
|
||||||
const char *uninst_root;
|
const char *uninst_root;
|
||||||
|
|
||||||
static int piegen(void)
|
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 int handle_binary(void *mem, size_t size);
|
||||||
extern void run_tests(void *mem);
|
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, ...)
|
int launch_test(void *mem, int expected_ret, const char *test_fmt, ...)
|
||||||
{
|
{
|
||||||
static unsigned test_nr = 1;
|
static unsigned test_nr = 1;
|
||||||
|
Reference in New Issue
Block a user