DynamicLoader: Always make .data segment read+write

Let's just ignore the program header and always go with read+write.
Nothing else makes sense anyway.
This commit is contained in:
Andreas Kling 2021-02-20 19:02:15 +01:00
commit 08476e7fe7
Notes: sideshowbarker 2024-07-18 22:05:31 +09:00
2 changed files with 1 additions and 11 deletions

View file

@ -95,7 +95,6 @@ private:
u32 size_in_memory() const { return m_program_header.p_memsz; }
u32 size_in_image() const { return m_program_header.p_filesz; }
u32 alignment() const { return m_program_header.p_align; }
u32 mmap_prot() const;
bool is_readable() const { return flags() & PF_R; }
bool is_writable() const { return flags() & PF_W; }
bool is_executable() const { return flags() & PF_X; }