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

Method write_object_file

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

Write an `ET_REL` object file to disk.

(&self, path: &Path)

Source from the content-addressed store, hash-verified

886 buf.extend_from_slice(&[0u8; 64]);
887 for (i, sec) in prog_secs.iter().enumerate() {
888 let size = sec.bytes.len() as u64;
889 let file_size = if matches!(sec.kind, SectionKind::Bss) {
890 0
891 } else {
892 size
893 };
894 push_u32_le(&mut buf, sec_name_offs[i]);

Callers

nothing calls this directly

Calls 1

to_objectMethod · 0.80

Tested by

no test coverage detected