base: Fix inverted check in ELF .text size warning

This commit is contained in:
Andreas Sandberg 2016-07-11 16:30:35 +01:00
parent f471cc22f0
commit e9d0f6db88

View file

@ -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);