()
| 139 | /// The effective link layout for the current configuration. |
| 140 | pub fn effective_link_layout(&self) -> LinkLayout { |
| 141 | if let Some(layout) = &self.link_layout { |
| 142 | layout.clone() |
| 143 | } else { |
| 144 | match self.target_mode { |
| 145 | TargetMode::Hosted => LinkLayout::hosted(), |
| 146 | TargetMode::Freestanding | TargetMode::Kernel => LinkLayout::freestanding_kernel(), |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /// Effective load base address (shorthand for `effective_link_layout().load_base`). |
| 152 | pub fn effective_load_base(&self) -> u64 { |
| 153 | self.effective_link_layout().load_base |
nothing calls this directly
no outgoing calls
no test coverage detected