OSDN Git Service

Hexagon: change jumps to must-extend in futex_atomic_*
authorSid Manning <sidneym@codeaurora.org>
Mon, 26 Apr 2021 18:51:53 +0000 (13:51 -0500)
committerBrian Cain <bcain@codeaurora.org>
Mon, 3 May 2021 16:04:19 +0000 (11:04 -0500)
Cross-section jumps from .fixup section must be extended.

Signed-off-by: Sid Manning <sidneym@codeaurora.org>
Signed-off-by: Brian Cain <bcain@codeaurora.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
arch/hexagon/include/asm/futex.h

index 6b9c554..9fb00a0 100644 (file)
@@ -21,7 +21,7 @@
        "3:\n" \
        ".section .fixup,\"ax\"\n" \
        "4: %1 = #%5;\n" \
-       "   jump 3b\n" \
+       "   jump ##3b\n" \
        ".previous\n" \
        ".section __ex_table,\"a\"\n" \
        ".long 1b,4b,2b,4b\n" \
@@ -90,7 +90,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval,
        "3:\n"
        ".section .fixup,\"ax\"\n"
        "4: %0 = #%6\n"
-       "   jump 3b\n"
+       "   jump ##3b\n"
        ".previous\n"
        ".section __ex_table,\"a\"\n"
        ".long 1b,4b,2b,4b\n"