Forced unwind tables - still bugged

This commit is contained in:
2025-03-06 01:01:04 +00:00
parent bc51f3ec43
commit f197149d80
4 changed files with 31 additions and 5 deletions
+12
View File
@@ -18,6 +18,7 @@ use elf::{
parse::{ParseAt, ParsingTable},
section::{SectionHeader, SectionHeaderTable},
string_table::StringTable,
symbol::SymbolTable,
};
use limine::request::KernelFileRequest;
@@ -83,6 +84,17 @@ impl ElfReader {
Ok(Self { elf })
}
#[warn(clippy::unwrap_used)]
pub fn get_symbol_table(
&self,
) -> Result<
Option<(SymbolTable<'static, LittleEndian>, StringTable<'static>)>,
ElfError,
> {
// TODO: Remove .unwrap().
Ok(self.elf.symbol_table().unwrap())
}
/// Gets the section size of `section_name` in bytes.
pub fn get_section_size(
&self,