[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Architectures where unaligned access is (not) OK?



On Fri, Nov 21, 2014 at 06:01:11PM +0100, Jakub Wilk wrote:
> * Felipe Sateler <fsateler@debian.org>, 2014-11-21, 14:04:
> >Sparc is definitely not ok. For evidence, see #721617, liblo was
> >trying to fetch a double from a 4-byte aligned address. Experience
> >with liblo shows that other architectures are just fine (or at
> >least are just slower) with this type of unalignment.
> 
> IME, sprac buildds are the only ones where where unaligned access in
> a build-time test suite triggers SIGBUS/SIGSEGV.

On armel and armhf you can enable SIGBUS on unaligned access with:

echo 4 > /proc/cpu/alignment

Riku


Reply to: