From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,33ea720ab976ac27 X-Google-Attributes: gid103376,public From: "Stanley R. Allen" Subject: Re: GOT Overflow On SGI Date: 1998/11/04 Message-ID: <36408DDF.5D270BFD@hso.link.com>#1/1 X-Deja-AN: 408355535 Content-Transfer-Encoding: 7bit References: <363F9871.815CA2C3@hiwaay.net> To: aeg@hiwaay.net, glover@thaad.tecmasters.com Content-Type: text/plain; charset=us-ascii Organization: NASA, Kennedy Space Center Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-04T00:00:00+00:00 List-Id: 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