The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=f16349f12d8aa63d771d259bae37d262212d8404
commit f16349f12d8aa63d771d259bae37d262212d8404 Author: Jessica Clarke <[email protected]> AuthorDate: 2026-02-11 15:37:08 +0000 Commit: Robert Clausecker <[email protected]> CommitDate: 2026-02-20 16:44:55 +0000 libsys/arm: include ARM EABI unwind bits into libsys libsys required ARM EABI unwind symbols like __aeabi_unwind_cpp_pr0. These symbols are normally provided by libc, but if a binary does not link libc, the symbol ends up not being resolved. Among other problems, this prevented gcc14 and newer from building on arm. Add the relevant symbols as hidden symbols into libsys to avoid this problem. (this patch was posted by jrtc27 who has asked me to move it along) PR: 292539 Tested by: fuz, Mark Millard <[email protected]> Reviewed by: mmel Approved by: markj (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55255 (cherry picked from commit 6265f30cd6b523d633efcc314f8952f24446861f) --- lib/libsys/arm/Makefile.sys | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libsys/arm/Makefile.sys b/lib/libsys/arm/Makefile.sys index 424d2f9cc9d8..e8b420932031 100644 --- a/lib/libsys/arm/Makefile.sys +++ b/lib/libsys/arm/Makefile.sys @@ -6,3 +6,8 @@ SRCS+= __vdso_gettc.c \ MDASM= \ cerror.S \ vfork.S + +.if ${LIB} == "sys" +.PATH: ${LIBSYS_SRCTOP}/../libc/arm/aeabi +SRCS+= aeabi_unwind_cpp.c +.endif
