aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/programloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/programloader.cpp')
-rw-r--r--qtmips_machine/programloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/programloader.cpp b/qtmips_machine/programloader.cpp
index c83a30f..f6c2e6d 100644
--- a/qtmips_machine/programloader.cpp
+++ b/qtmips_machine/programloader.cpp
@@ -45,7 +45,7 @@ ProgramLoader::ProgramLoader(const char *file) {
if (!(this->phdrs = elf32_getphdr(this->elf)))
throw QTMIPS_EXCEPTION(Input, "Elf program sections get failed", elf_errmsg(-1));
// We want only LOAD sections so we create map of those sections
- for (unsigned i = 1; i < this->n_secs; i++) {
+ for (unsigned i = 0; i < this->n_secs; i++) {
if (phdrs[i].p_type != PT_LOAD)
continue;
this->map.push_back(i);