Skip to content

Commit

Permalink
Added symtab_symbol function to elf module
Browse files Browse the repository at this point in the history
  • Loading branch information
xbabka01 committed Apr 14, 2020
1 parent 2846310 commit 5b8f1e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/modules/elf_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ bool ElfModule::initialize(ImportFeatures/* features*/)
symtabStruct->addAttribute(std::make_shared<ValueSymbol>("shndx", Type::Int));
elfStruct->addAttribute(std::make_shared<ArraySymbol>("symtab", symtabStruct));

elfStruct->addAttribute(std::make_unique<FunctionSymbol>("symtab_symbol", Type::Int, Type::String));
elfStruct->addAttribute(std::make_unique<FunctionSymbol>("symtab_symbol", Type::Int, Type::Regexp));

_structure = elfStruct;
return true;
}
Expand Down

0 comments on commit 5b8f1e7

Please sign in to comment.