🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #387

Re: Need help with generating SGI N32 objects by GCC 2.8.1

#387
From: Pim van Riezen
Date: Sat, 21 Nov 1998 00:00
29 lines
2014 bytes
Victor Danilchenko wrote:
> 
>         Hi,
>         This is probably a really stupid question, but I was unable to find an
> answer to it, despite looking though both GCC manuals (and install
> notes), and searching the Dejanews. I have a feeling that the answer is
> right in front of me, but I can't find it...
> 
>         Here is what happens. Some C++ code I am compiling has to be linked
> against libstdc++ (obviously), which is an archive of N32 objects.
> Trouble is, the object files I am generating, are all O32. When I try to
> pass what I *THINK* is the right flag to g++ (-Wa,-n32), assembler
> complaint and does not generate ANY code.

I think your trouble is with which assembler is invoked for which ABI.
For n32, gcc needs to invoke the SGI assembler, for o32 it somehow needs
the gnu assembler I think. Toy a bit with that. Also, I think the
correct flag for gcc2.8.x is -mabi=n32 if you want n32 output.

Pim

-- 
"I'm at the corner of Walk and Don't Walk, where shall we meet?"

Operations - SaltLake.UT.US.Undernet.Org 
Channel LART - #linux Undernet 
Programmer sometimes LART - Microhill Automation
Cat5 Monkey - Webcity / Internet Facilities Europe
Eerie-eyed Visionair Software Developer - StealthTech Networking
Technical Details
Message-ID: <365685B2.8BEDD509@webcity.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36558167.BDE7DCBC@cs.umass.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,1985a6966dc11519
X-Google-Attributes: gid11318c,public
X-Google-Thread: 100159,1985a6966dc11519
X-Google-Attributes: gid100159,public
From: Pim van Riezen <pim@webcity.nl>
Subject: Re: Need help with generating SGI N32 objects by GCC 2.8.1
Date: 1998/11/21
Message-ID: <365685B2.8BEDD509@webcity.nl>
X-Deja-AN: 414153885
X-NNTP-Posting-Host: dc2-isdn746.dial.xs4all.nl [194.109.150.234]
Content-Transfer-Encoding: 7bit
References: <36558167.BDE7DCBC@cs.umass.edu>
X-XS4ALL-Date: Sat, 21 Nov 1998 10:25:13 CET
Content-Type: text/plain; charset=us-ascii
Organization: XS4ALL, networking for the masses
Mime-Version: 1.0
Newsgroups: comp.sys.sgi.misc,gnu.gcc.help