summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/pemagine/pemagine.h2
-rw-r--r--src/meta/pe_get_symbol_name.c20
2 files changed, 0 insertions, 22 deletions
diff --git a/include/pemagine/pemagine.h b/include/pemagine/pemagine.h
index d5cb241..5516e6d 100644
--- a/include/pemagine/pemagine.h
+++ b/include/pemagine/pemagine.h
@@ -178,8 +178,6 @@ pe_api int pe_enum_image_import_hdrs (const void * base,
pe_api char * pe_get_symbol_name (const void * base, const void * sym_addr);
pe_api struct pe_ldr_tbl_entry *pe_get_symbol_module_info (const void * sym_addr);
pe_api char * pe_get_import_symbol_info (const void * sym_addr,
- void ** sym_image_addr,
- char ** sym_name,
struct pe_ldr_tbl_entry ** ldr_tbl_entry);
pe_api int pe_enum_modules_in_load_order (pe_enum_modules_callback *, void * ctx);
diff --git a/src/meta/pe_get_symbol_name.c b/src/meta/pe_get_symbol_name.c
index 4fe48be..e0205ce 100644
--- a/src/meta/pe_get_symbol_name.c
+++ b/src/meta/pe_get_symbol_name.c
@@ -24,16 +24,12 @@ static int pe_enum_exports_callback(
#if defined (__NT32)
static char * pe_get_imported_symbol_info_32(
const void * sym_addr,
- void ** sym_image_addr,
- char ** sym_name,
struct pe_ldr_tbl_entry ** ldr_tbl_entry);
#endif
#if defined (__NT64)
static char * pe_get_imported_symbol_info_64(
const void * sym_addr,
- void ** sym_image_addr,
- char ** sym_name,
struct pe_ldr_tbl_entry ** ldr_tbl_entry);
#endif
@@ -59,21 +55,15 @@ char * pe_get_symbol_name(const void * base, const void * sym_addr)
pe_api
char * pe_get_import_symbol_info(
const void * sym_addr,
- void ** sym_image_addr,
- char ** sym_name,
struct pe_ldr_tbl_entry ** ldr_tbl_entry)
{
#if defined(__NT32)
return pe_get_imported_symbol_info_32(
sym_addr,
- sym_image_addr,
- sym_name,
ldr_tbl_entry);
#elif defined (__NT64)
return pe_get_imported_symbol_info_64(
sym_addr,
- sym_image_addr,
- sym_name,
ldr_tbl_entry);
#endif
}
@@ -106,8 +96,6 @@ static int pe_enum_exports_callback(
#ifdef __NT32
static char * pe_get_imported_symbol_info_32(
const void * sym_addr,
- void ** sym_image_addr,
- char ** sym_name,
struct pe_ldr_tbl_entry ** ldr_tbl_entry)
{
struct symbol {
@@ -155,8 +143,6 @@ static char * pe_get_imported_symbol_info_32(
#ifdef __NT64
static char * pe_get_imported_symbol_info_64(
const void * sym_addr,
- void ** sym_image_addr,
- char ** sym_name,
struct pe_ldr_tbl_entry ** ldr_tbl_entry)
{
struct symbol {
@@ -198,12 +184,6 @@ static char * pe_get_imported_symbol_info_64(
if (fn_name) {
if (ldr_tbl_entry)
*ldr_tbl_entry = mod_info;
-
- if (sym_image_addr)
- *sym_image_addr = (void *)sym_addr;
-
- if (sym_name)
- *sym_name = fn_name;
}
return fn_name;