1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 19:05:08 +00:00

Libraries: Unbreak building with extra debug macros

This commit is contained in:
Ben Wiederhake 2020-08-27 00:34:59 +02:00 committed by Andreas Kling
parent 081bb29626
commit d8e22fedc3
8 changed files with 23 additions and 17 deletions

View file

@ -87,10 +87,10 @@ bool Loader::layout()
}
if (program_header.type() != PT_LOAD)
return;
#ifdef Loader_DEBUG
kprintf("PH: V%p %u r:%u w:%u\n", program_header.vaddr().get(), program_header.size_in_memory(), program_header.is_readable(), program_header.is_writable());
#endif
#ifdef KERNEL
# ifdef Loader_DEBUG
kprintf("PH: V%p %u r:%u w:%u\n", program_header.vaddr().get(), program_header.size_in_memory(), program_header.is_readable(), program_header.is_writable());
# endif
if (program_header.is_writable()) {
auto* allocated_section = alloc_section_hook(
program_header.vaddr(),