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

DynamicLoader: Make the cached DynamicObject publicly accessible

This commit is contained in:
Tim Schumacher 2022-02-18 19:21:51 +01:00 committed by Linus Groh
parent 03c46a261f
commit 7bd0a3e9ba

View file

@ -80,6 +80,8 @@ public:
static Optional<DynamicObject::SymbolLookupResult> lookup_symbol(const ELF::DynamicObject::Symbol&);
void copy_initial_tls_data_into(ByteBuffer& buffer) const;
DynamicObject const& dynamic_object() const;
private:
DynamicLoader(int fd, String filename, void* file_data, size_t file_size);
@ -107,8 +109,6 @@ private:
ElfW(Phdr) m_program_header; // Explicitly a copy of the PHDR in the image
};
const DynamicObject& dynamic_object() const;
// Stage 1
void load_program_headers();