mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibELF: Extract TLS offset calculation logic to separate function
This commit is contained in:
parent
373e8bcbc7
commit
1c24388d74
Notes:
sideshowbarker
2024-07-18 18:52:07 +09:00
Author: https://github.com/itamar8910
Commit: 1c24388d74
Pull-request: https://github.com/SerenityOS/serenity/pull/6607
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/tomuta
2 changed files with 11 additions and 3 deletions
|
@ -130,6 +130,7 @@ private:
|
|||
};
|
||||
RelocationResult do_relocation(size_t total_tls_size, 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 total_tls_size) const;
|
||||
|
||||
String m_filename;
|
||||
String m_program_interpreter;
|
||||
|
@ -150,7 +151,7 @@ private:
|
|||
VirtualAddress m_dynamic_section_address;
|
||||
|
||||
size_t m_tls_offset { 0 };
|
||||
size_t m_tls_size { 0 };
|
||||
size_t m_tls_size { 0 }; // TLS size of the current object
|
||||
|
||||
Vector<DynamicObject::Relocation> m_unresolved_relocations;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue