aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-01-30 14:44:36 +0000
committerNick Clifton <nickc@redhat.com>2007-01-30 14:44:36 +0000
commitbf083c64df944d5de2c01b0bb0ab821801b7b3f9 (patch)
treeb708c773e7bc06bf7b473d762956ba86ae7a4d20 /gas/doc
parentef7723ebe72dd86e57d4c54d5eadc12d0f13e5b2 (diff)
downloadgdb-bf083c64df944d5de2c01b0bb0ab821801b7b3f9.zip
gdb-bf083c64df944d5de2c01b0bb0ab821801b7b3f9.tar.gz
gdb-bf083c64df944d5de2c01b0bb0ab821801b7b3f9.tar.bz2
* as.c (main): Mark symbols created via the --defsym command line
option as volatile so that they can be overridden later on by a .set directive. This maintains compatibility with the behaviour of earlier versions of the assembler. * doc/as.texinfo (--defsym): Document that the defined symbol's value can be overridden via a .set directive.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/as.texinfo4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index be21112..fed4213 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -501,7 +501,9 @@ other assemblers.
@item --defsym @var{sym}=@var{value}
Define the symbol @var{sym} to be @var{value} before assembling the input file.
@var{value} must be an integer constant. As in C, a leading @samp{0x}
-indicates a hexadecimal value, and a leading @samp{0} indicates an octal value.
+indicates a hexadecimal value, and a leading @samp{0} indicates an octal
+value. The value of the symbol can be overridden inside a source file via the
+use of a @code{.set} pseudo-op.
@item -f
``fast''---skip whitespace and comment preprocessing (assume source is