@@ -40,7 +40,7 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(do_abort)
4040 .cfi_offset w30 , - 24
4141 .cfi_offset w29 , - 32
4242 .cfi_offset 46 , - 16
43- bl SYMBOL_NAME( __arm_sme_state)
43+ bl __arm_sme_state
4444 tbz x0 , # 0 , 2f
45451 :
4646 smstop sm
@@ -54,7 +54,7 @@ END_COMPILERRT_FUNCTION(do_abort)
5454// __arm_sme_state fills the result registers based on a local
5555// th at is set as part of the compiler - rt startup code.
5656// __aarch64_has_sme_and_tpidr2_el0
57- DEFINE_COMPILERRT_FUNCTION (__arm_sme_state)
57+ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_sme_state)
5858 .variant_pcs __arm_sme_state
5959 BTI_C
6060 mov x0 , xzr
@@ -70,9 +70,9 @@ DEFINE_COMPILERRT_FUNCTION(__arm_sme_state)
7070 mrs x1 , TPIDR2_EL0
71711 :
7272 ret
73- END_COMPILERRT_FUNCTION (__arm_sme_state)
73+ END_COMPILERRT_OUTLINE_FUNCTION (__arm_sme_state)
7474
75- DEFINE_COMPILERRT_FUNCTION (__arm_tpidr2_restore)
75+ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_tpidr2_restore)
7676 .variant_pcs __arm_tpidr2_restore
7777 BTI_C
7878 // If TPIDR2_EL0 is nonnull , the subroutine aborts in some platform - specific
@@ -106,9 +106,9 @@ DEFINE_COMPILERRT_FUNCTION(__arm_tpidr2_restore)
106106 ret
1071072 :
108108 b SYMBOL_NAME(do_abort)
109- END_COMPILERRT_FUNCTION (__arm_tpidr2_restore)
109+ END_COMPILERRT_OUTLINE_FUNCTION (__arm_tpidr2_restore)
110110
111- DEFINE_COMPILERRT_FUNCTION (__arm_tpidr2_save)
111+ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_tpidr2_save)
112112 .variant_pcs __arm_tpidr2_save
113113 BTI_C
114114 // If the current thread does not have access to TPIDR2_EL0 , the subroutine
@@ -147,10 +147,9 @@ DEFINE_COMPILERRT_FUNCTION(__arm_tpidr2_save)
147147 ret
1481482 :
149149 b SYMBOL_NAME(do_abort)
150- END_COMPILERRT_FUNCTION (__arm_tpidr2_save)
150+ END_COMPILERRT_OUTLINE_FUNCTION (__arm_tpidr2_save)
151151
152- DEFINE_COMPILERRT_FUNCTION(__arm_za_disable)
153- .cfi_startproc
152+ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_za_disable)
154153 .variant_pcs __arm_za_disable
155154 BTI_C
156155 // If the current thread does not have access to SME , the subroutine does
@@ -167,7 +166,7 @@ DEFINE_COMPILERRT_FUNCTION(__arm_za_disable)
167166 .cfi_def_cfa w29 , 16
168167 .cfi_offset w30 , - 8
169168 .cfi_offset w29 , - 16
170- bl SYMBOL_NAME( __arm_tpidr2_save)
169+ bl __arm_tpidr2_save
171170
172171 // * Set TPIDR2_EL0 to null.
173172 msr TPIDR2_EL0 , xzr
@@ -182,10 +181,9 @@ DEFINE_COMPILERRT_FUNCTION(__arm_za_disable)
182181 .cfi_restore w29
1831820 :
184183 ret
185- .cfi_endproc
186- END_COMPILERRT_FUNCTION(__arm_za_disable)
184+ END_COMPILERRT_OUTLINE_FUNCTION(__arm_za_disable)
187185
188- DEFINE_COMPILERRT_FUNCTION (__arm_get_current_vg)
186+ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_get_current_vg)
189187 .variant_pcs __arm_get_current_vg
190188 BTI_C
191189
@@ -202,7 +200,7 @@ DEFINE_COMPILERRT_FUNCTION(__arm_get_current_vg)
2022002 :
203201 mov x0 , xzr
204202 ret
205- END_COMPILERRT_FUNCTION (__arm_get_current_vg)
203+ END_COMPILERRT_OUTLINE_FUNCTION (__arm_get_current_vg)
206204
207205NO_EXEC_STACK_DIRECTIVE
208206
0 commit comments