From: Jan Beulich Date: Fri, 23 Feb 2018 13:25:54 +0000 (+0100) Subject: x86: add .size/.type directives to indirect thunk generation macro X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~539 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a823a5280f25ad19a751dd9a41044f556471e61a;p=xen.git x86: add .size/.type directives to indirect thunk generation macro Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- 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. */