Index: uspace/lib/math/arch/amd64/src/cos.S
===================================================================
--- uspace/lib/math/arch/amd64/src/cos.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
+++ uspace/lib/math/arch/amd64/src/cos.S	(revision 6d351e674a67b6ecee3c205c0f09e29e92b462be)
@@ -27,11 +27,10 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/x87.h>
 
 .text
 
-.global cos_f64
-
-cos_f64:
+FUNCTION_BEGIN(cos_f64)
 	pushq %rbp
 	movq %rsp, %rbp
@@ -77,2 +76,3 @@
 	leave
 	retq
+FUNCTION_END(cos_f64)
Index: uspace/lib/math/arch/amd64/src/sin.S
===================================================================
--- uspace/lib/math/arch/amd64/src/sin.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
+++ uspace/lib/math/arch/amd64/src/sin.S	(revision 6d351e674a67b6ecee3c205c0f09e29e92b462be)
@@ -27,11 +27,10 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/x87.h>
 
 .text
 
-.global sin_f64
-
-sin_f64:
+FUNCTION_BEGIN(sin_f64)
 	pushq %rbp
 	movq %rsp, %rbp
@@ -77,2 +76,4 @@
 	leave
 	retq
+FUNCTION_END(sin_f64)
+
Index: uspace/lib/math/arch/amd64/src/trunc.S
===================================================================
--- uspace/lib/math/arch/amd64/src/trunc.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
+++ uspace/lib/math/arch/amd64/src/trunc.S	(revision 6d351e674a67b6ecee3c205c0f09e29e92b462be)
@@ -27,11 +27,10 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/x87.h>
 
 .text
 
-.global trunc_f64
-
-trunc_f64:
+FUNCTION_BEGIN(trunc_f64)
 	pushq %rbp
 	movq %rsp, %rbp
@@ -63,2 +62,3 @@
 	leave
 	retq
+FUNCTION_END(trunc_f64)
