9.7.1 BPF Options

-EB

This option specifies that the assembler should emit big-endian eBPF.

-EL

This option specifies that the assembler should emit little-endian eBPF.

-mdialect=dialect

This option specifies the assembly language dialect to recognize while assembling. The assembler supports normal and pseudoc.

-misa-spec=spec

This option specifies the version of the BPF instruction set to use when assembling. The BPF ISA versions supported are v1 v2, v3 and v4.

The value xbpf can be specified to recognize extra instructions that are used by GCC for testing purposes. But beware this is not valid BPF.

-mno-relax

This option tells the assembler to not relax instructions.

Note that if no endianness option is specified in the command line, the host endianness is used.