1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_LINKAGE_H
3 #define __ASM_LINKAGE_H
5 #define __ALIGN .align 2
6 #define __ALIGN_STR __stringify(__ALIGN)
8 #define SYM_FUNC_START(name) \
9 SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN) \
12 #define SYM_FUNC_START_NOALIGN(name) \
13 SYM_START(name, SYM_L_GLOBAL, SYM_A_NONE) \
16 #define SYM_FUNC_START_LOCAL(name) \
17 SYM_START(name, SYM_L_LOCAL, SYM_A_ALIGN) \
20 #define SYM_FUNC_START_LOCAL_NOALIGN(name) \
21 SYM_START(name, SYM_L_LOCAL, SYM_A_NONE) \
24 #define SYM_FUNC_START_WEAK(name) \
25 SYM_START(name, SYM_L_WEAK, SYM_A_ALIGN) \
28 #define SYM_FUNC_START_WEAK_NOALIGN(name) \
29 SYM_START(name, SYM_L_WEAK, SYM_A_NONE) \
32 #define SYM_FUNC_END(name) \
34 SYM_END(name, SYM_T_FUNC)