MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / to_elf_with_entry

Method to_elf_with_entry

crates/asm-to-binary/src/assembler/output.rs:221–223  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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()

Callers 7

cmd_linkFunction · 0.80
newMethod · 0.80
resetMethod · 0.80
run_in_vmFunction · 0.80
new_kernelMethod · 0.80

Calls 1

Tested by

no test coverage detected