🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51614

GCC 2.3.3 under Sony MIPS NEWS 5.02

#51614
From: castor fu
Date: Fri, 23 Apr 1993 15:27
42 lines
2581 bytes
[I posted this before, but there is some new information, and I think
this wasn't propogating beyond this machine]

Has anyone gotten gcc 2.3.3 running on the MIPS based Sony NEWS
machines running 5.02, using shared libraries?  I'm running on a NEWS
3250  with internal release version 29.2, which is slightly ahead of
5.02.  The compiler set is based on mips 3.0 compilers.

I tried using the nws3250 files which were there, since they seemed 
more oriented towards SVR4, but there were a few  glitches, one about
the definition of sig_syslist, and another about failing to load
the object file manipulation libraries libmld.a.  Also the linker needed to be
explicitly told to generate elf objects.

Making these minor changes I compiled gcc, but have encountered some odd
problems.  Simple programs like :

	main() { printf("Hello\n"); exit(0);} 

worked, but something like :

	main() { int i; for (i=0; i < 5; i++) printf("Hello\n"); exit(0);} 

would dump core with a bus error.
(Neglecting the exit(0) would also cause the program to die with a segmentation
fault, but I figure this is a comparatively minor problem. . .)

I  tried taking the '.s' file that was generated by gcc -S, and running
it on a SGI and a DECstation, because the code looked reasonable, and
after deleting an unneeded call to __main, these both worked just fine.

After looking at it some more,  I realized that GCC was not including the
'.livereg' assembler directives which is probably important for properly
using shared libraries.  Telling GCC to tell the linker to NOT use shared
libraries made everything work great.  Unfortunately, a number of my libraries
are only in their shared library form. . . 

Has anyone made the patches to generate the 'livereg' opcodes?  Anyone know
exactly what they do?

--
Castor Fu, (foo@leland.stanford.edu)
Technical Details
Message-ID: <1993Apr23.152706.17129@leland.Stanford.EDU>
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!agate!headwall.Stanford.EDU!nntp.Stanford.EDU!foo

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e9fe854b32273781,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1051a8,e9fe854b32273781,start
X-Google-Attributes: gid1051a8,public
X-Google-ArrivalTime: 1993-04-23 12:09:54 PST
Newsgroups: gnu.gcc.help,comp.sys.mips
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!agate!headwall.Stanford.EDU!nntp.Stanford.EDU!foo
From: foo@leland.Stanford.EDU (castor fu)
Subject: GCC 2.3.3 under Sony MIPS NEWS 5.02
Message-ID: <1993Apr23.152706.17129@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Organization: DSG, Stanford University, CA 94305, USA
Distribution: na
Date: Fri, 23 Apr 93 15:27:06 GMT
Lines: 43