🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1392

Fix to ld for Sun-2's

#1392
From: Hacker Extraordinaire
Date: Wed, 26 Oct 1988 18:13
26 lines
1223 bytes
The following patch got ld working for me... (Sun2/SunOS4)
The misc if'ing is for:  Old gcc (m68010 or such), Newer gcc (mc68010 on Suns)
and SunOS 4.0 (TARGET==SUN2).
Without this, ld produced only 68020 executables on my Sun-2.

*** ld.c.~1~	Wed Sep 14 16:19:50 1988
--- ld.c	Wed Oct 26 11:02:48 1988
***************
*** 206,212 ****
--- 206,216 ----
  
  /* Define how to initialize system-dependent header fields.  */
  #ifdef sun
+ #if defined(mc68010) || defined(m68010) || ( TARGET == SUN2 )
+ #define INITIALIZE_HEADER outheader.a_machtype = M_68010
+ #else
  #define INITIALIZE_HEADER outheader.a_machtype = M_68020
+ #endif
  #endif
  #ifdef hpux
  #define INITIALIZE_HEADER outheader.a_machtype = HP9000S200_ID


-- 
Greg Onufer .. University of the Pacific .. Focus Semiconductor
.. exodus@cheers.uucp .. sun!daver!cheers!exodus .. 415-965-0604
Technical Details
Message-ID: <202@cheers.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!mailrus!ames!vsi1!daver!cheers!root

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!mailrus!ames!vsi1!daver!cheers!root
From: root@cheers.uucp (Hacker Extraordinaire)
Newsgroups: gnu.utils.bug
Subject: Fix to ld for Sun-2's
Message-ID: <202@cheers.uucp>
Date: 26 Oct 88 18:13:43 GMT
Distribution: gnu
Organization: Cheers Bar & Grill, Boston
Lines: 26