Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Joe Mario <mario@zk3.dec.com>
To: Fergus Henderson <fjh@cs.mu.oz.au>
Subject: Re: ld error: Too many GOT entries
Date: 1999/07/02	[thread overview]
Message-ID: <377D14E3.C2CFFFFD@zk3.dec.com> (raw)
In-Reply-To: 7le8md$8k9$1@mulga.cs.mu.OZ.AU

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?




      reply	other threads:[~1999-07-02  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-30  4:00 ld error: Too many GOT entries Fergus Henderson
1999-07-02  4:00 ` Joe Mario [this message]
read-only archive

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