Article View: gnu.utils.bug
Article #126Re: cross development of binutils
From: Rune Nerg}rd
Date: Fri, 10 Apr 1992 09:28
Date: Fri, 10 Apr 1992 09:28
31 lines
1819 bytes
1819 bytes
In article <1992Apr9.035515.27379@tera.com> rrh@tera.com (Robert R. Henry) writes:
> I'm trying to build a minimal set of gnu cc compiler tools (gcc-2.1,
> gas, binutils-1.9/{ar,ranlib,ld,nm}) that will run on a sparc but
> manipulate sun3 binaries.
>
> gcc-2.1 is designed for doing this.
>
> binutils-1.9 is not.
>
> For example, ld includes <a.out.h>, which on a sun4, trapses through
> /usr/include/machine/a.out, which through symbolic links eventually
> comes back to /usr/include/sun4/a.out, which is not what I'd like to
> build a ld that knows about sun3 binaries.
>
> Has anybody built these binutils tools for such a cross develoment
> environment?
Just copy your favorit a.out to the binutils-1.9 directory, and add -I. in
front of the CFLAGS variable in the Makefile. I did that and links files
for a standalone card containing a NS32K, from a DECstation. This worked
for ld. For nm, ar, and ranlib, you may have to copy more includefiles,
such as ar.h (I dont know if they are are identical on sun3 and sun4, I'm
using the one from dec ;). Just remember that the targetmachine and the
machine you are doing the linking on must be the same byte-order.
Rune
------
Rune Nergaard runene@ifi.uio.no (Internet)
Institute of Informatics ..!uunet!ifi!runene (UUCP)
University of Oslo, Norway
Technical Details
Message-ID:
<CMM.0.90.2.702898091.runene@svarten.ifi.uio.no>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ifi.uio.no!runeneReferences:
runene@ifi.uio.no (Rune Nerg}rd)Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ifi.uio.no!runene From: runene@ifi.uio.no (Rune Nerg}rd) Subject: Re: cross development of binutils Message-ID: <CMM.0.90.2.702898091.runene@svarten.ifi.uio.no> Sender: gnulists@ai.mit.edu Organization: Dept. of Informatics, University of Oslo, Norway References: runene@ifi.uio.no (Rune Nerg}rd) Distribution: gnu Date: Fri, 10 Apr 1992 09:28:11 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 32