mirror_zfs/module/icp
Dimitry Andric 2f1f25217f
icp: emit .note.GNU-stack section for all ELF targets
On FreeBSD, linking the zfs kernel module with binutils ld 2.44 shows
the following warning:

    ld: warning: aesni-gcm-avx2-vaes.o: missing .note.GNU-stack section
    implies executable stack
    ld: NOTE: This behaviour is deprecated and will be removed in a
    future version of the linker

Some of the `.S` files under `module/icp/asm-x86_64/modes` check whether
to emit the `.note.GNU-stack` section using:

    #if defined(__linux__) && defined(__ELF__)

We could add `&& defined(__FreeBSD__)` to the test, but since all other
`.S` files in the OpenZFS tree use:

    #ifdef __ELF__

it would seem more logical to use that instead. Any recent ELF platform
should support these note sections by now.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Dimitry Andric <dimitry@andric.com>
Closes #18119
2026-01-08 09:21:12 -08:00
..
algs sha256_generic: make internal functions a little more private 2025-10-20 16:01:04 -07:00
api SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
asm-aarch64 SPDX: license tags: Apache-2.0 2025-03-13 17:57:05 -07:00
asm-arm/sha2 SPDX: license tags: Apache-2.0 2025-03-13 17:57:05 -07:00
asm-ppc64 SPDX: license tags: Apache-2.0 2025-03-13 17:57:05 -07:00
asm-x86_64 icp: emit .note.GNU-stack section for all ELF targets 2026-01-08 09:21:12 -08:00
core Prefer VERIFY0(n) over VERIFY(n == 0) 2025-08-07 11:40:59 -07:00
include Backport AVX2 AES-GCM implementation from BoringSSL 2025-08-13 14:51:20 -07:00
io Prefer VERIFY0(n) over VERIFY(n == 0) 2025-08-07 11:40:59 -07:00
spi icp: remove global icp includes 2025-11-12 10:03:51 -08:00
illumos-crypto.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00