From patchwork Wed May 10 14:47:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 20377 Received: (qmail 106251 invoked by alias); 10 May 2017 14:48:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 74177 invoked by uid 89); 10 May 2017 14:48:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: homiemail-a58.g.dreamhost.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH 5/8] tunables: Add LD_HWCAP_MASK to tunables Date: Wed, 10 May 2017 20:17:14 +0530 Message-Id: <1494427637-14555-6-git-send-email-siddhesh@sourceware.org> In-Reply-To: <1494427637-14555-1-git-send-email-siddhesh@sourceware.org> References: <1494427637-14555-1-git-send-email-siddhesh@sourceware.org> Add LD_HWCAP_MASK to tunables in preparation of it being removed from rtld.c. This allows us to read LD_HWCAP_MASK much earlier so that it can influence IFUNC resolution in aarch64. This patch does not actually do anything other than read the LD_HWCAP_MASK variable and add the tunables way to set the LD_HWCAP_MASK, i.e. via the glibc.tune.hwcap_mask tunable. In a follow-up patch, the _dl_hwcap_mask will be replaced with glibc.tune.hwcap_mask to complete the transition. * elf/dl-tunables.list: Add glibc.tune.hwcap_mask. * scripts/gen-tunables.awk: Include dl-procinfo.h. --- elf/dl-tunables.list | 7 +++++++ scripts/gen-tunables.awk | 1 + 2 files changed, 8 insertions(+) diff --git a/elf/dl-tunables.list b/elf/dl-tunables.list index b9f1488..41ce9af 100644 --- a/elf/dl-tunables.list +++ b/elf/dl-tunables.list @@ -77,4 +77,11 @@ glibc { security_level: SXID_IGNORE } } + tune { + hwcap_mask { + type: UINT_64 + env_alias: LD_HWCAP_MASK + default: HWCAP_IMPORTANT + } + } } diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk index b10b00e..93e5aff 100644 --- a/scripts/gen-tunables.awk +++ b/scripts/gen-tunables.awk @@ -134,6 +134,7 @@ END { print "# error \"Do not include this file directly.\"" print "# error \"Include tunables.h instead.\"" print "#endif" + print "#include \n" # Now, the enum names print "\ntypedef enum"