1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:17:34 +00:00

LibELF: Remove unused m_program_interpreter member from DynamicLoader

While profiling I realized that this member is unused, so the
StringBuilder and String allocation are completely un-necessary.
This commit is contained in:
Brian Gianforcaro 2022-03-31 00:29:56 -07:00 committed by Andreas Kling
parent 39f924a731
commit 7d667b9f69
3 changed files with 2 additions and 5 deletions

View file

@ -13,6 +13,6 @@
namespace ELF {
bool validate_elf_header(ElfW(Ehdr) const& elf_header, size_t file_size, bool verbose = true);
ErrorOr<bool> validate_program_headers(ElfW(Ehdr) const& elf_header, size_t file_size, ReadonlyBytes buffer, StringBuilder* interpreter_path_builder, bool verbose = true);
ErrorOr<bool> validate_program_headers(ElfW(Ehdr) const& elf_header, size_t file_size, ReadonlyBytes buffer, StringBuilder* interpreter_path_builder = nullptr, bool verbose = true);
} // end namespace ELF