From: Mark Mitchell Date: Sun, 16 Apr 2006 18:15:55 +0000 (+0000) Subject: * doc/as.texinfo: Mention that some .type syntaxes are not X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58ab4f3d647d158c340b2af07a51ad8f107c9288;p=binutils-gdb.git * doc/as.texinfo: Mention that some .type syntaxes are not supported on all architectures. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index e7425364fbb..00ec913b637 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-04-16 Mark Mitchell + + * doc/as.texinfo: Mention that some .type syntaxes are not + supported on all architectures. + 2006-04-14 Sterling Augustine * config/tc-xtensa.c (emit_single_op): Do not relax MOVI diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 4fe0ef4ca8d..dfe786075cf 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 STT_FUNCTION + .type STT_OBJECT + .type ,#function .type ,#object @@ -5978,9 +5990,6 @@ compatibility with various other assemblers. The syntaxes supported are: .type ,"function" .type ,"object" - - .type STT_FUNCTION - .type STT_OBJECT @end smallexample @end ifset @end ifset