Subject: Re: Cross compile from NetBSD/i386?
To: None <Ian.Dall@dsto.defence.gov.au>
From: Scott Ellis <scotte@warped.com>
List: port-sun3
Date: 01/14/1997 19:03:39
In "Re: Cross compile from NetBSD/i386?", Ian Dall
<Ian.Dall@dsto.defence.gov.au> wrote: 
> wrstuden@loki.stanford.edu (Bill Studenmund) writes:
> 
>   >> 
>   >> Ian Dall writes:
>   >> > Scott Ellis <scotte@warped.com> writes:
>   >> >
>   >> >   > It was suggested to try NetBSD's as and ld, but I have a feeling these
>   >> >   > won't be fun to build in a cross-compile environment. ;-) 
>   >> > 
>   >> > It isn't *too* bad. I can give you patches for the NetBSD as and ld if you
>   >> > want. The cross endian support is in there but broken.
>   >> 
>   >> This would be fantastic.  I don't want to reinvent the wheel if you've
>   >> already figure out what's broken. ;-)

Your patches worked great Ian, thanks!

The only "problem" I have with them is that 'ldd' doesn't want to
admit that the binary is dynamically linked.  The compiled binaries
run on an m68k machine, so ld.so (or crt0.o) can find the libs just fine,
however ldd insists that this is not a dynamically linked binary.

Any ideas?  Is this simply a magic number problem, or is there something
screwey going on here?

(BTW, I've built the majority of the Sun3 source tree with the cross
compiler,
and it seems to run just fine and dandy.  I can't get libc built due to
a complaing about a macro in SYS.h..although I think that may just be
something
in bsd.*.mk that I messed up.)

-- 
   //////////////////////////////////////////////////////////////////////
  //    Scott Ellis     //   scotte@warped.com   //   sellis@gi.com   //
 //////////////////////////////////////////////////////////////////////
// WARNING: This signature warps  time and space in its vicinity    //