From e9d0f6db88832dab64572488533f4f7b5344ce72 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 11 Jul 2016 16:30:35 +0100 Subject: base: Fix inverted check in ELF .text size warning --- src/base/loader/elf_object.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/loader') 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); -- cgit v1.2.3