Moved Over To OOP to Abstract ELF Binary Generation #1

Merged
Karutoh merged 5 commits from oop into main 2024-02-15 15:48:45 -08:00
Showing only changes of commit 8d23df86bf - Show all commits

View File

@ -235,8 +235,7 @@ ehs::Serializer<ehs::UInt_64> ELF64::Serialize() const
if (sections[i].programIndex < EHS_UINT_16_MAX + 1)
{
sections[i].vAddr = programs[entryPoint].pAddr + result.GetOffset() + programsSize + segmentOffset;
programs[sections[i].programIndex].fileSize =
result.GetOffset() + programsSize + segmentOffset + segmentData[i].Size();
programs[sections[i].programIndex].fileSize = segmentData[i].Size();
}
segmentOffset += segmentData[i].Size();