Fixed: restore writer position after relocations

Damn, this was a nasty bug to find.
This commit is contained in:
arookas 2016-02-05 08:33:15 -05:00
parent fefb17524c
commit 2438e00383

View file

@ -104,9 +104,11 @@ namespace arookas {
mRelocations.Add(relocation);
}
public void CloseRelocations(sunCompiler compiler) {
compiler.Binary.Keep();
foreach (var relocation in mRelocations) {
relocation.Relocate(compiler);
}
compiler.Binary.Back();
}
public static sunSymbolModifiers GetModifiers(sunNode modifierlist) {