From 2438e00383cd70353aaad818c2197025bd46322e Mon Sep 17 00:00:00 2001 From: arookas Date: Fri, 5 Feb 2016 08:33:15 -0500 Subject: [PATCH] Fixed: restore writer position after relocations Damn, this was a nasty bug to find. --- ssc/symbol.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssc/symbol.cs b/ssc/symbol.cs index 655dcce..09ce728 100644 --- a/ssc/symbol.cs +++ b/ssc/symbol.cs @@ -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) {