From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 30 19:01:19 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DA3E16A4CE for ; Fri, 30 Jul 2004 19:01:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43FCD43D64 for ; Fri, 30 Jul 2004 19:01:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6UJ0N0l066343 for ; Fri, 30 Jul 2004 19:00:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6UJ0N2l066339; Fri, 30 Jul 2004 19:00:23 GMT (envelope-from gnats) Resent-Date: Fri, 30 Jul 2004 19:00:23 GMT Resent-Message-Id: <200407301900.i6UJ0N2l066339@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brian Eng Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF24616A4CE for ; Fri, 30 Jul 2004 18:52:18 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E56A243D58 for ; Fri, 30 Jul 2004 18:52:18 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6UIoENv032193 for ; Fri, 30 Jul 2004 18:50:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i6UIoEh2032192; Fri, 30 Jul 2004 18:50:14 GMT (envelope-from nobody) Message-Id: <200407301850.i6UIoEh2032192@www.freebsd.org> Date: Fri, 30 Jul 2004 18:50:14 GMT From: Brian Eng To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: conf/69821: 'what kernel' doesn't work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2004 19:01:19 -0000 >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: