base: Fix inverted check in ELF .text size warning
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 11 Jul 2016 15:30:35 +0000 (16:30 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 11 Jul 2016 15:30:35 +0000 (16:30 +0100)
src/base/loader/elf_object.cc

index 410cc1fde239d999dff3d4a115c561d9ce6332af..43c00b19e2756af7ff57da5e22ac7fad39388aca 100644 (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);