git: 5ea48d669304 - stable/15 - arm, riscv: add a preprocessor symbol indicating missed support of ifunc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Feb 2026 05:17:09 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5ea48d669304947946a09148bb7ad3984159890d
commit 5ea48d669304947946a09148bb7ad3984159890d
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-01-23 21:33:07 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-11 05:12:35 +0000
arm, riscv: add a preprocessor symbol indicating missed support of ifunc
(cherry picked from commit 03d61fe9785793cce9324fd4e6019562586760fa)
---
sys/arm/include/ifunc.h | 10 ++++++++++
sys/riscv/include/ifunc.h | 2 ++
2 files changed, 12 insertions(+)
diff --git a/sys/arm/include/ifunc.h b/sys/arm/include/ifunc.h
new file mode 100644
index 000000000000..6b7cf20c720f
--- /dev/null
+++ b/sys/arm/include/ifunc.h
@@ -0,0 +1,10 @@
+/*
+ * This file is in the public domain.
+ */
+
+#ifndef __ARM_IFUNC_H
+#define __ARM_IFUNC_H
+
+#define __DO_NOT_HAVE_SYS_IFUNCS 1
+
+#endif
diff --git a/sys/riscv/include/ifunc.h b/sys/riscv/include/ifunc.h
index 0f9747a2aa14..0d91014ccce8 100644
--- a/sys/riscv/include/ifunc.h
+++ b/sys/riscv/include/ifunc.h
@@ -30,6 +30,8 @@
#ifndef __RISCV_IFUNC_H
#define __RISCV_IFUNC_H
+#define __DO_NOT_HAVE_SYS_IFUNCS 1
+
#define DEFINE_IFUNC(qual, ret_type, name, args) \
static ret_type (*name##_resolver(void))args __used; \
qual ret_type name args __attribute__((ifunc(#name "_resolver"))); \