summaryrefslogtreecommitdiff
path: root/Libraries/LibELF/ELFImage.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-21 16:16:23 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-21 16:16:23 +0100
commit4198061534a5e7b4f3f03201302c7c0368eb0ba0 (patch)
tree33828d8036d3bc35d33d946b5f0bf6c58f25f9f4 /Libraries/LibELF/ELFImage.cpp
parent04e40da1885f86a23c66dca0f034fe9cbb70665f (diff)
downloadserenity-4198061534a5e7b4f3f03201302c7c0368eb0ba0.zip
LibELF: Use the ELF_STRTAB string constant instead of hard-coding
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;
}
}