From 00661557019b3cf24405cd07b2495f26e3244bdb Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 21 Feb 2018 16:01:39 +0200 Subject: wrapper: lets be bit more informative --- src/wrapper/wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wrapper/wrapper.c b/src/wrapper/wrapper.c index f1190c8..07d3239 100644 --- a/src/wrapper/wrapper.c +++ b/src/wrapper/wrapper.c @@ -63,7 +63,7 @@ wrapper_create(const char *const symbol, void *function) memcpy(fun + (&wrapper_trace - &wrapper_start) + 1, (uintptr_t[]){ (uintptr_t)trace }, sizeof(uintptr_t)); memcpy(fun + (&wrapper_call - &wrapper_start) + 1, &function, sizeof(function)); #else -# error "should not happen" +# error "you forgot to implement the pointer setups for your asm platform" #endif mprotect(fun, sz, PROT_READ | PROT_EXEC); return fun; -- cgit v1.2.3-70-g09d2