diff options
Diffstat (limited to 'src/format/elf/e_elf.c')
-rw-r--r-- | src/format/elf/e_elf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/format/elf/e_elf.c b/src/format/elf/e_elf.c index 03b2e82..c2e49b1 100644 --- a/src/format/elf/e_elf.c +++ b/src/format/elf/e_elf.c @@ -30,6 +30,7 @@ #include "elf-int.h" #include "section.h" +#include "strings.h" #include "symbol.h" @@ -95,6 +96,10 @@ elf_format *load_elf(const uint8_t *content, off_t length) printf("ok ? %d\n", test); + test = find_all_elf_strings(result); + + printf("ok ? %d\n", test); + test = load_elf_symbols(result); printf("ok ? %d\n", test); @@ -279,6 +284,12 @@ bool resolve_elf_symbol(const elf_format *format, char **label, SymbolType *type uint64_t best_addr; /* Meilleure adresse trouvée */ size_t i; /* Boucle de parcours */ + if (resolve_elf_strings(format, label, offset)) + { + *type = STP_STRING; + return true; + } + best_addr = UINT64_MAX; for (i = 0; i < format->sym_count; i++) |