Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 18:50:14 GMT
From:      Brian Eng <brian@midstream.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/69821: 'what kernel' doesn't work 
Message-ID:  <200407301850.i6UIoEh2032192@www.freebsd.org>
Resent-Message-ID: <200407301900.i6UJ0N2l066339@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407301850.i6UIoEh2032192>