aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2026-02-11 15:37:08 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2026-02-13 17:52:25 +0000
commit6265f30cd6b523d633efcc314f8952f24446861f (patch)
tree15428788a78fc7ce8ff491188635e64e6ee9d3b6
parent8efcc64928f96bb26a58ec04750688110502227f (diff)
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 <marklmi26-fbsd@yahoo.com> Reviewed by: mmel Approved by: markj (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55255
-rw-r--r--lib/libsys/arm/Makefile.sys5
1 files changed, 5 insertions, 0 deletions
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