arm: support big-endian. issue reported by Pancake