comp.lang.ada
 help / color / mirror / Atom feed
From: "Stanley R. Allen" <s_allen@hso.link.com>
To: aeg@hiwaay.net, glover@thaad.tecmasters.com
Subject: Re: GOT Overflow On SGI
Date: 1998/11/04
Date: 1998-11-04T00:00:00+00:00	[thread overview]
Message-ID: <36408DDF.5D270BFD@hso.link.com> (raw)
In-Reply-To: 363F9871.815CA2C3@hiwaay.net

Anthony E. Glover wrote:
> 
>   When attempting to make our executable under SGI Ada95 we get
> GOT Overflow errors.  This is nothing new to us and we had worked
> around this problem using XGOT/PIC options under VADS; however, I
> do not see any kind of "-xgot" or "-multigot" options under SGI's
> version.  Do these or similar options exist?  I can get around the
> problem using shared objects, but I'm not sure I'm doing this the
> most straight forward way.  Does anyone have any examples of creating
> and using Ada shared objects under SGI?  Any other suggestions would
> be appreciated also.
> 

The -multigot flag is an option to the new IRIX 6.x linkers.
It can only be used with "n32" or "64" object modules.  You
would need to use one of the latest versions of SGI Ada95 to
create n32 object modules.  To use the -multigot option, you
would need to use the SGI linker instead of the GNU linker.
This is accomplished by using the -gnatlink option (I believe
this an option to the gnatlink and gnatmake programs) to specifiy
that the low-level linker is SGI's "cc" or "CC" command (use the
latter if you are linking in any SGI C++ object modules).  Thus:

    gnatmake main -o main -gnatlink cc -multigot

We are using IRIX 5.3 and VADS (version 621.52.1) and encountering
the GOT overflow problem.  I have not found a solution to this
problem, and was unaware that there was one; my approach currently
has been to try reducing our programs, and hope that one day I can
use the new IRIX linkers.

Please let me know about the XGOT/PIC solution you have used,
or where I can find more information about it.

Thanks.

-- 
Stanley Allen
mailto:s_allen@hso.link.com




      reply	other threads:[~1998-11-04  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-03  0:00 GOT Overflow On SGI Anthony E. Glover
1998-11-04  0:00 ` Stanley R. Allen [this message]
replies disabled

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