diff --git a/libc/calls/metalfile.c b/libc/calls/metalfile.c index 271d333d2e65..d5fbb77be874 100644 --- a/libc/calls/metalfile.c +++ b/libc/calls/metalfile.c @@ -30,6 +30,7 @@ #include "libc/calls/internal.h" #include "libc/calls/metalfile.internal.h" #include "libc/intrin/directmap.internal.h" +#include "libc/intrin/kprintf.h" #include "libc/intrin/weaken.h" #include "libc/macros.internal.h" #include "libc/mem/mem.h" @@ -74,6 +75,7 @@ textstartup void InitializeMetalFile(void) { memcpy(copied_base, (void *)(BANE + IMAGE_BASE_PHYSICAL), size); __ape_com_base = copied_base; __ape_com_size = size; + KINFOF("%s @ %p,+%#zx", APE_COM_NAME, copied_base, size); } } diff --git a/libc/calls/metalfile_init.S b/libc/calls/metalfile_init.S index 2793b27a2d85..527bb72ddadc 100644 --- a/libc/calls/metalfile_init.S +++ b/libc/calls/metalfile_init.S @@ -27,12 +27,12 @@ #include "libc/macros.internal.h" #include "libc/calls/metalfile.internal.h" - .init.start 101,_init_metalfile + .init.start 102,_init_metalfile push %rdi push %rsi call InitializeMetalFile pop %rsi pop %rdi - .init.end 101,_init_metalfile + .init.end 102,_init_metalfile APE_COM_NAME: .endobj APE_COM_NAME,globl,hidden