aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2008-10-06 17:31:39 +0000
committerBob Wilson <bob.wilson@acm.org>2008-10-06 17:31:39 +0000
commit4d4175aff7dd65648fe55d13a111fdd90a5dca1b (patch)
treeb6e3fad3478e57b88c6661191f86283aecf1c4b6 /gas
parent80c35038cb89902c4e4a1d4f33c5cd1d0268807d (diff)
downloadfsf-binutils-gdb-4d4175aff7dd65648fe55d13a111fdd90a5dca1b.zip
fsf-binutils-gdb-4d4175aff7dd65648fe55d13a111fdd90a5dca1b.tar.gz
fsf-binutils-gdb-4d4175aff7dd65648fe55d13a111fdd90a5dca1b.tar.bz2
* doc/as.texinfo (Local): New description of ELF .local directive.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/doc/as.texinfo19
2 files changed, 23 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 502d2cb..000667f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-06 Bob Wilson <bob.wilson@acm.org>
+
+ * doc/as.texinfo (Local): New description of ELF .local directive.
+
2008-10-06 Nick Clifton <nickc@redhat.com>
PR 6926
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index c0aef5c..457c638 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -3877,6 +3877,9 @@ Some machine configurations provide additional directives.
* Ln:: @code{.ln @var{line-number}}
* LNS directives:: @code{.file}, @code{.loc}, etc.
+@ifset ELF
+* Local:: @code{.local @var{names}}
+@end ifset
* Long:: @code{.long @var{expressions}}
@ignore
@@ -5019,6 +5022,22 @@ If @var{val} is non-zero, this tells @command{@value{AS}} to enter MRI mode. If
affects code assembled until the next @code{.mri} directive, or until the end
of the file. @xref{M, MRI mode, MRI mode}.
+@ifset ELF
+@node Local
+@section @code{.local @var{names}}
+
+@cindex @code{local} directive
+This directive, which is available for ELF targets, marks each symbol in
+the comma-separated list of @code{names} as a local symbol so that it
+will not be externally visible. If the symbols do not already exist,
+they will be created.
+
+For targets where the @code{.lcomm} directive (@pxref{Lcomm}) does not
+accept an alignment argument, which is the case for most ELF targets,
+the @code{.local} directive can be used in combination with @code{.comm}
+(@pxref{Comm}) to define aligned local common data.
+@end ifset
+
@node List
@section @code{.list}