aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-04-30 10:13:53 +0100
committerNick Clifton <nickc@redhat.com>2015-04-30 10:13:53 +0100
commit7ce98c164ed42df085c1b3e08c5261e02320149b (patch)
treef5c3398002be6f92168df01a0e05974e27a77a2a
parent5fccc63539a111f4087522316819cc8a4b28c6b0 (diff)
downloadgdb-7ce98c164ed42df085c1b3e08c5261e02320149b.zip
gdb-7ce98c164ed42df085c1b3e08c5261e02320149b.tar.gz
gdb-7ce98c164ed42df085c1b3e08c5261e02320149b.tar.bz2
Adds documentation of GAS's .zero directive.
PR gas/18353 * doc/as.texinfo (Zero): Add documentation of the .zero pseudo-op.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/doc/as.texinfo15
2 files changed, 20 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9ba6648..062e13d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-30 Nick Clifton <nickc@redhat.com>
+
+ PR gas/18353
+ * doc/as.texinfo (Zero): Add documentation of the .zero pseudo-op.
+
2015-04-29 Nick Clifton <nickc@redhat.com>
PR 18256
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index d09e88c..aac488e 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -4380,6 +4380,9 @@ Some machine configurations provide additional directives.
* Weak:: @code{.weak @var{names}}
* Weakref:: @code{.weakref @var{alias}, @var{symbol}}
* Word:: @code{.word @var{expressions}}
+@ifclear no-space-dir
+* Zero:: @code{.zero @var{size}}
+@end ifclear
* Deprecated:: Deprecated Directives
@end menu
@@ -6995,6 +6998,18 @@ assembly language programmers.
@end ifset
@c end DIFF-TBL-KLUGE
+@ifclear no-space-dir
+@node Zero
+@section @code{.zero @var{size}}
+
+@cindex @code{zero} directive
+@cindex filling memory with zero bytes
+This directive emits @var{size} 0-valued bytes. @var{size} must be an absolute
+expression. This directive is actually an alias for the @samp{.skip} directive
+so in can take an optional second argument of the value to store in the bytes
+instead of zero. Using @samp{.zero} in this way would be confusing however.
+@end ifclear
+
@node Deprecated
@section Deprecated Directives