🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andy Fyfe Sun, 11 Jun 1989 23:49
patch for gnu ld
#1667
Author: Andy Fyfe
Date: Sun, 11 Jun 1989 23:49
46 lines
1712 bytes
to have ld make a 68010 binary unless there are any 68020 binaries
being linked in (in which case the result is also 68020) when
running on a sun2/sun3.

*** save/ld.c	Sun Jun 11 16:04:32 1989
--- ld.c	Sun Jun 11 16:27:50 1989
***************
*** 124,134 ****
  #define INITIALIZE_HEADER \
    {outheader.a_machtype = M_SPARC; outheader.a_toolversion = 1;}
  #endif
- #if defined(mc68010) || defined(m68010)
- #define INITIALIZE_HEADER outheader.a_machtype = M_68010
- #endif
  #ifndef INITIALIZE_HEADER
! #define INITIALIZE_HEADER outheader.a_machtype = M_68020
  #endif
  #endif
  #ifdef is68k
--- 124,132 ----
  #define INITIALIZE_HEADER \
    {outheader.a_machtype = M_SPARC; outheader.a_toolversion = 1;}
  #endif
  #ifndef INITIALIZE_HEADER
! static int sun_machine_type = M_68010;
! #define INITIALIZE_HEADER outheader.a_machtype = sun_machine_type
  #endif
  #endif
  #ifdef is68k
***************
*** 1415,1420 ****
--- 1413,1426 ----
      fatal_with_file ("failure reading header of ", entry);
    if (N_BADMAG (*loc))
      fatal_with_file ("bad magic number in ", entry);
+ 
+ #if defined(sun) && !defined(sparc)
+   if (loc->a_machtype == M_68020)
+     {
+       sun_machine_type = M_68020;
+       INITIALIZE_HEADER;
+     }
+ #endif
  
    entry->header_read_flag = 1;
  }
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads