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

Function elf_program_headers_present

crates/asm-to-binary/tests/elf_output.rs:105–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103fn elf_entry_resolves_start_symbol() {
104 let out = minimal_output();
105 let start_off = out.symbol_address("_start").expect("_start symbol");
106 let elf = out.to_elf(LOAD_BASE);
107 let entry = u64_le(&elf, E_ENTRY_OFF);
108 assert_eq!(
109 entry,
110 LOAD_BASE + start_off,
111 "e_entry should be load_base + _start offset"
112 );

Callers

nothing calls this directly

Calls 3

minimal_outputFunction · 0.85
to_elfMethod · 0.80
u16_leFunction · 0.70

Tested by

no test coverage detected