diff options
author | Bill Wendling <[email protected]> | 2020-12-10 17:23:17 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-05-07 06:06:13 -0400 |
commit | 5f443e424efab56baa8021da04878f88eb0815d4 (patch) | |
tree | 5c27e9e9aab8a483aa9f2768df1e1eaa36d4ebc7 | |
parent | 70f094f4f01dc4d6f78ac6407f85627293a6553c (diff) |
selftests: kvm: remove reassignment of non-absolute variables
Clang's integrated assembler does not allow symbols with non-absolute
values to be reassigned. Modify the interrupt entry loop macro to be
compatible with IAS by using a label and an offset.
Cc: Jian Cai <[email protected]>
Signed-off-by: Bill Wendling <[email protected]>
References: https://lore.kernel.org/lkml/[email protected]/
Message-Id: <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
-rw-r--r-- | tools/testing/selftests/kvm/lib/x86_64/handlers.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/lib/x86_64/handlers.S b/tools/testing/selftests/kvm/lib/x86_64/handlers.S index aaf7bc7d2ce1..7629819734af 100644 --- a/tools/testing/selftests/kvm/lib/x86_64/handlers.S +++ b/tools/testing/selftests/kvm/lib/x86_64/handlers.S @@ -54,9 +54,9 @@ idt_handlers: .align 8 /* Fetch current address and append it to idt_handlers. */ - current_handler = . +666 : .pushsection .rodata -.quad current_handler + .quad 666b .popsection .if ! \has_error |