From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,67f0256117175577 X-Google-Attributes: gid1164f8,public From: Joe Mario Subject: Re: ld error: Too many GOT entries Date: 1999/07/02 Message-ID: <377D14E3.C2CFFFFD@zk3.dec.com>#1/1 X-Deja-AN: 496534261 Content-Transfer-Encoding: 7bit References: <7le8md$8k9$1@mulga.cs.mu.OZ.AU> To: Fergus Henderson Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.sys.dec Fergus: Your best option is to upgrade to a V4.0x release. The V3.2x stream you're on is no longer supported. If you can't do that, you have some other less desirable options. Since you're barely over the limit (8191 vs 8189), try the following in the application you're linking: - Reduce the number of GOT entries by declaring, where possible, some of the globally visible procedures and variables "static" as you can. (assuming your using C or C++). - Remove any unused definitions for global variables or procedures. Note the compilers in the V4.0x releases will do this for you. Joe Mario Fergus Henderson wrote: > When building a large application on an alpha-dec-osf3.2 system, > using egcs-1.1.2, I'm getting the following error: > > /usr/bin/ld: > Too many GOT entries in object file '/usr/lib/cmplrs/cc/libexc_init.a'; > Found 8191 (6821 locals + 1370 globals) but max is 8189 > collect2: ld returned 1 exit status > > Obviously the code has overflowed some fixed limit. > What can I do about it?