Subject: Re: cross/sh-netbsdcoff issue with libgcc.a
To: SAITOH Masanobu <masanobu@iij.ad.jp>
From: None <itojun@iijlab.net>
List: port-sh3
Date: 01/09/2001 21:11:49
> > 	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.

	my problem happens while I'm building pkgsrc/cross/sh-netbsdcoff
	itself, so changing build-sh3.{eb,el} does not help...

itojun