Skip to content

Commit ee9442d

Browse files
authored
Fix for "ld.lld: error: undefined symbol: _Uaarch64_setcontext" when doing build for FreeBSD-arm64 using internal libunwind (#110432)
* Fix for "ld.lld: error: undefined symbol: _Uaarch64_setcontext" when doing build for arm64 using internal libunwind * New lines * 'comment' * stick to naming
1 parent e1d7398 commit ee9442d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/native/external/libunwind.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ elseif(CLR_CMAKE_TARGET_FREEBSD)
9797
set(libunwind_la_SOURCES_arm_os_local arm/Los-freebsd.c)
9898
set(libunwind_la_SOURCES_aarch64_os aarch64/Gos-freebsd.c)
9999
set(libunwind_la_SOURCES_aarch64_os_local aarch64/Los-freebsd.c)
100+
set(libunwind_aarch64_la_SOURCES_os aarch64/setcontext.S)
100101
list(APPEND libunwind_coredump_la_SOURCES coredump/_UCD_access_reg_freebsd.c)
101102
elseif(CLR_CMAKE_HOST_SUNOS)
102103
set(libunwind_la_SOURCES_os ${libunwind_la_SOURCES_os_solaris})
@@ -229,7 +230,7 @@ set(libunwind_la_SOURCES_aarch64_common
229230
# The list of files that go into libunwind:
230231
set(libunwind_la_SOURCES_aarch64
231232
${libunwind_la_SOURCES_aarch64_common}
232-
${libunwind_la_SOURCES_aarch64_os_local}
233+
${libunwind_la_SOURCES_aarch64_os_local} ${libunwind_aarch64_la_SOURCES_os}
233234
${libunwind_la_SOURCES_local}
234235
aarch64/Lapply_reg_state.c aarch64/Lreg_states_iterate.c
235236
aarch64/Lcreate_addr_space.c aarch64/Lget_proc_info.c

0 commit comments

Comments
 (0)