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