diff options
Diffstat (limited to 'include/asm_macros.S')
-rw-r--r-- | include/asm_macros.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm_macros.S b/include/asm_macros.S index f94d75fe..135c11a6 100644 --- a/include/asm_macros.S +++ b/include/asm_macros.S @@ -80,3 +80,14 @@ .error "Vector exceeds 32 instructions" .endif .endm + + /* + * This macro is used to create a function label and place the + * code into a separate text section based on the function name + * to enable elimination of unused code during linking + */ + .macro func _name + .section .text.\_name, "ax" + .type \_name, %function + \_name: + .endm |