summaryrefslogtreecommitdiffstats
path: root/gas/doc
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2004-04-13 17:56:13 +0000
committerBob Wilson <bob.wilson@acm.org>2004-04-13 17:56:13 +0000
commited9589d48693dbbff1d2c021167495176770ceff (patch)
tree5b6be254c45abde60626466cb3fdeeb2dcbf2410 /gas/doc
parent925d60e5e9d530cdc4109e94139868cce76cc71f (diff)
downloadppe42-binutils-ed9589d48693dbbff1d2c021167495176770ceff.tar.gz
ppe42-binutils-ed9589d48693dbbff1d2c021167495176770ceff.zip
* doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
of .section directive; add a reference to the ELF .subsection directive.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/as.texinfo20
1 files changed, 15 insertions, 5 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index fc02bb729d..554eee7f3b 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -2983,9 +2983,9 @@ data subsections as a data section.
To specify which subsection you want subsequent statements assembled
into, use a numeric argument to specify it, in a @samp{.text
@var{expression}} or a @samp{.data @var{expression}} statement.
-@ifset COFF-ELF
+@ifset COFF
@ifset GENERIC
-When generating COFF or ELF output, you
+When generating COFF output, you
@end ifset
@ifclear GENERIC
You
@@ -2994,6 +2994,16 @@ can also use an extra subsection
argument with arbitrary named sections: @samp{.section @var{name},
@var{expression}}.
@end ifset
+@ifset ELF
+@ifset GENERIC
+When generating ELF output, you
+@end ifset
+@ifclear GENERIC
+You
+@end ifclear
+can also use the @code{.subsection} directive (@pxref{SubSection})
+to specify a subsection: @samp{.subsection @var{expression}}.
+@end ifset
@var{Expression} should be an absolute expression.
(@xref{Expressions}.) If you just say @samp{.text} then @samp{.text 0}
is assumed. Likewise @samp{.data} means @samp{.data 0}. Assembly
@@ -4334,7 +4344,7 @@ partial programs. You may need the HPPA-only @code{.EXPORT} directive as well.
@cindex @code{hidden} directive
@cindex visibility
-This one of the ELF visibility directives. The other two are
+This is one of the ELF visibility directives. The other two are
@code{.internal} (@pxref{Internal,,@code{.internal}}) and
@code{.protected} (@pxref{Protected,,@code{.protected}}).
@@ -4510,7 +4520,7 @@ integers. On the H8/300H and the Renesas SH, however, @code{.int} emits
@cindex @code{internal} directive
@cindex visibility
-This one of the ELF visibility directives. The other two are
+This is one of the ELF visibility directives. The other two are
@code{.hidden} (@pxref{Hidden,,@code{.hidden}}) and
@code{.protected} (@pxref{Protected,,@code{.protected}}).
@@ -4997,7 +5007,7 @@ assembly. You must put @var{string} in double quotes.
@cindex @code{protected} directive
@cindex visibility
-This one of the ELF visibility directives. The other two are
+This is one of the ELF visibility directives. The other two are
@code{.hidden} (@pxref{Hidden}) and @code{.internal} (@pxref{Internal}).
This directive overrides the named symbols default visibility (which is set by
OpenPOWER on IntegriCloud