summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-21 16:01:39 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-21 16:01:39 +0200
commit00661557019b3cf24405cd07b2495f26e3244bdb (patch)
treef605f7e2dd5e64e792727fe40efebb0164829d13 /src
parent9b54481cc868ab1d9da1025ed0eb243f4b1f7642 (diff)
wrapper: lets be bit more informative
Diffstat (limited to 'src')
-rw-r--r--src/wrapper/wrapper.c2
1 files changed, 1 insertions, 1 deletions
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;