]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86: add .size/.type directives to indirect thunk generation macro
authorJan Beulich <jbeulich@suse.com>
Fri, 23 Feb 2018 13:25:54 +0000 (14:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Feb 2018 13:25:54 +0000 (14:25 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/indirect-thunk.S

index e03fc14c737e7e671e515571d77897b1184daac6..3c17f75c23dc4fa562e857ee92a4f94f312b3466 100644 (file)
@@ -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. */