LibELF: Use the ELF_STRTAB string constant instead of hard-coding
This commit is contained in:
parent
04e40da188
commit
4198061534
Notes:
sideshowbarker
2024-07-19 09:11:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4198061534a
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
Reference in a new issue