diff --git a/src/main.rs b/src/main.rs index 4b60971..6a21afa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ extern crate pest_derive; use pest::error::Error; use pest::Parser; use core::panic; -use std::collections::HashMap; +use std::collections::{HashMap, BTreeMap}; use std::env; use std::fs::{canonicalize, read, read_to_string, File}; use std::fmt::Debug; @@ -28,7 +28,7 @@ lazy_static! { static ref SOURCE_PATH: Mutex = Mutex::new(PathBuf::new()); static ref CURRENT_SIZE: Mutex = Mutex::new(Size::Word); static ref CURRENT_CONDITION: Mutex = Mutex::new(Condition::Always); - static ref LABEL_TARGETS: Mutex>> = Mutex::new(HashMap::new()); + static ref LABEL_TARGETS: Mutex>> = Mutex::new(BTreeMap::new()); static ref LABEL_ADDRESSES: Mutex> = Mutex::new(HashMap::new()); static ref RELOC_ADDRESSES: Mutex> = Mutex::new(Vec::new()); }