Skip to main content

firmion_mapdb/
mapdb.rs

1// Don't clutter upstream docs.rs for an otherwise private library.
2#![doc(hidden)]
3
4use ir::ParameterValue;
5
6#[derive(Clone, Debug)]
7pub struct SectionEntry {
8    pub name: String,
9    pub file_offset: u64,
10    pub off: u64,
11    pub abs_start: u64,
12    pub size: u64,
13}
14
15#[derive(Clone, Debug)]
16pub struct LabelEntry {
17    pub name: String,
18    pub file_offset: u64,
19    pub off: u64,
20    pub abs_addr: u64,
21}
22
23#[derive(Clone, Debug)]
24pub struct ConstEntry {
25    pub name: String,
26    pub value: ParameterValue,
27    pub used: bool,
28}
29
30#[derive(Clone, Debug)]
31pub struct MapDb {
32    pub output_file: String,
33    pub base_addr: u64,
34    pub total_size: u64,
35    pub sections: Vec<SectionEntry>,
36    pub labels: Vec<LabelEntry>,
37    pub consts: Vec<ConstEntry>,
38}