From c0ce4f82ad10178eab328cb0da3f03639c3b5b8e Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 11 Oct 2018 12:27:06 -0500 Subject: Match first C function --- asm/macros/function.inc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 asm/macros/function.inc (limited to 'asm/macros/function.inc') diff --git a/asm/macros/function.inc b/asm/macros/function.inc new file mode 100755 index 0000000..b109595 --- /dev/null +++ b/asm/macros/function.inc @@ -0,0 +1,29 @@ + .macro arm_func_start name + .align 2, 0 + .global \name + .arm + .type \name, %function + .endm + + .macro arm_func_end name + .size \name, .-\name + .endm + + .macro thumb_func_start name + .align 2, 0 + .global \name + .thumb + .thumb_func + .type \name, %function + .endm + + .macro non_word_aligned_thumb_func_start name + .global \name + .thumb + .thumb_func + .type \name, %function + .endm + + .macro thumb_func_end name + .size \name, .-\name + .endm -- cgit v1.2.3