Skip to content

Commit 44ae97a

Browse files
committed
Move alias definition
1 parent c6c8a12 commit 44ae97a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libunwind/src/UnwindRegistersSave.S

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,15 @@ DEFINE_LIBUNWIND_FUNCTION("#__unw_getcontext")
9797
mov x0, #0 // return UNW_ESUCCESS
9898
ret
9999

100-
.globl "#unw_getcontext"
101-
.set "#unw_getcontext", "#__unw_getcontext"
102100
.weak_anti_dep __unw_getcontext
103101
.set __unw_getcontext, "#__unw_getcontext"
104-
.weak_anti_dep unw_getcontext
105-
.set unw_getcontext, "#unw_getcontext"
106102

107103
.section .hybmp$x,"yi"
108104
.symidx "#__unw_getcontext"
109105
.symidx $ientry_thunk$cdecl$i8$i8
110106
.word 1
111107
.text
112108

113-
EXPORT_SYMBOL(unw_getcontext)
114-
115109
#elif defined(__x86_64__)
116110

117111
#
@@ -1228,7 +1222,13 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
12281222

12291223
#endif
12301224

1231-
#ifndef __arm64ec__
1225+
#ifdef __arm64ec__
1226+
.globl "#unw_getcontext"
1227+
.set "#unw_getcontext", "#__unw_getcontext"
1228+
.weak_anti_dep unw_getcontext
1229+
.set unw_getcontext, "#unw_getcontext"
1230+
EXPORT_SYMBOL(unw_getcontext)
1231+
#else
12321232
WEAK_ALIAS(__unw_getcontext, unw_getcontext)
12331233
#endif
12341234

0 commit comments

Comments
 (0)