1
Fork 0
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:
Andreas Kling 2020-04-11 18:45:17 +02:00
parent 31d0dbe2a0
commit 5b91d848a7
4 changed files with 60 additions and 1 deletions

View file

@ -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;