aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/as.texinfo
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-09 08:19:18 +0000
committerNick Clifton <nickc@redhat.com>2001-07-09 08:19:18 +0000
commit7e005732aa09aad97c790cab88d294aeed06eada (patch)
tree9411e3103de35962825513144f9ba3b719ddaeda /gas/doc/as.texinfo
parent46712191470afb32ce078cfa49550f84a774973c (diff)
downloadgdb-7e005732aa09aad97c790cab88d294aeed06eada.zip
gdb-7e005732aa09aad97c790cab88d294aeed06eada.tar.gz
gdb-7e005732aa09aad97c790cab88d294aeed06eada.tar.bz2
Add .incbin pseudo op
Diffstat (limited to 'gas/doc/as.texinfo')
-rw-r--r--gas/doc/as.texinfo16
1 files changed, 16 insertions, 0 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index 4228802..cef74c7 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -3452,6 +3452,7 @@ Some machine configurations provide additional directives.
* hword:: @code{.hword @var{expressions}}
* Ident:: @code{.ident}
* If:: @code{.if @var{absolute expression}}
+* Incbin:: @code{.incbin "@var{file}"[,@var{skip}[,@var{count}]]}
* Include:: @code{.include "@var{file}"}
* Int:: @code{.int @var{expressions}}
@ifset ELF
@@ -4124,6 +4125,21 @@ Like @code{.ifeqs}, but the sense of the test is reversed: this assembles the
following section of code if the two strings are not the same.
@end table
+@node Incbin
+@section @code{.incbin "@var{file}"[,@var{skip}[,@var{count}]]}
+
+@cindex @code{incbin} directive
+@cindex binary files, including
+The @code{incbin} directive includes @var{file} verbatim at the current
+location. You can control the search paths used with the @samp{-I} command-line
+option (@pxref{Invoking,,Command-Line Options}). Quotation marks are required
+around @var{file}.
+
+The @var{skip} argument skips a number of bytes from the start of the
+@var{file}. The @var{count} argument indicates the maximum number of bytes to
+read. Note that the data from is not aligned in any way, make sure to proper
+alignment is provided before and after the @code{incbin} directive.
+
@node Include
@section @code{.include "@var{file}"}