Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 19:26:51 -0400
From:      Leo Bicknell <bicknell@ufp.org>
To:        hackers@freebsd.org
Subject:   Re: gcc iussue or ... ?
Message-ID:  <20030411232651.GC55653@ussenterprise.ufp.org>
In-Reply-To: <3E972F3E.8E86140E@mindspring.com>
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>

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

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



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