This specifies the hard limit for frame sizes, in bytes. Currently, the value that can be specified should be less than or equal to
32767. Defaults to whatever limit is imposed by the version of the Linux kernel targeted.
This specifies the minimum version of the kernel that will run the compiled program. GCC uses this version to determine which instructions to use, what kernel helpers to allow, etc. Currently,
versioncan be one of
Generate code for a big-endian target.
Generate code for a little-endian target. This is the default.
Enable generation of extra conditional-branch instructions. Enabled for CPU v2 and above.
Enable 32-bit jump instructions. Enabled for CPU v3 and above.
Enable 32-bit ALU instructions. Enabled for CPU v3 and above.
This specifies which version of the eBPF ISA to target. Newer versions may not be supported by all kernels. The default is
Supported values for
Enable BPF Compile Once - Run Everywhere (CO-RE) support. Requires and is implied by
Disable BPF Compile Once - Run Everywhere (CO-RE) support. BPF CO-RE support is enabled by default when generating BTF debug information for the BPF target.
Generate code for an expanded version of BPF, which relaxes some of the restrictions imposed by the BPF architecture:
Save and restore callee-saved registers at function entry and exit, respectively.