--- src/sys/kern/link_elf.c 2005/03/03 19:50:33 1.16 +++ src/sys/kern/link_elf.c 2005/03/04 00:01:30 1.17 @@ -141,10 +141,7 @@ link_elf_init(void* arg) dp = (Elf_Dyn*) &_DYNAMIC; if (dp) { - ef = malloc(sizeof(struct elf_file), M_LINKER, M_NOWAIT | M_ZERO); - if (ef == NULL) - panic("link_elf_init: Can't create linker structures for kernel"); - + ef = malloc(sizeof(struct elf_file), M_LINKER, M_INTWAIT | M_ZERO); ef->address = 0; #ifdef SPARSE_MAPPING ef->object = 0;