| Summary: | 'what kernel' doesn't work | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Brian Eng <brian> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->patched I've just committed a fix to HEAD (dropped sccspad[] and duplicated part of version[] in sccs[] explicitly) and will MFC it in a week or so. State Changed From-To: patched->closed Committed and MFC'ed |
'what kernel' doesn't print the version[] string, does print a revision header from if_em_hw.h if that file is rev 1.13 or later Fix: 1) Change sccspad[] initializer in sys/conf/newvers.h from { '\0' } to something non-zero. sccspad[] is supposed to pad so that sccs[] is right before version[]. What is happening is that the compiler is recognizing that sccspad[] is all zeroes and is putting it with the other variables that are initialized to zero (.bss) instead of with sccs[] and version[] (.data). See 'objdump -t vers.o'. 2) Remove the 'what' key string ("@(#)") in if_em_hw.h How-To-Repeat: execute 'what /boot/kernel/kernel'