This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Multiple libgcc builds for MIPS target
- From: jon at siliconcircus dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 20:00:23 +0200 (CEST)
- Subject: Multiple libgcc builds for MIPS target
Hi,
I'm building a cross compiler for an x86 host/build system and a MIPS
target. Ideally, I'd like to be able to target both MIPS32 and MIPS64 -
and no matter whether I configure gcc with mips32-*-elf or mips64-*-elf,
the resulting compiler seems capable of producing assembler for both
platforms. However, when it comes to linking with libgcc, the error
message "ISA mismatch (-mips32) with previous modules (-mips3)" (or
similar) appears.
MIPS32 and MIPS64 do indeed have different ABIs, so this message is
understandable - but results only because gcc is compiling libgcc only for
the architecture it's configured for. So, my question: Is it possible to
persuade gcc to compile both MIPS32 and MIPS64 versions of libgcc.a, or do
I need to compile two gccs (one for 32, one for 64) in order to achieve my
goal of targeting both architectures?
--
Jon Bright