[gnu.utils.bug] Fix to ld for Sun-2's

root@cheers.uucp (Hacker Extraordinaire) (10/27/88)

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