Windows fixes

More Windows fixes
This commit is contained in:
doctaweed
2020-08-26 18:59:06 -06:00
parent 8927bd976d
commit 33e522ea52
54 changed files with 513 additions and 270 deletions
@@ -134,7 +134,7 @@ static uint32_t c_symlink2(LinkedObjectFile& f,
word_kind = LinkedWord::TYPE_PTR;
break;
default:
throw std::runtime_error("unhandled SymbolLinkKind");
throw std::exception("unhandled SymbolLinkKind");
}
f.symbol_link_word(seg_id, code_ptr_offset - initial_offset, name, word_kind);
@@ -191,7 +191,7 @@ static uint32_t c_symlink3(LinkedObjectFile& f,
word_kind = LinkedWord::TYPE_PTR;
break;
default:
throw std::runtime_error("unhandled SymbolLinkKind");
throw std::exception("unhandled SymbolLinkKind");
}
f.symbol_link_word(seg, code_ptr - initial_offset, name, word_kind);