Subject: Re: binutils 2.9.1 TESTERS NEEDED /macppc
To: Todd Vierling <tv@pobox.com>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: tech-toolchain
Date: 02/04/1999 23:56:14
On Thu, Feb 04, 1999 at 17:34:05 -0500, Todd Vierling wrote:
> On Thu, 4 Feb 1999, Erik Bertelsen wrote:
> 
> : g3 ld -shared -o libx.so x1.o
> 
> Oops.  This should have been "cc -shared."  This is the difference between
> crt{begin,end}S and no crt{begin,end}S.
> 


Ok, now it is:

g3 cc -shared -o libx.so x1.o
g3 c++ -o x x2.cc -L. -lx
/usr/lib/libstdc++.so: warning: reference to compatibility vfork(); include <unistd.h> for correct reference
g3 env LD_LIBRARY_PATH=. ./x
42

and on the pmax:

sok cc -shared -o libx.so x1.o
/usr/bin/ld: Warning: type of symbol `_gp_disp' changed from 1 to 3 in /usr/lib/libc.so
sok c++ -o x x2.cc -L. -lx > /tmp/x 2>&1
sok env LD_LIBRARY_PATH=. ./x
42

(and /tmp/x contains 79 lines beginning with these:
/usr/bin/ld: Warning: type of symbol `_init' changed from 1 to 2 in /usr/lib/crtbegin.o
/usr/bin/ld: Warning: type of symbol `_fini' changed from 1 to 2 in /usr/lib/crtbegin.o
/usr/bin/ld: Warning: type of symbol `main' changed from 1 to 2 in /tmp/ccpzTvTO.o
/usr/bin/ld: Warning: type of symbol `_gp_disp' changed from 1 to 3 in ./libx.so
/usr/bin/ld: Warning: type of symbol `sinh' changed from 1 to 2 in /usr/lib/libm
)
 

are you happy now :-)

- Erik