diff options
Diffstat (limited to 'base/loader')
-rw-r--r-- | base/loader/aout_object.cc | 6 | ||||
-rw-r--r-- | base/loader/ecoff_object.cc | 6 | ||||
-rw-r--r-- | base/loader/elf_object.cc | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/base/loader/aout_object.cc b/base/loader/aout_object.cc index 54bf81aaf..d1b27120d 100644 --- a/base/loader/aout_object.cc +++ b/base/loader/aout_object.cc @@ -91,9 +91,11 @@ AoutObject::loadSections(TranslatingPort *memPort, bool loadPhys) // Since we don't really have an MMU and all memory is // zero-filled, there's no need to set up the BSS segment. if (text.size != 0) - memPort->writeBlobFunctional(textAddr, fileData + N_TXTOFF(*execHdr), text.size); + memPort->writeBlobFunctional(textAddr, fileData + N_TXTOFF(*execHdr), + text.size, true); if (data.size != 0) - memPort->writeBlobFunctional(dataAddr, fileData + N_DATOFF(*execHdr), data.size); + memPort->writeBlobFunctional(dataAddr, fileData + N_DATOFF(*execHdr), + data.size, true); return true; } diff --git a/base/loader/ecoff_object.cc b/base/loader/ecoff_object.cc index a18ecc026..a4b8c8713 100644 --- a/base/loader/ecoff_object.cc +++ b/base/loader/ecoff_object.cc @@ -94,8 +94,10 @@ EcoffObject::loadSections(TranslatingPort *memPort, bool loadPhys) // Since we don't really have an MMU and all memory is // zero-filled, there's no need to set up the BSS segment. - memPort->writeBlobFunctional(textAddr, fileData + ECOFF_TXTOFF(execHdr), text.size); - memPort->writeBlobFunctional(dataAddr, fileData + ECOFF_DATOFF(execHdr), data.size); + memPort->writeBlobFunctional(textAddr, fileData + ECOFF_TXTOFF(execHdr), + text.size, true); + memPort->writeBlobFunctional(dataAddr, fileData + ECOFF_DATOFF(execHdr), + data.size, true); return true; } diff --git a/base/loader/elf_object.cc b/base/loader/elf_object.cc index aeb81cb76..11c94d651 100644 --- a/base/loader/elf_object.cc +++ b/base/loader/elf_object.cc @@ -183,9 +183,9 @@ ElfObject::loadSections(TranslatingPort *memPort, bool loadPhys) // Since we don't really have an MMU and all memory is // zero-filled, there's no need to set up the BSS segment. if (text.size != 0) - memPort->writeBlobFunctional(textAddr, fileTextBits, text.size); + memPort->writeBlobFunctional(textAddr, fileTextBits, text.size, true); if (data.size != 0) - memPort->writeBlobFunctional(dataAddr, fileDataBits, data.size); + memPort->writeBlobFunctional(dataAddr, fileDataBits, data.size, true); return true; } |