aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2006-04-16 18:15:55 +0000
committerMark Mitchell <mark@codesourcery.com>2006-04-16 18:15:55 +0000
commit58ab4f3d647d158c340b2af07a51ad8f107c9288 (patch)
tree42161773d37973d96b434c29543358b3bd141628 /gas/doc
parentffdc4eeddfac9032c5e824cb5f08ebf7816237db (diff)
downloadgdb-58ab4f3d647d158c340b2af07a51ad8f107c9288.zip
gdb-58ab4f3d647d158c340b2af07a51ad8f107c9288.tar.gz
gdb-58ab4f3d647d158c340b2af07a51ad8f107c9288.tar.bz2
* doc/as.texinfo: Mention that some .type syntaxes are not
supported on all architectures.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/as.texinfo17
1 files changed, 13 insertions, 4 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index 4fe0ef4..dfe7860 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -5964,9 +5964,21 @@ For ELF targets, the @code{.type} directive is used like this:
This sets the type of symbol @var{name} to be either a
function symbol or an object symbol. There are five different syntaxes
supported for the @var{type description} field, in order to provide
-compatibility with various other assemblers. The syntaxes supported are:
+compatibility with various other assemblers.
+
+Because some of the characters used in these syntaxes (such as @samp{@@} and
+@samp{#}) are comment characters for some architectures, some of the syntaxes
+below do not work on all architectures. The first variant will be accepted by
+the GNU assembler on all architectures so that variant should be used for
+maximum portability, if you do not need to assemble your code with other
+assemblers.
+
+The syntaxes supported are:
@smallexample
+ .type <name> STT_FUNCTION
+ .type <name> STT_OBJECT
+
.type <name>,#function
.type <name>,#object
@@ -5978,9 +5990,6 @@ compatibility with various other assemblers. The syntaxes supported are:
.type <name>,"function"
.type <name>,"object"
-
- .type <name> STT_FUNCTION
- .type <name> STT_OBJECT
@end smallexample
@end ifset
@end ifset