🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jyrki Kuoppala Thu, 08 Jun 1989 21:34
GNU ld for Sony news
#1660
Author: Jyrki Kuoppala
Date: Thu, 08 Jun 1989 21:34
52 lines
1840 bytes
The following diff needs to be applied to get GNU ld compiled and
apparently working on a Sony workstation running Sony's BSD 4.3
derivative.

Also, gprof complains about the missing vsprinf and vfprintf calls.  I
haven't fixed this.

gcc -O -o gprof gprof.o getopt.o
gprof.c:2404: Undefined symbol _vfprintf referenced from text segment
gprof.c:2443: Undefined symbol _vsprintf referenced from text segment
gprof.c:2660: Undefined symbol _vfprintf referenced from text segment

Here's the diff:

//Jyrki

*** /usr/ressu/users/jkp/ld.c	Thu Jun  8 21:00:23 1989
--- ld.c	Thu Jun  8 20:58:55 1989
***************
*** 100,106 ****
  /* Ordinary 4.3bsd lacks these macros in a.out.h.  */
  
  #ifndef N_TXTADDR
! #ifdef vax
  #define N_TXTADDR(X) 0
  #endif
  #ifdef is68k
--- 100,106 ----
  /* Ordinary 4.3bsd lacks these macros in a.out.h.  */
  
  #ifndef N_TXTADDR
! #if defined(vax) || defined(sony_news)
  #define N_TXTADDR(X) 0
  #endif
  #ifdef is68k
***************
*** 109,115 ****
  #endif
  
  #ifndef N_DATADDR
! #ifdef vax
  #define N_DATADDR(x) \
  	(((x).a_magic==OMAGIC)? (N_TXTADDR(x)+(x).a_text) \
  	: (page_size+((N_TXTADDR(x)+(x).a_text-1) & ~(page_size-1))))
--- 109,115 ----
  #endif
  
  #ifndef N_DATADDR
! #if defined(vax) || defined(sony_news)
  #define N_DATADDR(x) \
  	(((x).a_magic==OMAGIC)? (N_TXTADDR(x)+(x).a_text) \
  	: (page_size+((N_TXTADDR(x)+(x).a_text-1) & ~(page_size-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