summaryrefslogtreecommitdiffstats
path: root/sys/kern/link_elf.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-06-16 17:41:21 +0000
committermarcel <marcel@FreeBSD.org>2011-06-16 17:41:21 +0000
commitc7e47a0b817b315abc257680794d408d2fc75290 (patch)
treecb842cea29943203ab38beb6f80dff1f2afd4f40 /sys/kern/link_elf.c
parent30391f29baccc63c33ab14e87503fc6763612f29 (diff)
downloadFreeBSD-src-c7e47a0b817b315abc257680794d408d2fc75290.zip
FreeBSD-src-c7e47a0b817b315abc257680794d408d2fc75290.tar.gz
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.
Diffstat (limited to 'sys/kern/link_elf.c')
-rw-r--r--sys/kern/link_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
index 38bf37f..2f9a1f6 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:
OpenPOWER on IntegriCloud