fix: count all symbols to err on the side of over allocating

This commit is contained in:
Ryan Barth 2024-06-30 23:17:20 -07:00
parent 3fe2a4cd13
commit 43f970f813
No known key found for this signature in database
GPG key ID: E00C3713D9ED3943

View file

@ -194,7 +194,7 @@ pub(crate) fn preprocess_windows(
Err(e) => internal_error!("Failed to parse shared library file: {e}"),
};
let dummy_dll_symbols = shared_lib_obj
.dynamic_symbols()
.symbols()
.filter(is_roc_definition)
.count();