Possible ARM binutils/gcc errors...

Russell King - ARM Linux linux@arm.linux.org.uk
Thu Aug 2 12:42:00 GMT 2001


On Fri, Jul 27, 2001 at 09:13:04PM +0100, Philip Blundell wrote:
> The kernel isn't using the right flags for assembler files.  Try patching 
> arch/arm/Makefile like this.
> 
> @@ -39,7 +38,7 @@ tune-$(CONFIG_CPU_SA110)	:=-mtune=strong
>  tune-$(CONFIG_CPU_SA1100)	:=-mtune=strongarm1100
>  
>  CFLAGS		+= -mapcs-32 $(apcs-y) $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float
> -AFLAGS		+= -mapcs-32 $(apcs-y) $(arch-y) -mno-fpu
> +AFLAGS		+= -mapcs-32 $(apcs-y) $(arch-y) -mno-fpu -msoft-float

For the record, I have no intention of accepting the above patch at
present; its another build-breaking change in the ARM toolchain.

There are two options:

1. Don't use the new toolchains to build kernels [recommended]
2. Come up with a decent test to see if -msoft-float works on the
   toolchain.

Including it appears to prevent anything other than GCC 2.96 and up
from building kernels, and I don't regard these later toolchains to be
sufficiently well proven and mature to be worth the effort at the moment.



More information about the Binutils mailing list