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

Method mark_entry_global

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

Mark `entry_symbol` as a global export if it is present in the symbol table but not yet in `global_symbols`. This ensures the ELF symtab advertises the kernel entry so debuggers and QEMU can find it.

(&mut self, entry_symbol: &str)

Source from the content-addressed store, hash-verified

1005 .or_insert(start);
1006 self.symbol_table.insert("__rodata_end".to_owned(), end);
1007 }
1008 SectionKind::Data => {
1009 self.symbol_table
1010 .entry("__data_start".to_owned())
1011 .or_insert(start);
1012 self.symbol_table.insert("__data_end".to_owned(), end);
1013 }
1014 SectionKind::Bss => {
1015 self.symbol_table
1016 .entry("__bss_start".to_owned())

Callers 9

mark_abi_exportsMethod · 0.80
assemble_namedMethod · 0.80
kernel_asm_diagFunction · 0.80
run_kernel_hllFunction · 0.80
compile_and_run_kernelFunction · 0.80
run_kernel_hllFunction · 0.80

Calls 2

pushMethod · 0.80
containsMethod · 0.45

Tested by 3

kernel_asm_diagFunction · 0.64
run_kernel_hllFunction · 0.64