mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:47:44 +00:00
LibELF: Use the ELF_STRTAB string constant instead of hard-coding
This commit is contained in:
parent
04e40da188
commit
4198061534
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ bool ELFImage::parse()
|
|||
m_symbol_table_section_index = i;
|
||||
}
|
||||
if (sh.sh_type == SHT_STRTAB && i != header().e_shstrndx) {
|
||||
if (StringView(".strtab") == section_header_table_string(sh.sh_name))
|
||||
if (section_header_table_string(sh.sh_name) == ELF_STRTAB)
|
||||
m_string_table_section_index = i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue