Skip to content

Commit bc20c77

Browse files
committed
Added symtab_symbol function to elf module
1 parent 2846310 commit bc20c77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types/modules/elf_module.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ bool ElfModule::initialize(ImportFeatures/* features*/)
174174
symtabStruct->addAttribute(std::make_shared<ValueSymbol>("shndx", Type::Int));
175175
elfStruct->addAttribute(std::make_shared<ArraySymbol>("symtab", symtabStruct));
176176

177+
elfStruct->addAttribute(std::make_unique<FunctionSymbol>("symtab_symbol", Type::Int, Type::String));
178+
177179
_structure = elfStruct;
178180
return true;
179181
}

0 commit comments

Comments
 (0)