freebsd-src/sys/contrib/openzfs
Dimitry Andric eb1b6ec7a7 zfs: 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:	emaste, kib, imp
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D54578
2026-01-08 09:51:36 +01:00
..
.github zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
cmd zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
config zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
contrib zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
etc zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
include zfs: rename several printf attribute declarations to __printf__ 2025-12-30 13:50:45 +01:00
lib zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
man zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
module zfs: emit .note.GNU-stack section for all ELF targets 2026-01-08 09:51:36 +01:00
rpm zfs: merge openzfs/zfs@89f729dcc 2025-12-07 22:38:13 +01:00
scripts zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
tests zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
udev zfs: merge openzfs/zfs@89f729dcc 2025-12-07 22:38:13 +01:00
.editorconfig
.gitignore
.mailmap zfs: merge openzfs/zfs@0455150f1 2025-10-25 10:01:38 +02:00
AUTHORS zfs: merge openzfs/zfs@0455150f1 2025-10-25 10:01:38 +02:00
autogen.sh zfs: merge openzfs/zfs@e63d026b9 2025-11-17 17:11:32 +01:00
CODE_OF_CONDUCT.md
configure.ac zfs: merge openzfs/zfs@8170eb6eb 2025-06-22 01:00:36 +02:00
copy-builtin
COPYRIGHT
LICENSE
Makefile.am zfs: merge openzfs/zfs@7939bad5e 2025-09-10 17:28:34 +02:00
META zfs: merge openzfs/zfs@962e68865 2025-12-19 21:45:10 +01:00
NEWS
NOTICE
README.md zfs: merge openzfs/zfs@e63d026b9 2025-11-17 17:11:32 +01:00
RELEASES.md
TEST
zfs.release.in

img

OpenZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the OpenZFS community. This repository contains the code for running OpenZFS on Linux and FreeBSD.

codecov coverity

Official Resources

Installation

Full documentation for installing OpenZFS on your favorite operating system can be found at the Getting Started Page.

Contribute & Develop

We have a separate document with contribution guidelines.

We have a Code of Conduct.

Release

OpenZFS is released under a CDDL license. For more details see the NOTICE, LICENSE and COPYRIGHT files; UCRL-CODE-235197

Supported Kernels

  • The META file contains the officially recognized supported Linux kernel versions.
  • Supported FreeBSD versions are any supported branches and releases starting from 13.0-RELEASE.