From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 79D1A3858418 for ; Sat, 5 Feb 2022 17:24:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 79D1A3858418 Received: by mail-pf1-x435.google.com with SMTP id c194so7890940pfb.12 for ; Sat, 05 Feb 2022 09:24:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WqMA8uXtXcOa92M47qhu5MKl2AS/ju/ANR26BZyW/ds=; b=ZykpkY4B5iu4MMO1TyVI6URjXAyk7oEB10uwa2poZXyVqan99hEjLc7I1lqkIOwi4T lbsJJl8gNyBkuacFCG6MEjML3aGCq5IU0UUuJL0Dz8F8FpilMmfwVL+rEv+j6SbQkeyL /4s/of6ZF/zZU/rCozBMG91tBdRpHNEvI/+WV/CeCBCO7yehSHhnvSICkr7l/b79LAtI fc2tL/0PYDrF5f9Jg49ong5s6gjkbGriCUlCyYJJwWgDpLvLA/HXp29liuZD5R60QhOf aWmN+Euu/9yl8fTJ0muJ6oXyVydgqv2zGVVKp8w0s324KKalX8kWfDUo/02zjldg/4Yq 8mPg== X-Gm-Message-State: AOAM5330MdN47CdY6nLSzco1G2AHPFbKhb/Vdhkm5PTH4JHyr5kyTeFM hOkKIA+pdLoZ7DR7GqNfloU= X-Google-Smtp-Source: ABdhPJzJ81kc11MGiPoYcFSVN0J+WtNzSP/EkCsrRFm1DUxwWuEvDORQrQjIWcPPHy5AZoqyfaEVvQ== X-Received: by 2002:a63:5d13:: with SMTP id r19mr3567220pgb.441.1644081889649; Sat, 05 Feb 2022 09:24:49 -0800 (PST) Received: from gnu-tgl-2.localdomain ([172.58.38.240]) by smtp.gmail.com with ESMTPSA id o7sm6139962pfk.184.2022.02.05.09.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 09:24:49 -0800 (PST) Received: from gnu-tgl-2.. (localhost [IPv6:::1]) by gnu-tgl-2.localdomain (Postfix) with ESMTP id 92D8D3004AC; Sat, 5 Feb 2022 09:24:46 -0800 (PST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: Fangrui Song , Joseph Myers Subject: [PATCH v2 5/7] x86: Define SUPPORT_DT_RELR Date: Sat, 5 Feb 2022 09:24:44 -0800 Message-Id: <20220205172446.652011-6-hjl.tools@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205172446.652011-1-hjl.tools@gmail.com> References: <20220205172446.652011-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3029.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2022 17:24:51 -0000 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