summaryrefslogtreecommitdiff
path: root/Libraries/LibELF/Image.h
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2020-04-11 12:32:38 -0600
committerAndreas Kling <kling@serenityos.org>2020-04-11 22:41:05 +0200
commit61acca223fe1f868c41466afd8673efa76e275ad (patch)
treed72f0cdb5fdae3cb3aab7de95dfea3416e0bc1d6 /Libraries/LibELF/Image.h
parent21b5909dc6c912809f0ff2fd4798f0d613b36c14 (diff)
downloadserenity-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.h3
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;