This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: building 686->ppc-linux cross compiler with mainline.
- To: "Rob Taylor" <robt at flyingpig dot com>
- Subject: Re: building 686->ppc-linux cross compiler with mainline.
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 05 Jun 2001 09:55:41 -0700
- CC: gcc at gcc dot gnu dot org
- References: <000001c0edb3$b64136f0$9c00a8c0@highend.co.uk>
"Rob Taylor" <robt@flyingpig.com> writes:
> I'm currently building a 686->ppc-linux cross compiler with the mainline current
> snapshot.
> problems I've hit so far:
> the ppc build seems to build two types of crt objects , scrt?.o for SVR4 systems
> and ecrt?.o for EABI systems. STARTFILE_LINUX and ENDFILE_LINUX are defined like
> so:
>
> #define STARTFILE_LINUX_SPEC "\
> %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
> %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} \
> %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
>
> #define ENDFILE_LINUX_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} \
> %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}"
>
> Am i correct in thinking that these should be defined like this under this
> scheme:
> (note, currently no crt?.o files get built)
>
> #define STARTFILE_LINUX_SPEC "\
> %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:scrt1.o%s}}} \
> %{mnewlib: ecrti.o%s} %{!mnewlib: scrti.o%s} \
> %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
>
> #define ENDFILE_LINUX_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} \
> %{mnewlib: ecrtn.o%s} %{!mnewlib: scrtn.o%s}"
These are for Linux using newlib. The definitions for linux using
glibc are in linux.h.
> Problem no.2 i've hit is that the xgcc generated is configured to run 'as'
> rather than 'pcc-linux-as' - can anyone tell me how the choice of assembler is
> configured?
This doesn't happen to me. If you specify --target=ppc-linux it
should run ppc-linux-as.
--
- Geoffrey Keating <geoffk@geoffk.org>