From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 11 16:26:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73DAA37B401 for ; Fri, 11 Apr 2003 16:26:52 -0700 (PDT) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD72A43FAF for ; Fri, 11 Apr 2003 16:26:51 -0700 (PDT) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.12.8/8.12.8) id h3BNQpu9056089 for hackers@freebsd.org; Fri, 11 Apr 2003 19:26:51 -0400 (EDT) Date: Fri, 11 Apr 2003 19:26:51 -0400 From: Leo Bicknell To: hackers@freebsd.org Message-ID: <20030411232651.GC55653@ussenterprise.ufp.org> Mail-Followup-To: hackers@freebsd.org References: <5.2.0.9.2.20030411082040.02604e90@194.184.65.4> <5.2.0.9.2.20030411221904.011c5ec8@194.184.65.4> <3E972F3E.8E86140E@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: <3E972F3E.8E86140E@mindspring.com> Organization: United Federation of Planets X-PGP-Key: http://www.ufp.org/~bicknell/ Subject: Re: gcc iussue or ... ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 23:26:52 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In a message written on Fri, Apr 11, 2003 at 02:10:22PM -0700, Terry Lamber= t wrote: > Someone has already pointed out that one of the .o files is, in > fact, handling uninitialized data differently on FreeBSD and Linux, > so this is the source of your problem. I thought it was the lowest > priority possibility, but I guess I was wrong. As the one who pointed it out, I'll remind you there are still two possibilities. 1) The programmer is using a system constant (eg, FILENAME_MAX from stdio.h) to size some data structure, and the size of that constant is wildly different on FreeBSD than Linux. 2) The FreeBSD version is storing the (presumably zero filled) data in the executable rather than allowing them to be initialized in zero filled pages (.data vrs .bss, I believe). In my first post you'll notice there are, humm, 4 or 5 symbols that make up all the space (2M and several 5M, I believe). I wasn't going to study the code for them enough to see if they rely on system constants are or declared global. The author should look at those 4-5 symbols very closely and see about runtime allocation, or if they depend on system constants. --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+l087Nh6mMG5yMTYRAsrhAJ9RY2lLFV091c5CeMyat0m29uCFJwCeLuN3 I6rsaHODW/5ZsetzkWRobo4= =v+JD -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--