This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
building 686->ppc-linux cross compiler with mainline.
- To: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
- Subject: building 686->ppc-linux cross compiler with mainline.
- From: "Rob Taylor" <robt at flyingpig dot com>
- Date: Tue, 5 Jun 2001 12:36:07 +0100
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}"
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?
Thanks to anyone who can help me :)
Rob Taylor
"Dream as if you'll live forever, live as if you'll die today."