Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* ld error: Too many GOT entries
@ 1999-06-30  4:00 Fergus Henderson
  1999-07-02  4:00 ` Joe Mario
  0 siblings, 1 reply; 2+ messages in thread
From: Fergus Henderson @ 1999-06-30  4:00 UTC (permalink / raw)


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?

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ld error: Too many GOT entries
  1999-06-30  4:00 ld error: Too many GOT entries Fergus Henderson
@ 1999-07-02  4:00 ` Joe Mario
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 1999-07-02  4:00 UTC (permalink / raw)
  To: Fergus Henderson

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?




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-07-02  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-30  4:00 ld error: Too many GOT entries Fergus Henderson
1999-07-02  4:00 ` Joe Mario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox