From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16507 invoked from network); 27 Mar 2000 02:40:43 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 27 Mar 2000 02:40:43 -0000 Received: from piglet.twiddle.net (piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA29356 for ; Sun, 26 Mar 2000 21:40:42 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.9.3/8.9.3) id SAA23639 for axp-list@redhat.com; Sun, 26 Mar 2000 18:40:33 -0800 Date: Sun, 26 Mar 2000 18:40:33 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: Alpha linker problems Message-ID: <20000326184033.A23576@twiddle.net> References: <200003261741.JAA26392@icarus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <200003261741.JAA26392@icarus.com> On Sun, Mar 26, 2000 at 09:41:08AM -0800, Stephen Williams wrote: > I don't understand what the .got section is, why it is limited to 64K > and why my code so thoroughly overflows that section. The .got section stores addresses of symbols. It consists of a number of subsections, each limited to 64k, because that's how much one can address with one memory instruction. Each object file may reference only one of these subsections, thus each object file is limited to 64k. As to why your code requires so many symbol address loads, one would have to examine the code to be sure. Note that there are several techniques that can be applied to reduce the number of symbol addresses needed by a program. GCC does not employ all of these, mostly because GAS lacks the ability to emit all of the relocations. Since CCC emits object files directly, it does not suffer from this restriction. You may have better success with that. Of course, Compaq's C++ compiler isn't released yet, but I recently heard noises about "soon". There are also .got reduction strategies that can be done at link time. You might try getting the most recent binutils (2.9.5.0.31?) and using `g++ -Wl,-relax'. r~