]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sparc32: Add -Av8 to assembler command line.
authorDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2012 01:19:51 +0000 (18:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2012 01:19:51 +0000 (18:19 -0700)
Newer version of binutils are more strict about specifying the
correct options to enable certain classes of instructions.

The sparc32 build is done for v7 in order to support sun4c systems
which lack hardware integer multiply and divide instructions.

So we have to pass -Av8 when building the assembler routines that
use these instructions and get patched into the kernel when we find
out that we have a v8 capable cpu.

Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Makefile

index ad1fb5d969f314823db89f4ea470edef1ac252ea..eddcfb36aafb7da6b7addc5fbb3b9e187022c512 100644 (file)
@@ -31,7 +31,7 @@ UTS_MACHINE    := sparc
 
 #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7
 KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
-KBUILD_AFLAGS += -m32
+KBUILD_AFLAGS += -m32 -Wa,-Av8
 
 #LDFLAGS_vmlinux = -N -Ttext 0xf0004000
 #  Since 2.5.40, the first stage is left not btfix-ed.