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)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 19 Dec 2013 17:43:07 +0000 (17:43 +0000)
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>
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"                                                  \