summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/load_aout.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-09-11 01:09:24 +0000
committerpeter <peter@FreeBSD.org>2001-09-11 01:09:24 +0000
commit808991de7cecc9e774ffe5031e29362207e75564 (patch)
tree7b0e7fbc20bd6b09f4224a1d0187a77c9f747184 /sys/boot/common/load_aout.c
parentf07a058a30186a596af1595909ea89573a1a794f (diff)
downloadFreeBSD-src-808991de7cecc9e774ffe5031e29362207e75564.zip
FreeBSD-src-808991de7cecc9e774ffe5031e29362207e75564.tar.gz
Implement the long-awaited module->file cache database. A userland
tool (kldxref(8)) keeps a cache of what modules and versions are inside what .ko files. I have tested this on both Alpha and i386. Submitted by: bp
Diffstat (limited to 'sys/boot/common/load_aout.c')
-rw-r--r--sys/boot/common/load_aout.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/boot/common/load_aout.c b/sys/boot/common/load_aout.c
index 8867815..e2a9643 100644
--- a/sys/boot/common/load_aout.c
+++ b/sys/boot/common/load_aout.c
@@ -64,7 +64,6 @@ aout_loadfile(char *filename, vm_offset_t dest, struct preloaded_file **result)
vm_offset_t addr;
int err, kernel;
u_int pad;
- char *s;
fp = NULL;
@@ -134,11 +133,7 @@ aout_loadfile(char *filename, vm_offset_t dest, struct preloaded_file **result)
fp = file_alloc();
if (kernel)
setenv("kernelname", filename, 1);
- s = strrchr(filename, '/');
- if (s)
- fp->f_name = strdup(s + 1);
- else
- fp->f_name = strdup(filename);
+ fp->f_name = strdup(filename);
fp->f_type = strdup(kernel ? aout_kerneltype : aout_moduletype);
/* Page-align the load address */
OpenPOWER on IntegriCloud