1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:57:34 +00:00

LibELF: Add Symbol::is_undefined()

This commit is contained in:
Itamar 2021-01-06 21:44:47 +02:00 committed by Andreas Kling
parent f95f15e0bd
commit bb90d961b8
2 changed files with 3 additions and 0 deletions

View file

@ -76,6 +76,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()); }
bool is_undefined() const { return section_index() == 0; }
StringView raw_data() const;
private: