[arm] Fix aot support for the alignment check code.