diff options
Diffstat (limited to 'runtime/oat/elf_file.cc')
-rw-r--r-- | runtime/oat/elf_file.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/oat/elf_file.cc b/runtime/oat/elf_file.cc index 91af410471..c66cba1dd0 100644 --- a/runtime/oat/elf_file.cc +++ b/runtime/oat/elf_file.cc @@ -1434,9 +1434,8 @@ bool ElfFileImpl<ElfTypes>::Strip(File* file, std::string* error_msg) { section_headers_original_indexes.push_back(0); continue; } - if (android::base::StartsWith(name, ".debug") - || (strcmp(name, ".strtab") == 0) - || (strcmp(name, ".symtab") == 0)) { + std::string_view name_sv(name); + if (name_sv.starts_with(".debug") || (name_sv == ".strtab") || (name_sv == ".symtab")) { continue; } section_headers.push_back(*sh); |