Print kernel ELF sections

master
Philipp Oppermann 8 years ago
parent cbc9e112bd
commit 9a86f60835

@ -27,6 +27,15 @@ pub extern fn rust_main(multiboot_information_address: usize) {
area.base_addr, area.length);
}
let elf_sections_tag = boot_info.elf_sections_tag()
.expect("Elf-sections tag required");
println!("kernel sections:");
for section in elf_sections_tag.sections() {
println!(" addr: 0x{:x}, size: 0x{:x}, flags: 0x{:x}",
section.addr, section.size, section.flags);
}
loop{}
}

Loading…
Cancel
Save