From: snowball3 AT bigfoot DOT com (Mark E.) Newsgroups: comp.os.msdos.djgpp Subject: Re: A bug Date: Sun, 08 Aug 1999 19:04:31 GMT Organization: Snowball's Web Message-ID: <37add319.1812746@news3.ibm.net> References: X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.37.91.184 X-Trace: 8 Aug 1999 19:03:51 GMT, 129.37.91.184 Lines: 21 X-Notice: Items posted that violate the IBM.NET Acceptable Use Policy X-Notice: should be reported to postmaster AT ibm DOT net X-Complaints-To: postmaster AT ibm DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > >On Sat, 7 Aug 1999, Endlisnis wrote: > >> Well, I can't seem to recreate it, so it was probably my >> imagination, but I did notice that static array values are loaded >> from the executable, which makes this program over 40Megs as an >> executable: >You probably compiled this as a C++ program, because C programs don't >have this misfeature. See section 8.12 of the FAQ for a work-around. This was discussed on one of the egcs mailing lists not too long ago. The fix is to add a statement to DJGPP's config file in gcc that tells gcc the name of the bss section. The fix is now in the gcc CVS and I think Andris will be using it in his gcc 2.95 binary. Mark -- Mark E.: snowball3 AT bigfoot DOT com http://snowball.frogspace.net/