]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Allow overriding HWCAP_CPUID feature check using HWCAP_MASK
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 25 Apr 2017 17:09:17 +0000 (22:39 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 7 Jun 2017 05:41:39 +0000 (11:11 +0530)
commitf82e9672ad89ea1ef40bbe1af71478e255e87c5e
tree835c3688e6176ca52c9df51eb30f538d8d276ba9
parentff08fc59e36e02074eba8ab39b0d9001363970f0
aarch64: Allow overriding HWCAP_CPUID feature check using HWCAP_MASK

Now that LD_HWCAP_MASK (or glibc.tune.hwcap_mask) is read early enough
to influence cpu feature check in aarch64, use it to influence
multiarch selection.  Setting LD_HWCAP_MASK such that it clears
HWCAP_CPUID will now disable multiarch for the binary.

HWCAP_CPUID is also now set in HWCAP_IMPORTANT so that it is set by
default.  With this patch, this feature is only usable with
dyanmically linked binaries because LD_HWCAP_MASK is not read for
static binaries.  A future patch fixes that.

* sysdeps/unix/sysv/linux/aarch64/cpu-features.c
(init_cpu_features): Use glibc.tune.hwcap_mask.
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h: New file.
ChangeLog
sysdeps/unix/sysv/linux/aarch64/cpu-features.c
sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h [new file with mode: 0644]