mips64 notes

Atsushi Nemoto anemo at mba.ocn.ne.jp
Wed Nov 15 16:30:55 UTC 2006

On Wed, 15 Nov 2006 11:17:15 +0900 (JST), Atsushi Nemoto <anemo at mba.ocn.ne.jp> wrote:
> Some notes for mips64:
> Now we can compile uClibc for mips64 (select one of "MIPS III", "MIPS
> IV" and "MIPS64" for "Target Processor Architecture", and select one
> of "N64 ABI" and "N32 ABI" for "Target ABI").

One more:

mips64-*-linux-gcc's default ABI is N32.  If you configured gcc with
--disable-multilib, only N32 version of libgcc is available.  So you
should select "N32 ABI" (and "MIPS III" at least) for uClibc.


I suppose it will fix this build error in "uClibc buildlog for
20061115 snapshot (svn r16532)":

libc/libc_so.a(lldiv.os): In function `imaxdiv':
lldiv.c:(.text+0x3c): undefined reference to `__divdi3'
lldiv.c:(.text+0x68): undefined reference to `__moddi3'

Because __divdi3 and __moddi3 (helper functions for 64bit calculation
on 32bit platform) are only in O32 libgcc.

Atsushi Nemoto

More information about the uClibc mailing list