mirror_zfs/module/icp/asm-x86_64/modes
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
..
aesni-gcm-avx2-vaes.S icp: emit .note.GNU-stack section for all ELF targets 2026-01-08 09:21:12 -08:00
aesni-gcm-x86_64.S icp: emit .note.GNU-stack section for all ELF targets 2026-01-08 09:21:12 -08:00
gcm_pclmulqdq.S SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
ghash-x86_64.S icp: emit .note.GNU-stack section for all ELF targets 2026-01-08 09:21:12 -08:00
THIRDPARTYLICENSE.boringssl Backport AVX2 AES-GCM implementation from BoringSSL 2025-08-13 14:51:20 -07:00
THIRDPARTYLICENSE.boringssl.descrip Backport AVX2 AES-GCM implementation from BoringSSL 2025-08-13 14:51:20 -07:00
THIRDPARTYLICENSE.cryptogams ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
THIRDPARTYLICENSE.cryptogams.descrip ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
THIRDPARTYLICENSE.openssl ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
THIRDPARTYLICENSE.openssl.descrip ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00