summaryrefslogtreecommitdiff
path: root/Libraries/LibELF/ELFImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibELF/ELFImage.cpp')
-rw-r--r--Libraries/LibELF/ELFImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibELF/ELFImage.cpp b/Libraries/LibELF/ELFImage.cpp
index 9f967d1fcc..7627422510 100644
--- a/Libraries/LibELF/ELFImage.cpp
+++ b/Libraries/LibELF/ELFImage.cpp
@@ -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;
}
}