rename strtab to shstrtab since it makes more sense now
This commit is contained in:
parent
8f7a832961
commit
fe31879dd6
1 changed files with 2 additions and 2 deletions
|
|
@ -224,12 +224,12 @@ relf_value_t relf_open(relf_t* relf, const char* path)
|
|||
// resolve strings
|
||||
if (e_shstrndx != SHN_UNDEF)
|
||||
{
|
||||
const char* strtab = (const char*)relf->image
|
||||
const char* shstrtab = (const char*)relf->image
|
||||
+ relf->sections[e_shstrndx].f_offset;
|
||||
for (unsigned i = 0; i < relf->section_num; i++)
|
||||
{
|
||||
relf_section_t* section = &relf->sections[i];
|
||||
section->name = strtab + section->si_name;
|
||||
section->name = shstrtab + section->si_name;
|
||||
|
||||
TRACE_SECTION(section);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue