diff options
author | comex | 2015-01-20 19:49:44 -0500 |
---|---|---|
committer | comex | 2015-01-20 19:54:09 -0500 |
commit | ba44cef0bfa106de3a4406fdaed071461f87a6f3 (patch) | |
tree | 738895cae66ba2bf1e7369b8a17a2d8d4a433293 /lib/darwin/find-syms.h | |
parent | more reorganization - move OS X/iOS specific stuff into its own directory (diff) | |
download | substitute-ba44cef0bfa106de3a4406fdaed071461f87a6f3.tar.gz |
progress on injection
Diffstat (limited to '')
-rw-r--r-- | lib/darwin/find-syms.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/darwin/find-syms.h b/lib/darwin/find-syms.h new file mode 100644 index 0000000..c017d2a --- /dev/null +++ b/lib/darwin/find-syms.h @@ -0,0 +1,14 @@ +#pragma once +#include "substitute.h" +#include "substitute-internal.h" + +struct symtab_data { + uint64_t linkedit_vmaddr; + uint32_t linkedit_symoff, nsyms; + uint32_t linkedit_stroff, strsize; +}; + +bool find_symtab_data(const mach_header_x *mh, struct symtab_data *data); +void find_syms_raw(const struct symtab_data *restrict data, void *linkedit, + const char **restrict names, substitute_sym **restrict syms, + size_t count); |