1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:47:35 +00:00

LibELF: Save the negative TLS offset in m_tls_offset

This makes it unnecessary to track the symbol size which just isn't
available for unexported symbols (e.g. for 'static __thread').
This commit is contained in:
Gunnar Beutner 2021-07-04 00:01:06 +02:00 committed by Andreas Kling
parent a0a38e1e84
commit 5f6ee4c539
4 changed files with 8 additions and 8 deletions

View file

@ -195,6 +195,7 @@ public:
return m_dynamic.base_address().offset(offset());
return VirtualAddress { offset() };
}
[[nodiscard]] DynamicObject const& dynamic_object() const { return m_dynamic; }
private:
const DynamicObject& m_dynamic;