diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2020-04-11 12:32:38 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-11 22:41:05 +0200 |
commit | 61acca223fe1f868c41466afd8673efa76e275ad (patch) | |
tree | d72f0cdb5fdae3cb3aab7de95dfea3416e0bc1d6 /Libraries/LibELF/Image.h | |
parent | 21b5909dc6c912809f0ff2fd4798f0d613b36c14 (diff) | |
download | serenity-61acca223fe1f868c41466afd8673efa76e275ad.zip |
LibELF: Move validation methods to their own file
These validate_elf_* methods really had no business being static
methods of ELF::Image. Now that the ELF namespace exists, it makes
sense to just move them to be free functions in the namespace.
Diffstat (limited to 'Libraries/LibELF/Image.h')
-rw-r--r-- | Libraries/LibELF/Image.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Libraries/LibELF/Image.h b/Libraries/LibELF/Image.h index 7d0df2813a..a4e5497431 100644 --- a/Libraries/LibELF/Image.h +++ b/Libraries/LibELF/Image.h @@ -203,9 +203,6 @@ public: VirtualAddress entry() const { return VirtualAddress(header().e_entry); } - static bool validate_elf_header(const Elf32_Ehdr& elf_header, size_t file_size); - static bool validate_program_headers(const Elf32_Ehdr& elf_header, size_t file_size, u8* buffer, size_t buffer_size, String& interpreter_path); - private: bool parse_header(); const char* raw_data(unsigned offset) const; |