X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gas%2Fdoc%2Fc-bpf.texi;h=c368773ae09de729c50b3036ce5caf9d7723eb28;hb=6914be53bd662eefd979d0c82d2e20e108c4ee66;hp=13f41441caa9137ca7d300563f8922a25e28283e;hpb=3719fd55b6f89662653d50d33bb267c5f21127a5;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/doc/c-bpf.texi b/gas/doc/c-bpf.texi index 13f41441ca..c368773ae0 100644 --- a/gas/doc/c-bpf.texi +++ b/gas/doc/c-bpf.texi @@ -1,4 +1,4 @@ -@c Copyright (C) 2019 Free Software Foundation, Inc. +@c Copyright (C) 2019-2020 Free Software Foundation, Inc. @c This is part of the GAS manual. @c For copying conditions, see the file as.texinfo. @@ -17,6 +17,7 @@ @menu * BPF Options:: Options * BPF Syntax:: Syntax +* BPF Directives:: Machine Directives * BPF Opcodes:: Opcodes @end menu @@ -104,6 +105,28 @@ descriptor @samp{2} in register @samp{r1} we would do: lddw %r1, %map_fd(2) @end smallexample +@node BPF Directives +@section Machine Directives + +@cindex machine directives, BPF + +The BPF version of @code{@value{AS}} supports the following additional +machine directives: + +@table @code +@cindex @code{half} directive, BPF +@item .word +The @code{.half} directive produces a 16 bit value. + +@cindex @code{word} directive, BPF +@item .word +The @code{.word} directive produces a 32 bit value. + +@cindex @code{dword} directive, BPF +@item .dword +The @code{.dword} directive produces a 64 bit value. +@end table + @node BPF Opcodes @section Opcodes