From eb50c82f35336be7dff27205eebac36288ccc0e2 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 20 Jun 2012 21:06:51 +0000 Subject: Don't return an error if a kld does not contain any modules (e.g. a kld that only contained a sysctl). The kernel linker allows such modules, so the boot loader should not reject them. MFC after: 2 weeks --- sys/boot/common/load_elf_obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/boot/common/load_elf_obj.c') diff --git a/sys/boot/common/load_elf_obj.c b/sys/boot/common/load_elf_obj.c index 54d9b10..2c8e184 100644 --- a/sys/boot/common/load_elf_obj.c +++ b/sys/boot/common/load_elf_obj.c @@ -369,7 +369,7 @@ __elfN(obj_parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) if (__elfN(obj_lookup_set)(fp, ef, "modmetadata_set", &p, &p_stop, &modcnt) != 0) - return ENOENT; + return 0; modcnt = 0; while (p < p_stop) { -- cgit v1.1