Skip to content

Commit

Permalink
read/elf: add ElfSymbol::raw_symbol (gimli-rs#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
koute authored and poliorcetics committed Jul 24, 2023
1 parent f6c2f92 commit 3df103a
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 3df103a

Please sign in to comment.