diff --git a/ltvm/src/main.rs b/ltvm/src/main.rs index 6ba4a91..7b73f12 100644 --- a/ltvm/src/main.rs +++ b/ltvm/src/main.rs @@ -25,24 +25,12 @@ fn main() { let mut vm = tisc::VM::new( args.memsize ); let mut linker = tisc::Linker::new(); - let mut symbols = std::collections::HashMap::::new(); - for source_path in args.sources.iter() { let mut input = std::io::BufReader::new( std::fs::File::open(source_path).expect("Failed to open file") ); let obj_file : tisc::linker::ObjectFile = bincode::deserialize_from( input ).expect(""); - - for (name, addr) in obj_file.symbols.iter() { - symbols.insert( - name.clone(), - tisc::LinkAddr::Relative{ - symbol: source_path.clone(), - offset: *addr - } - ); - } linker.import( source_path, obj_file ); }