From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2743 invoked from network); 29 Jun 1998 22:16:43 -0000 Received: from dot.cygnus.com (205.180.230.224) by mail2.redhat.com with SMTP; 29 Jun 1998 22:16:43 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.8.5/8.8.5) id PAA01869; Mon, 29 Jun 1998 15:20:27 -0700 Message-ID: <19980629152027.D1709@dot.cygnus.com> Date: Mon, 29 Jun 1998 15:20:27 -0700 From: Richard Henderson To: axp-list@redhat.com Subject: Re: malloc oddity? Reply-To: Richard Henderson References: <199806292010.QAA09705@linux01.hlo.dec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Mike Tripicco on Mon, Jun 29, 1998 at 05:39:48PM -0400 On Mon, Jun 29, 1998 at 05:39:48PM -0400, Mike Tripicco wrote: > The problem relates to some legacy Fortran code I've inherited which > allows Fortran to do dynamic memory allocation. The trick involves Fortran > handling the offset between the location of a common block set by the > Fortran code and the location of the malloc'd memory. That offset is used > by Fortran and thus must fit in a 4-byte integer. In this case that's > impossible. Ah hah. You can disable this ordinarily quite useful feature of malloc by calling mallopt(M_MMAP_MAX, 0); in your startup code. See . > However, it looks to me like if the GNU linker had an option equivalent to > Digital's "-taso" I'd be able to avoid the problem: Yes, well, no one has had the incentive to work on that. It would probably take about 2 months of work. r~