conf/69821: 'what kernel' doesn't work

Brian Eng brian at midstream.com
Fri Jul 30 12:01:19 PDT 2004


>Number:         69821
>Category:       conf
>Synopsis:       'what kernel' doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 19:00:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Brian Eng
>Release:        5.2.1, with an update to the em driver
>Organization:
MidStream Technologies
>Environment:
>Description:
'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
>How-To-Repeat:
execute 'what /boot/kernel/kernel' 
>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 
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list