From 8a71031712e69116159c35da0d734555fdda5ece Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 16 Jun 2011 17:41:21 +0000 Subject: [PATCH] Even if the loaded module has no symbols, we still need to notify MD code about it and update the link map for GDB's use. --- sys/kern/link_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index 38bf37f31e90..2f9a1f685662 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -950,11 +950,11 @@ link_elf_load_file(linker_class_t cls, const char* filename, ef->ddbstrcnt = strcnt; ef->ddbstrtab = ef->strbase; +nosyms: error = link_elf_link_common_finish(lf); if (error != 0) goto out; -nosyms: *result = lf; out: