https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124970
--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- (In reply to Drea Pinski from comment #3) > > ldr r3, [r3] @ unaligned > > > You need to use -mno-unaligned-access. Otherwise gcc defaults to assuming > your page table is setup for doing unaligned access on armv7+ That's only true for the A & R profiles. It's more complicated for m-profile. GCC knows which m-profile CPUs support misaligned accesses and will configure that on if it is supported. As apinskia says, you can use -m[no-]unaligned-access to override the default.
