Bug 7779 - [PATCH] modload should detect stripped kernels and use consistent option names
Summary: [PATCH] modload should detect stripped kernels and use consistent option names
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.2.7-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-08-29 23:30 UTC by rotel
Modified: 2000-08-06 19:47 UTC (History)
0 users

See Also:


Attachments
file.diff (4.27 KB, patch)
1998-08-29 23:30 UTC, rotel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rotel 1998-08-29 23:30:01 UTC
This patch addresses two problems:

 1) modload should fail more intelligently when the kernel has no
    symbols; I inadvertantly forgot the -d argument to strip
    when stripping down the kernel after a config -g and it
    took me a while to figure out what was happening. :)
    
 2) modload should use -N to specify the kernel file as per ps,
    fstat, ccdconfig, dmesg, vmstat, pstat, swapinfo, iostat,
    ncrcontrol, ipcs, netstat, nfsstat and w.  -A is provided
    for backwards compatability.
    
    (ahh, perfection)

How-To-Repeat: 
	strip -d /kernel
	modload -N /kernel /lkm/linux_mod.o
Comment 1 nbm freebsd_committer freebsd_triage 2000-06-23 16:18:44 UTC
State Changed
From-To: open->feedback

Does kldload need these changes, since modload is no more?
Comment 2 nbm freebsd_committer freebsd_triage 2000-08-06 19:47:42 UTC
State Changed
From-To: feedback->closed

Feedback timeout.