From a823a5280f25ad19a751dd9a41044f556471e61a Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 23 Feb 2018 14:25:54 +0100 Subject: [PATCH] x86: add .size/.type directives to indirect thunk generation macro Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/indirect-thunk.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/indirect-thunk.S b/xen/arch/x86/indirect-thunk.S index e03fc14c73..3c17f75c23 100644 --- a/xen/arch/x86/indirect-thunk.S +++ b/xen/arch/x86/indirect-thunk.S @@ -41,6 +41,9 @@ ENTRY(__x86_indirect_thunk_\reg) ALTERNATIVE_2 __stringify(IND_THUNK_RETPOLINE \reg), \ __stringify(IND_THUNK_LFENCE \reg), X86_FEATURE_IND_THUNK_LFENCE, \ __stringify(IND_THUNK_JMP \reg), X86_FEATURE_IND_THUNK_JMP + + .size __x86_indirect_thunk_\reg, . - __x86_indirect_thunk_\reg + .type __x86_indirect_thunk_\reg, @function .endm /* Instantiate GEN_INDIRECT_THUNK for each register except %rsp. */ -- 2.39.5