Sfoglia il codice sorgente

arm64: futex: ensure .fixup entries are sufficiently aligned

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>
Will Deacon 11 anni fa
parent
commit
4da7a56c59
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      arch/arm64/include/asm/futex.h

+ 1 - 0
arch/arm64/include/asm/futex.h

@@ -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"							\