Forced unwind tables - still bugged
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user