diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-20 19:26:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-21 00:02:21 +0100 |
commit | 01f1e480e5bc476e103322e25a0f57e812d78b22 (patch) | |
tree | 63da614d0e3ea9d0c259e8b3e897f69bcffe5952 /Userland/Libraries/LibELF/DynamicLoader.h | |
parent | 0c0127dc3fd2428f1c24a71d17671f361401df1f (diff) | |
download | serenity-01f1e480e5bc476e103322e25a0f57e812d78b22.zip |
LibELF: Fix various clang-tidy warnings
Remove a bunch of unused code, unnecessary const, and make some
non-object-specific member functions static.
Diffstat (limited to 'Userland/Libraries/LibELF/DynamicLoader.h')
-rw-r--r-- | Userland/Libraries/LibELF/DynamicLoader.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Userland/Libraries/LibELF/DynamicLoader.h b/Userland/Libraries/LibELF/DynamicLoader.h index 1f70ab3d7c..54dac90884 100644 --- a/Userland/Libraries/LibELF/DynamicLoader.h +++ b/Userland/Libraries/LibELF/DynamicLoader.h @@ -38,8 +38,6 @@ namespace ELF { -#define ALIGN_ROUND_UP(x, align) ((((size_t)(x)) + align - 1) & (~(align - 1))) - class DynamicLoader : public RefCounted<DynamicLoader> { public: static RefPtr<DynamicLoader> try_create(int fd, String filename); @@ -62,13 +60,6 @@ public: // Intended for use by dlsym or other internal methods void* symbol_for_name(const StringView&); - void dump(); - - // Requested program interpreter from program headers. May be empty string - StringView program_interpreter() const { return m_program_interpreter; } - - VirtualAddress text_segment_load_addresss() const { return m_text_segment_load_address; } - void set_tls_offset(size_t offset) { m_tls_offset = offset; }; size_t tls_size() const { return m_tls_size; } size_t tls_offset() const { return m_tls_offset; } @@ -127,7 +118,7 @@ private: Success = 1, ResolveLater = 2, }; - RelocationResult do_relocation(size_t total_tls_size, DynamicObject::Relocation relocation); + RelocationResult do_relocation(size_t total_tls_size, const DynamicObject::Relocation&); size_t calculate_tls_size() const; Optional<DynamicObject::SymbolLookupResult> lookup_symbol(const ELF::DynamicObject::Symbol&) const; @@ -148,7 +139,6 @@ private: VirtualAddress m_relro_segment_address; size_t m_relro_segment_size { 0 }; - VirtualAddress m_tls_segment_address; VirtualAddress m_dynamic_section_address; size_t m_tls_offset { 0 }; |