]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pg_crc32c_armv8_choose.c to build with ancient glibc releases.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Nov 2025 20:24:34 +0000 (15:24 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Nov 2025 20:24:40 +0000 (15:24 -0500)
commitdb4eba15266e4f78aa62fd1444f3e858a284c686
tree7dea6b0af47f9219ede2c1b65692f02dbf9c0cf0
parent3e85af1ff4b5bdeac5c7d2f497098ab1ad7bae2d
Fix pg_crc32c_armv8_choose.c to build with ancient glibc releases.

If you go back as far as the RHEL7 era, <sys/auxv.h> does not provide
the HWCAPxxx macros needed with elf_aux_info or getauxval, so you need
to get those from the kernel header <asm/hwcap.h> instead.  We knew
that for the 32-bit case but failed to extrapolate to the 64-bit case.
Oversight in commit aac831caf.

Reported-by: GaoZengqi <pgf00a@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAFmBtr3Av62-jBzdhFkDHXJF9vQmNtSnH2upwODjnRcsgdTytw@mail.gmail.com
Backpatch-through: 18
src/port/pg_crc32c_armv8_choose.c