summaryrefslogtreecommitdiff
path: root/src/base/loader
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2016-07-11 16:30:35 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2016-07-11 16:30:35 +0100
commite9d0f6db88832dab64572488533f4f7b5344ce72 (patch)
treea9403d8c9cc3fa97ebfb27a467cfa162a94bdc97 /src/base/loader
parentf471cc22f0311fb12ae64236e56a6157ac40db06 (diff)
downloadgem5-e9d0f6db88832dab64572488533f4f7b5344ce72.tar.xz
base: Fix inverted check in ELF .text size warning
Diffstat (limited to 'src/base/loader')
-rw-r--r--src/base/loader/elf_object.cc2
1 files changed, 1 insertions, 1 deletions
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);