comp.lang.ada
 help / color / mirror / Atom feed
* GOT Overflow On SGI
@ 1998-11-03  0:00 Anthony E. Glover
  1998-11-04  0:00 ` Stanley R. Allen
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony E. Glover @ 1998-11-03  0:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

Hello,

  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.

Thanks,
Tony
aeg@hiwaay.net
glover@thaad.tecmasters.com

[-- Attachment #2: Card for Anthony E. Glover --]
[-- Type: text/x-vcard, Size: 274 bytes --]

begin:          vcard
fn:             Anthony E. Glover
n:              Glover;Anthony E.
org:            ELMCO, Inc.
email;internet: aeg@hiwaay.net
title:          Senior Software Engineer
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


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

* Re: GOT Overflow On SGI
  1998-11-03  0:00 GOT Overflow On SGI Anthony E. Glover
@ 1998-11-04  0:00 ` Stanley R. Allen
  0 siblings, 0 replies; 2+ messages in thread
From: Stanley R. Allen @ 1998-11-04  0:00 UTC (permalink / raw)
  To: aeg, glover

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




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

end of thread, other threads:[~1998-11-04  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-03  0:00 GOT Overflow On SGI Anthony E. Glover
1998-11-04  0:00 ` Stanley R. Allen

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