Like `to_elf` but tries `entry_symbol` first before the default fallbacks. Use this for freestanding builds whose entry point is not `_start`.
(&self, load_base: u64, entry_symbol: &str)
| 219 | /// label, blank, and comment lines resolve to the code that follows them. |
| 220 | pub fn addr_for_source_at_or_after(&self, file: &str, line: u32) -> Option<u64> { |
| 221 | let file_id = self.file_table.iter().position(|f| f == file)? as u32; |
| 222 | self.line_table |
| 223 | .iter() |
| 224 | .filter(|e| e.file_id == file_id && e.line >= line && e.line != 0) |
| 225 | .map(|e| (e.line, e.addr)) |
| 226 | .min() |
no test coverage detected