arm64: futex: ensure .fixup entries are sufficiently aligned
authorWill Deacon <will.deacon@arm.com>
Wed, 6 Nov 2013 19:31:24 +0000 (19:31 +0000)
committerMark Brown <broonie@linaro.org>
Fri, 16 May 2014 15:39:18 +0000 (16:39 +0100)
AArch64 instructions must be 4-byte aligned, so make sure this is true
for the futex .fixup section.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 4da7a56c59f28e27e8dcff61b5d7b05f6e203606)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/futex.h

index c582fa316366805fc2b3921f27a67fd18a2aa43c..78cc3aba5d69e9ff976be9226cd975860b0a31a0 100644 (file)
@@ -30,6 +30,7 @@
 "      cbnz    %w3, 1b\n"                                              \
 "3:\n"                                                                 \
 "      .pushsection .fixup,\"ax\"\n"                                   \
+"      .align  2\n"                                                    \
 "4:    mov     %w0, %w5\n"                                             \
 "      b       3b\n"                                                   \
 "      .popsection\n"                                                  \