Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Apr 1999 09:25:33 -0400
From:      "John R. LoVerso" <loverso@sitaranetworks.com>
To:        Matthew Dillon <dillon@apollo.backplane.com>, current@FreeBSD.ORG
Subject:   Re: EGCS breaks what(1)
Message-ID:  <370A0B4D.2A710364@sitara.net>
References:  <Pine.BSF.4.05.9904052133460.42766-100000@janus.syracuse.net> <199904060156.SAA84557@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>     'what' is broken.  C does not impose any sort of address ordering
>     restriction on globals or autos that are declared next to each other.

Right, except that 'what' isn't broken.  It is vers.c (and conf/newvers.sh)
that is broken, believing that the two variables will be allocating in 
contiguous memory.

Changing newvers.sh to generate
	char sccs[] = "@(" "#)" "FreeBSD ...";
	char version = "FreeBSD ...";
will make "what" on the kernel work again, at the expense of about 100
duplicated
bytes.

The real question is whether the extreme alignment and padding used by EGCS can
be turned off, especially for 486s.

John


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?370A0B4D.2A710364>