This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sparc64-linux busted as a cross compiler
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 22 Sep 2002 18:55:17 +0200
- Subject: Re: sparc64-linux busted as a cross compiler
- References: <20020923002549.N14457@bubble.sa.bigpond.net.au>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Sep 23, 2002 at 12:25:49AM +0930, Alan Modra wrote:
> I thought I'd look into some of the reported sparc64 binutils
> problems, but have run into difficulties building an x86-linux to
> sparc64-linux cross compiler.
>
> /usr/local/sparc64-linux/bin/ld: /usr/lib/crti.o: Relocations in generic ELF (EM: 3)
> /usr/lib/crti.o: could not read symbols: File in wrong format
>
> Ick. My cross-compiler wants to use x86 crti.i??? Not hard to see
> why, looking at the hard-coded paths in sparc/linux64.h STARTFILE_SPEC
> and ENDFILE_SPEC. Here's a suggestion that works for me building
> crosscompilers (I can't test native).
See the patch I posted on Friday for this.
Jakub