[5/7] x86: Define SUPPORT_DT_RELR

Message ID 20220203180948.2744-6-hjl.tools@gmail.com
State Superseded
Headers
Series Support DT_RELR relative relocation format |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

H.J. Lu Feb. 3, 2022, 6:09 p.m. UTC
  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(+)
  

Patch

diff --git a/config.h.in b/config.h.in
index edd167d96e..fbf8138fce 100644
--- a/config.h.in
+++ b/config.h.in
@@ -280,6 +280,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)