[PATCH v2 5/7] x86: Define SUPPORT_DT_RELR
H.J. Lu
hjl.tools@gmail.com
Sat Feb 5 17:24:44 GMT 2022
Define SUPPORT_DT_RELR to indicate that DT_RELR is supported on x86.
---
config.h.in | 3 +++
sysdeps/x86/configure | 3 +++
sysdeps/x86/configure.ac | 3 +++
3 files changed, 9 insertions(+)
diff --git a/config.h.in b/config.h.in
index ff8597413d..d1c37b1daa 100644
--- a/config.h.in
+++ b/config.h.in
@@ -277,6 +277,9 @@
/* Define if static PIE is enabled. */
#define ENABLE_STATIC_PIE 0
+/* Define if DT_RELR is supported. */
+#undef SUPPORT_DT_RELR
+
/* The default value of x86 CET control. */
#define DEFAULT_DL_X86_CET_CONTROL cet_elf_property
diff --git a/sysdeps/x86/configure b/sysdeps/x86/configure
index 46d436fddf..bf4b041f48 100644
--- a/sysdeps/x86/configure
+++ b/sysdeps/x86/configure
@@ -195,3 +195,6 @@ $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h
+
+$as_echo "#define SUPPORT_DT_RELR 1" >>confdefs.h
+
diff --git a/sysdeps/x86/configure.ac b/sysdeps/x86/configure.ac
index 918b636891..e737fd156a 100644
--- a/sysdeps/x86/configure.ac
+++ b/sysdeps/x86/configure.ac
@@ -134,3 +134,6 @@ AC_DEFINE(PI_STATIC_AND_HIDDEN)
dnl Static PIE is supported.
AC_DEFINE(SUPPORT_STATIC_PIE)
+
+dnl DT_RELR is supported.
+AC_DEFINE(SUPPORT_DT_RELR)
--
2.34.1
More information about the Libc-alpha
mailing list