Index: uspace/lib/c/arch/ia32/src/fibril.S
===================================================================
--- uspace/lib/c/arch/ia32/src/fibril.S	(revision 805729be3460a2b7ab347e7bf590d2d1ed2638ed)
+++ uspace/lib/c/arch/ia32/src/fibril.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
@@ -27,10 +27,8 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/fibril_context.h>
 
 .text
-
-.global context_save
-.global context_restore
 
 ## Save current CPU context
@@ -39,5 +37,5 @@
 # pointed by the 1st argument. Returns 1 in EAX.
 #
-context_save:
+FUNCTION_BEGIN(context_save)
 	movl 0(%esp), %eax  # the caller's return %eip
 	movl 4(%esp), %edx  # address of the context variable to save context to
@@ -58,4 +56,5 @@
 	incl %eax
 	ret
+FUNCTION_END(context_save)
 
 ## Restore saved CPU context
@@ -64,5 +63,5 @@
 # pointed by the 1st argument. Returns 0 in EAX.
 #
-context_restore:
+FUNCTION_BEGIN(context_restore)
 	movl 4(%esp), %eax  # address of the context variable to restore context from
 	
@@ -86,3 +85,4 @@
 	xorl %eax, %eax		# context_restore returns 0
 	ret
+FUNCTION_END(context_restore)
 
Index: uspace/lib/math/arch/ia32/src/cos.S
===================================================================
--- uspace/lib/math/arch/ia32/src/cos.S	(revision 805729be3460a2b7ab347e7bf590d2d1ed2638ed)
+++ uspace/lib/math/arch/ia32/src/cos.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
@@ -27,11 +27,10 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/x87.h>
 
 .text
 
-.global cos_f64
-
-cos_f64:
+FUNCTION_BEGIN(cos_f64)
 	# compute cosine (no stack frame)
 	
@@ -64,2 +63,4 @@
 	
 	ret
+FUNCTION_END(cos_f64)
+
Index: uspace/lib/math/arch/ia32/src/sin.S
===================================================================
--- uspace/lib/math/arch/ia32/src/sin.S	(revision 805729be3460a2b7ab347e7bf590d2d1ed2638ed)
+++ uspace/lib/math/arch/ia32/src/sin.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
@@ -27,11 +27,10 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/x87.h>
 
 .text
 
-.global sin_f64
-
-sin_f64:
+FUNCTION_BEGIN(sin_f64)
 	# compute sine (no stack frame)
 	
@@ -64,2 +63,4 @@
 	
 	ret
+FUNCTION_END(sin_f64)
+
Index: uspace/lib/math/arch/ia32/src/trunc.S
===================================================================
--- uspace/lib/math/arch/ia32/src/trunc.S	(revision 805729be3460a2b7ab347e7bf590d2d1ed2638ed)
+++ uspace/lib/math/arch/ia32/src/trunc.S	(revision 321a8e6ee21f40cf65374a188981cdd6c5ce9083)
@@ -27,11 +27,10 @@
 #
 
+#include <abi/asmtool.h>
 #include <libarch/x87.h>
 
 .text
 
-.global trunc_f64
-
-trunc_f64:
+FUNCTION_BEGIN(trunc_f64)
 	pushl %ebp
 	movl %esp, %ebp
@@ -61,2 +60,4 @@
 	leave
 	ret
+FUNCTION_END(trunc_f64)
+
