mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:17:44 +00:00
LibELF: Add a find_symbol() API that finds a Symbol for an address
Also add ELFImage::Symbol::raw_data() to get a StringView containing the entire symbol contents.
This commit is contained in:
parent
31d0dbe2a0
commit
5b91d848a7
4 changed files with 60 additions and 1 deletions
|
@ -73,6 +73,7 @@ public:
|
|||
unsigned type() const { return ELF32_ST_TYPE(m_sym.st_info); }
|
||||
unsigned bind() const { return ELF32_ST_BIND(m_sym.st_info); }
|
||||
const Section section() const { return m_image.section(section_index()); }
|
||||
StringView raw_data() const;
|
||||
|
||||
private:
|
||||
const ELFImage& m_image;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue