Index: uspace/lib/math/arch/amd64/src/cos.S
===================================================================
--- uspace/lib/math/arch/amd64/src/cos.S	(revision b69786ea48147d53f94db94d13ac0d9122c0fb09)
+++ uspace/lib/math/arch/amd64/src/cos.S	(revision 8539cf2690b4bac2b19facb4566919e7cb6a07dd)
@@ -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 b69786ea48147d53f94db94d13ac0d9122c0fb09)
+++ uspace/lib/math/arch/amd64/src/sin.S	(revision 8539cf2690b4bac2b19facb4566919e7cb6a07dd)
@@ -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 b69786ea48147d53f94db94d13ac0d9122c0fb09)
+++ uspace/lib/math/arch/amd64/src/trunc.S	(revision 8539cf2690b4bac2b19facb4566919e7cb6a07dd)
@@ -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)
