mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +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:
parent
a0a38e1e84
commit
5f6ee4c539
4 changed files with 8 additions and 8 deletions
|
@ -131,7 +131,7 @@ private:
|
|||
};
|
||||
RelocationResult do_relocation(const DynamicObject::Relocation&, ShouldInitializeWeak should_initialize_weak);
|
||||
size_t calculate_tls_size() const;
|
||||
ssize_t negative_offset_from_tls_block_end(size_t value_of_symbol, size_t tls_offset, size_t symbol_size) const;
|
||||
ssize_t negative_offset_from_tls_block_end(size_t value_of_symbol, ssize_t tls_offset) const;
|
||||
|
||||
String m_filename;
|
||||
String m_program_interpreter;
|
||||
|
@ -151,7 +151,7 @@ private:
|
|||
|
||||
VirtualAddress m_dynamic_section_address;
|
||||
|
||||
size_t m_tls_offset { 0 };
|
||||
ssize_t m_tls_offset { 0 };
|
||||
size_t m_tls_size_of_current_object { 0 };
|
||||
|
||||
Vector<DynamicObject::Relocation> m_unresolved_relocations;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue