🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Compiling for all IRIX platforms

#397
From: Martin Knoblauch
Date: Tue, 14 Oct 1997 00:00
46 lines
2594 bytes
gandalf@viman.com wrote:
> 
> 
> According to the online docs, using the '-mips1' flag should generate
> an executable that runs on all SGI platforms, but I can't seem
> to get any compilre to produce an executable whose file type is
> 'ELF 32-bit MSB mips-1 dynamic executable MIPS - version 1'.
> Is there anything else to do to generate a 'lowest common denominator'
> executable?  How do I get a compiler to generate a
> 'ELF 32-bit MSB mips-2' executable?  Thanks in advance.
> 
Gandalf,

 the simple/short answer is: you can't generate "mips1" binaries
under 6.2. We dropped support for the R3000 and therefore the
minimum mips-level for 6.2 capable systems is "mips2". As this
is so, all of the system binaries (including crt1.o and crtn.o)
are "misp2". Linking with them will make the resulting executable
automatically "mips2".

 There are two ways to generate "mips1" images:

- compile/link under 5.3. This is the official way and will
  guarantee upward compatibility
- try to build a "mipsABI" binary. These are by definition "mips1".
  Certain restrictions apply to what functions/syscalls you are
  allowed to use in such a program. The libraries for linking
  are located in "/usr/lib/abi". You need to install (at least)
  the following subsystems:

  compiler_dev.sw.abi
  dev.sw.abi

Hope this helps
Martin
-- 
+---------------------------------+-----------------------------------+
|Martin Knoblauch                 | Silicon Graphics GmbH             |
|Manager Technical Marketing      | Am Hochacker 3 - Technopark       |
|Silicon Graphics Computer Systems| D-85630 Grasbrunn-Neukeferloh, FRG|
|---------------------------------| Phone: (+int) 89 46108-179 or -0  |
|http://reality.sgi.com/knobi     | Fax:   (+int) 89 46107-179        |
+---------------------------------+-----------------------------------+
|e-mail: <knobi@munich.sgi.com>   | VM: 6-333-8179 | M/S: IDE-3150    |
+---------------------------------------------------------------------+
Technical Details
Message-ID: <34437BB5.4D70F8C3@munich.sgi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <876783938.25533@dejanews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,be14d883efce22e3
X-Google-Attributes: gid11318c,public
X-Google-Thread: 100159,be14d883efce22e3
X-Google-Attributes: gid100159,public
From: Martin Knoblauch <knobi@munich.sgi.com>
Subject: Re: Compiling for all IRIX platforms
Date: 1997/10/14
Message-ID: <34437BB5.4D70F8C3@munich.sgi.com>
X-Deja-AN: 280487181
References: <876783938.25533@dejanews.com>
To: gandalf@viman.com
Organization: Silicon Graphics GmbH, Am-Hochacker 3, D-85630 Grasbrunn
Newsgroups: comp.sys.sgi.misc,gnu.gcc.help