On Wed, Sep 21, 2016 at 10:10:43AM +0200, Mark Kettenis wrote: > 1. In GNU as, .align 0 is equivalent to .align 2, but with clang's > internal assembler .align 0 means "no alignment".
It might be even better to use .balign or .p2align. > 2. Using "ldr" to load a constant into a register is strange. It > works with GNU as, but not with clang. It should? See llvm/test/MC/ARM/ldr-pseudo.s. For small constants that fit into an immediate, the mov version is certainly smaller than going via the constant island, but the syntax should be correct. Joerg