[poky] Bad ARM code with GCC 4.7.1

Mark Hatle mark.hatle at windriver.com
Thu May 10 09:49:09 PDT 2012


On 5/10/12 11:30 AM, Khem Raj wrote:
> On Thu, May 10, 2012 at 9:17 AM, Gary Thomas<gary at mlbassoc.com>  wrote:
>>
>> My board is DM3730, much like a BeagleBoard
>>   ARM architecture: armv7a
>>   Linux kernel 3.0
>
> hmmm that should be able to handle alignment faults in hardware

As far as I know, most armv7a handle alignment in the kernel, but there are 
newer crops of CPUs coming out that will no longer have alignment handlers as a 
"speed optimization".. (I think they're a bit nuts myself, but anyway.)

But if the code in question is inside the kernel, then the alignment faults 
won't work -- or will they?  (Certainly won't from within the alignment handlers 
of course...)

--Mark

>>
>>
>>>
>>> gcc generate unaligned accesses by default
>>>
>>> Does adding -mno-unaligned-access to cflags help ?
>>
>>
>> I'll check.
>
> Its not entirely clear whats going on so post the complete function disassembly
> so further context can be seen as well.
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky




More information about the poky mailing list