]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgcc: aarch64: Configure check for __getauxval
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 4 Dec 2023 10:52:52 +0000 (10:52 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 8 Dec 2023 11:29:06 +0000 (11:29 +0000)
commitdbbfb52b0e9c66ee9d05b8fd17c4f44655e48463
tree701027cd38d86213b29d683c599ef168edc41fda
parent3ebb591c65b4fbe0cddd23ebc0ca2d9f7aef2cec
libgcc: aarch64: Configure check for __getauxval

Add configure check for the __getauxval ABI symbol, which is always
available on aarch64 glibc, and may be available on other linux C
runtimes. For now only enabled on glibc, others have to override it

  target_configargs=libgcc_cv_have___getauxval=yes

This is deliberately obscure as it should be auto detected, ideally
via a feature test macro in unistd.h (link time detection is not
possible since the libc may not be installed at libgcc build time),
but currently there is no such feature test mechanism.

Without __getauxval, libgcc cannot do runtime CPU feature detection
and has to assume only the build time known features are available.

libgcc/ChangeLog:

* config.in: Undef HAVE___GETAUXVAL.
* configure: Regenerate.
* configure.ac: Check for __getauxval.
libgcc/config.in
libgcc/configure
libgcc/configure.ac