diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc index 410cc1fde..43c00b19e 100644 --- a/src/base/loader/elf_object.cc +++ b/src/base/loader/elf_object.cc @@ -383,7 +383,7 @@ ElfObject::ElfObject(const std::string &_filename, size_t _len, } // should have found at least one loadable segment - warn_if(text.size != 0, + warn_if(text.size == 0, "Empty .text segment in '%s'. ELF file corrupted?\n", filename);