On Sun, Feb 20, 2011 at 10:45 PM, Andy Green andy@warmcat.com wrote:
On 02/20/2011 12:06 AM, Somebody in the thread at some point said:
Hi -
On Sat, Feb 19, 2011 at 12:08 AM, Andy Doanandy.doan@linaro.org wrote:
I just hit an issue cross-compiling the linux-linaro-2.6.37.git source. I'm seeing errors for arch/arm/mach-omap2/sleep34xx.S like:
+AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec)
I just met a similar issue earlier in x-loader, I made it go away there by changing global AFLAGS definition to be "-Wa,-march=armv7-a+sec"
I googled around on it and found this
http://osdir.com/ml/kernel-team/2010-12/msg00116.html
suggesting it may be something to do with gcc 4.5.1, which I am using.
The SMC instruction is part of the optional Security Extensions profile. Since around September last year you need to explicitly tell binutils that your chip has this extension by either passing -march=armv7-a+sec to gas or by adding a '.arch_extension sec' directive to the start of the assembly file.
-- Michael