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]
Other format: [Raw text]

Re: sparc64-linux busted as a cross compiler


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


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