From a948b53d9aed592da5c442809a305dfe63f91473 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Mon, 21 Oct 2024 11:51:49 +0200 Subject: [PATCH] ltvm: remove unneccesary symbol table (handled in linker now) --- ltvm/src/main.rs | 12 ------------ 1 file changed, 12 deletions(-) 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 ); }