🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1660

GNU ld for Sony news

#1660
From: 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))))
Technical Details
Message-ID: <8906082134.AA10471@cs.hut.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!SAUNA.HUT.FI!jkp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!SAUNA.HUT.FI!jkp
From: jkp@SAUNA.HUT.FI (Jyrki Kuoppala)
Newsgroups: gnu.utils.bug
Subject: GNU ld for Sony news
Message-ID: <8906082134.AA10471@cs.hut.fi>
Date: 8 Jun 89 21:34:59 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Helsinki University of Technology, Finland.
Lines: 52