From ba44cef0bfa106de3a4406fdaed071461f87a6f3 Mon Sep 17 00:00:00 2001 From: comex Date: Tue, 20 Jan 2015 19:49:44 -0500 Subject: progress on injection --- lib/substitute.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/substitute.h') diff --git a/lib/substitute.h b/lib/substitute.h index 398b7fd..00cc1b8 100644 --- a/lib/substitute.h +++ b/lib/substitute.h @@ -103,16 +103,17 @@ void substitute_close_image(struct substitute_image *handle); * * @handle handle opened with substitute_open_image * @names an array of symbol names to search for - * @syms an array of substitute_sym *, one per name; on return, each entry - * will be a pointer into the symbol table for that image, or NULL if - * the symbol wasn't found + * @syms an array of void *, one per name; on return, each entry will be + * filled in with the corresponding symbol address, or NULL if the + * symbol wasn't found + * (on ARM, this will be | 1 for Thumb functions) * @nsyms number of names * * @return SUBSTITUTE_OK (maybe errors in the future) */ int substitute_find_private_syms(struct substitute_image *handle, - const char **names, - substitute_sym **syms, + const char **__restrict names, + void **__restrict syms, size_t nsyms); /* Get a pointer corresponding to a loaded symbol table entry. -- cgit v1.2.3