Commit d4f3c7cd authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

compel: Provide piegen_opt_t in library

Fixes:
verify-elf: ERROR: ./usr/lib64/libcompel.so.1.0: undefined symbol: opts
Acked-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Reported-by: Alexey Shabalin <>
Signed-off-by: 's avatarDmitry Safonov <dima@arista.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 7886b257
...@@ -18,6 +18,8 @@ ...@@ -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 = { ...@@ -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; ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment