Subject: Re: cross/sh-netbsdcoff issue with libgcc.a
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: SAITOH Masanobu <masanobu@iij.ad.jp>
List: tech-pkg
Date: 01/09/2001 20:33:48
> with cross/sh-netbsdcoff (big endian) build, libgcc.a contains little
> endian *.o by mistake. they were generated from "libgcc1-asm.a" target
> in egcs-1.1.1/gcc/Makefile.
>
> >_udivmoddi4.o: Hitachi SH big-endian COFF object, stripped
> >_udivsi3.o: Hitachi SH little-endian COFF object, stripped
> >_umoddi3.o: Hitachi SH big-endian COFF object, stripped
It's known (and long standing) bug. I'm sorry I am not examining the cause
in detail. But, you can avoid it by modifying build-sh3.{eb|el} scripts like:
make AR=$TARGET-ar AS="$TARGET-as -big" CC=$TARGET-gcc (if big)
make AR=$TARGET-ar AS="$TARGET-as -little" CC=$TARGET-gcc (if little)
Please test it.
----------------------------------------------------------
SAITOH Masanobu (masanobu@iij.ad.jp
msaitoh@netbsd.org)