From: Andreas Sandberg Date: Mon, 11 Jul 2016 15:30:35 +0000 (+0100) Subject: base: Fix inverted check in ELF .text size warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9d0f6db88832dab64572488533f4f7b5344ce72;p=gem5.git base: Fix inverted check in ELF .text size warning --- 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);