public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: libc-alpha@sourceware.org
Cc: Fangrui Song <maskray@google.com>,
	Joseph Myers <joseph@codesourcery.com>
Subject: [PATCH v2 5/7] x86: Define SUPPORT_DT_RELR
Date: Sat,  5 Feb 2022 09:24:44 -0800	[thread overview]
Message-ID: <20220205172446.652011-6-hjl.tools@gmail.com> (raw)
In-Reply-To: <20220205172446.652011-1-hjl.tools@gmail.com>

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


  parent reply	other threads:[~2022-02-05 17:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-05 17:24 [PATCH v2 0/7] Support DT_RELR relative relocation format H.J. Lu
2022-02-05 17:24 ` [PATCH v2 1/7] elf: Support DT_RELR relative relocation format [BZ #27924] H.J. Lu
2022-02-05 17:24 ` [PATCH v2 2/7] elf: Properly handle zero DT_RELA/DT_REL values H.J. Lu
2022-02-05 17:24 ` [PATCH v2 3/7] Add GLIBC_ABI_DT_RELR for DT_RELR support H.J. Lu
2022-02-05 17:24 ` [PATCH v2 4/7] x86/configure.ac: Define PI_STATIC_AND_HIDDEN/SUPPORT_STATIC_PIE H.J. Lu
2022-02-05 17:24 ` H.J. Lu [this message]
2022-02-05 17:24 ` [PATCH v2 6/7] Add --disable-default-dt-relr H.J. Lu
2022-02-05 17:24 ` [PATCH v2 7/7] NEWS: Mention DT_RELR support H.J. Lu
2022-02-07 20:27 ` [PATCH v2 0/7] Support DT_RELR relative relocation format Joseph Myers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220205172446.652011-6-hjl.tools@gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=maskray@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).