Functions in math-emu are annotated as ENTRY() symbols, but their
ends are not annotated at all. But these are standard functions
called from C, with proper stack register update etc.
Omitting the ends means:
* the annotations are not paired and we cannot deal with such functions
e.g. in objtool
* the symbols are not marked as functions in the object file
* there are no sizes of the functions in the object file
So fix this by adding ENDPROC() to each such case in math-emu.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170824080624.7768-1-jslaby@suse.cz
Signed-off-by: Ingo Molnar <mingo@kernel.org>
14 files changed:
pop %ebx
jmp L_exit
#endif /* PARANOID */
+ENDPROC(div_Xsig)
leave
ret
-
+ENDPROC(FPU_div_small)
popl %esi
leave
ret
+ENDPROC(mul32_Xsig)
ENTRY(mul64_Xsig)
popl %esi
leave
ret
+ENDPROC(mul64_Xsig)
popl %esi
leave
ret
-
+ENDPROC(mul_Xsig_Xsig)
popl %esi
leave
ret
+ENDPROC(polynomial_Xsig)
call arith_overflow
pop %ebx
jmp L_exit
+ENDPROC(FPU_normalize)
popl %ebx
leave
ret
+ENDPROC(FPU_normalize_nuo)
mov $-1,%eax
jmp fpu_reg_round_special_exit
#endif /* PARANOID */
+
+ENDPROC(FPU_round)
leave
ret
#endif /* PARANOID */
+ENDPROC(FPU_u_add)
leave
ret
#endif /* PARANOID */
+
+ENDPROC(FPU_u_div)
ret
#endif /* PARANOID */
+ENDPROC(FPU_u_mul)
popl %esi
leave
ret
+ENDPROC(FPU_u_sub)
popl %ebx
leave
ret
-
+ENDPROC(round_Xsig)
popl %ebx
leave
ret
-
+ENDPROC(norm_Xsig)
popl %esi
leave
ret
+ENDPROC(shr_Xsig)
popl %esi
leave
ret
+ENDPROC(FPU_shrx)
/*---------------------------------------------------------------------------+
popl %esi
leave
ret
+ENDPROC(FPU_shrxs)
/* Our estimate is too large */
movl $0x7fffff00,%eax
jmp sqrt_round_result
+ENDPROC(wm_sqrt)