gcc iussue or ... ?
Leo Bicknell
bicknell at ufp.org
Fri Apr 11 16:26:52 PDT 2003
In a message written on Fri, Apr 11, 2003 at 02:10:22PM -0700, Terry Lambert 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.
--
Leo Bicknell - bicknell at ufp.org - CCIE 3440
PGP keys at http://www.ufp.org/~bicknell/
Read TMBG List - tmbg-list-request at tmbg.org, www.tmbg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030411/47a9314a/attachment.bin
More information about the freebsd-hackers
mailing list