This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: building 686->ppc-linux cross compiler with mainline.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]