Skip to content

Commit

Permalink
read/elf: add ElfSymbol::raw_symbol (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed Jul 24, 2023
1 parent 5754050 commit 6da6c82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/read/elf/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ where
pub(super) symbol: &'data Elf::Sym,
}

impl<'data, 'file, Elf: FileHeader, R: ReadRef<'data>> ElfSymbol<'data, 'file, Elf, R> {
/// Return a reference to the raw symbol structure.
#[inline]
pub fn raw_symbol(&self) -> &'data Elf::Sym {
self.symbol
}
}

impl<'data, 'file, Elf: FileHeader, R: ReadRef<'data>> read::private::Sealed
for ElfSymbol<'data, 'file, Elf, R>
{
Expand Down

0 comments on commit 6da6c82

Please sign in to comment.