From owner-freebsd-current Mon Apr 5 18:38:43 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 8AED2151F4 for ; Mon, 5 Apr 1999 18:38:41 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id VAA42992 for ; Mon, 5 Apr 1999 21:36:17 -0400 (EDT) Date: Mon, 5 Apr 1999 21:36:16 -0400 (EDT) From: Brian Feldman X-Sender: green@janus.syracuse.net To: current@freebsd.org Subject: EGCS breaks what(1) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Okay, let me be a little clearer ;) What(1) on the kernel no longer works because previously, the char sccs[] = { '@', '(', '#', ')' }; char version[] = blahhhfoooooo; Was contiguous. However, nowadays, nice EGCS pads 4 bytes (WHY?!?!) between those. So it appears "@(#)\0\0\0\0FreeBSD....." in the binary. Of course, strings are null-terminated... :P I don't know why EGCS does this! Brian Feldman _ __ ___ ____ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \__ \ |) | http://www.freebsd.org _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message