ltvm: expect message for entry symbol

This commit is contained in:
Michael Sippel 2024-09-29 22:19:24 +02:00
parent cf2ea4df78
commit f5984e0b08
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -34,11 +34,9 @@ fn main() {
linker.import( source_path, bincode::deserialize_from( input ).expect("") );
}
/*
let entry_addr = symbols.get(&args.entry)
let entry_addr = linker.get_link_addr(&args.entry)
.expect(&format!("cant find entry symbol '{}'", args.entry));
*/
let entry_addr = linker.get_link_addr(&args.entry).unwrap();
let bytecode = linker.link_total().expect("Link error:");
eprintln!("{} ({} bytes)", "Loaded bytecode.".green(), bytecode.len());