diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-27 00:34:59 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-30 09:43:49 +0200 |
commit | d8e22fedc341a48effaf53de1f3e9f79ae573104 (patch) | |
tree | dfd019e48bf364181b3f6b11250c1df38283e2f0 /Libraries/LibELF/DynamicLoader.cpp | |
parent | 081bb2962675cdf8994633906c73328a605baa02 (diff) | |
download | serenity-d8e22fedc341a48effaf53de1f3e9f79ae573104.zip |
Libraries: Unbreak building with extra debug macros
Diffstat (limited to 'Libraries/LibELF/DynamicLoader.cpp')
-rw-r--r-- | Libraries/LibELF/DynamicLoader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibELF/DynamicLoader.cpp b/Libraries/LibELF/DynamicLoader.cpp index ffac3283bd..9c7fd88969 100644 --- a/Libraries/LibELF/DynamicLoader.cpp +++ b/Libraries/LibELF/DynamicLoader.cpp @@ -35,7 +35,9 @@ #include <string.h> #include <sys/mman.h> -#define DYNAMIC_LOAD_DEBUG +#ifndef DYNAMIC_LOAD_DEBUG +# define DYNAMIC_LOAD_DEBUG +#endif //#define DYNAMIC_LOAD_VERBOSE #ifdef DYNAMIC_LOAD_VERBOSE @@ -82,8 +84,7 @@ DynamicLoader::DynamicLoader(const char* filename, int fd, size_t size) auto* elf_header = (Elf32_Ehdr*)m_file_mapping; - if (!validate_elf_header(*elf_header, m_file_size) || - !validate_program_headers(*elf_header, m_file_size, (u8*)m_file_mapping, m_file_size, m_program_interpreter)) { + if (!validate_elf_header(*elf_header, m_file_size) || !validate_program_headers(*elf_header, m_file_size, (u8*)m_file_mapping, m_file_size, m_program_interpreter)) { m_valid = false; } } |