The effective link layout for the current configuration.
(&self)
| 256 | /// Effective load base address (shorthand for `effective_link_layout().load_base`). |
| 257 | pub fn effective_load_base(&self) -> u64 { |
| 258 | self.effective_link_layout().load_base |
| 259 | } |
| 260 | |
| 261 | /// The effective entry-point symbol given the current configuration. |
| 262 | pub fn effective_entry_point(&self) -> &str { |
| 263 | if let Some(sym) = &self.entry_point { |
| 264 | sym.as_str() |
| 265 | } else { |
| 266 | match self.target_mode { |
| 267 | TargetMode::Hosted => "_start", |
| 268 | TargetMode::Freestanding => "kmain", |
| 269 | TargetMode::Kernel => "_kernel_start", |
| 270 | } |
no test coverage detected