mirror of https://github.com/contiki-ng/mspsim
Bug fix: only use guessed heap start if no heap start was found in the ELF file
This commit is contained in:
parent
9f774a31dd
commit
55753f2bd4
|
|
@ -455,10 +455,10 @@ public class ELF {
|
|||
addr += symTable.getEntrySize();
|
||||
}
|
||||
|
||||
if (sAddrHighest > 0) {
|
||||
System.out.printf("Warning: Unable to parse _end symbol. I'm guessing that heap starts at 0x%05x\n", sAddrHighest);
|
||||
map.setHeapStart(sAddrHighest);
|
||||
}
|
||||
if (map.getHeapStart() <= 0 && sAddrHighest > 0) {
|
||||
System.err.printf("Warning: Unable to parse _end symbol. I'm guessing that heap starts at 0x%05x\n", sAddrHighest);
|
||||
map.setHeapStart(sAddrHighest);
|
||||
}
|
||||
|
||||
return map;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue