git: 40200fae9124 - stable/14 - depend-cleanup.sh: Clean up after riscv static binary IFUNC addition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Dec 2025 17:00:12 UTC
The branch stable/14 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=40200fae91243c772d444c8338ef870d3e7c46ab
commit 40200fae91243c772d444c8338ef870d3e7c46ab
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2024-10-18 18:15:30 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-12-15 16:58:44 +0000
depend-cleanup.sh: Clean up after riscv static binary IFUNC addition
reloc.c is conditionally included by libc_start1.c so existing builds
don't feature it in the .depend file and won't know they need to rebuild
libc_start1.c.
MFC after: 1 week
(cherry picked from commit d41a40f484826e90ed78dce5f006712b0eeaf501)
---
tools/build/depend-cleanup.sh | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh
index 00627d551bbe..acbdfb3e92eb 100755
--- a/tools/build/depend-cleanup.sh
+++ b/tools/build/depend-cleanup.sh
@@ -168,6 +168,22 @@ if [ -f "$OBJTOP"/rescue/rescue/rescue.mk ] && \
run rm -f "$OBJTOP"/rescue/rescue/rescue.mk
fi
+# 20241018 1363acbf25de libc/csu: Support IFUNCs on riscv
+if [ ${MACHINE} = riscv ]; then
+ for f in "$OBJTOP"/lib/libc/.depend.libc_start1.*o; do
+ if [ ! -f "$f" ]; then
+ continue
+ fi
+ if ! grep -q 'lib/libc/csu/riscv/reloc\.c' "$f"; then
+ echo "Removing stale dependencies and objects for libc_start1.c"
+ run rm -f \
+ "$OBJTOP"/lib/libc/.depend.libc_start1.* \
+ "$OBJTOP"/lib/libc/libc_start1.*o
+ break
+ fi
+ done
+fi
+
# 20241018 5deeebd8c6ca Merge llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6
p="$OBJTOP"/lib/clang/libclang/clang/Basic
f="$p"/arm_mve_builtin_sema.inc