Fixed: close all relocations, not just callsites

This commit is contained in:
arookas 2016-02-01 14:04:29 -05:00
parent dc223e5c26
commit 193374ae50

View file

@ -51,8 +51,8 @@ namespace arookas {
foreach (var callable in mContext.SymbolTable.Callables) {
callable.Compile(this);
}
foreach (var callable in mContext.SymbolTable.Callables) {
callable.CloseCallSites(this);
foreach (var symbol in mContext.SymbolTable) {
symbol.CloseRelocations(this);
}
foreach (var data in mContext.DataTable) {
mBinary.WriteData(data);