Index: kernel/arch/sparc64/src/debug/stacktrace_asm.S
===================================================================
--- kernel/arch/sparc64/src/debug/stacktrace_asm.S	(revision 08c88b8417ff45cba6767f098910f4feecc24b6b)
+++ kernel/arch/sparc64/src/debug/stacktrace_asm.S	(revision 0407636ceda67e68eb4456da50da5790c6a50911)
@@ -27,22 +27,21 @@
 #
 
+#include <abi/asmtool.h>
 #include <arch/stack.h>
 
 .text
 
-.global frame_pointer_get
-.global program_counter_get
-.global alloc_window_and_flush
-
-frame_pointer_get:
+FUNCTION_BEGIN(frame_pointer_get)
 	# Add the stack bias to %sp to get the actual address.
 	retl
 	add %sp, STACK_BIAS, %o0
+FUNCTION_END(frame_pointer_get)
 
-program_counter_get:
+FUNCTION_BEGIN(program_counter_get)
 	retl
 	mov %o7, %o0
+FUNCTION_END(program_counter_get)
 
-alloc_window_and_flush:
+FUNCTION_BEGIN(alloc_window_and_flush)
 	save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE+STACK_ARG_SAVE_AREA_SIZE), %sp
 	# Flush all other windows to memory so that we can read their contents.
@@ -50,3 +49,4 @@
 	ret
 	restore
+FUNCTION_END(alloc_window_and_flush)
 
