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