Fix typo that led to segfault

This commit is contained in:
ISSOtm
2019-10-02 14:22:27 +02:00
parent 302b210470
commit 8c91b31ae6

View File

@@ -240,7 +240,7 @@ static void writeSymBank(struct SortedSections const *bankSections)
minSectList = sectList.addr < zlSectList.addr
? &sectList
: &zlSectList;
} else if (sectList.sect) {
} else if (sectList.sections) {
sectList.sym = sectList.sect->symbols[sectList.i];
sectList.addr =
sectList.sym->offset + sectList.sect->org;