Fix single-segment apps (fixes #33)

This commit is contained in:
Wolfgang Thaller 2017-10-16 01:47:21 +02:00
parent c47772e62f
commit ce224eb58d

View File

@ -132,8 +132,12 @@ Object::Object(string input)
void Object::FlatCode(std::ostream& out)
{
for(auto sec : codeSections)
{
sec->FixRelocs();
out << sec->GetData();
}
dataSection->FixRelocs();
out << dataSection->GetData();
std::vector<RuntimeReloc> relocs;