[gnu.utils.bug] GNU ld for Sony news

jkp@SAUNA.HUT.FI (Jyrki Kuoppala) (06/09/89)

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))))