aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-09-03 14:02:30 +0000
committerNick Clifton <nickc@redhat.com>2008-09-03 14:02:30 +0000
commita6c24e68b9c0bde0587b9fbf2a50aa09c58c207c (patch)
tree6532bfb765766c2b7fa3e647ac4c1fda0c604ae4 /gas/doc
parent514f746bdc40681c8a32ef8077adeae4f2098db2 (diff)
downloadgdb-a6c24e68b9c0bde0587b9fbf2a50aa09c58c207c.zip
gdb-a6c24e68b9c0bde0587b9fbf2a50aa09c58c207c.tar.gz
gdb-a6c24e68b9c0bde0587b9fbf2a50aa09c58c207c.tar.bz2
* config/tc-i386.c (pe_lcomm_internal): New function. Allows the
alignment field of the .lcomm directive to be optional. (pe_lcomm): New function. Pass pe_lcomm_internal to s_comm_internal. (md_pseudo_table): Implement .lcomm directive for COFF based targets. * doc/c-i386.texi (i386-Directives): New node. Used to document the .lcomm directive.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/c-i386.texi26
1 files changed, 26 insertions, 0 deletions
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index 55cab7e..731bda2 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -23,6 +23,7 @@ extending the Intel architecture to 64-bits.
@menu
* i386-Options:: Options
+* i386-Directives:: X86 specific directives
* i386-Syntax:: AT&T Syntax versus Intel Syntax
* i386-Mnemonics:: Instruction Naming
* i386-Regs:: Register Naming
@@ -193,6 +194,31 @@ The @code{.att_syntax} and @code{.intel_syntax} directives will take precedent.
@end table
+@node i386-Directives
+@section x86 specific Directives
+
+@cindex machine directives, x86
+@cindex x86 machine directives
+@table @code
+
+@cindex @code{lcomm} directive, COFF
+@item .lcomm @var{symbol} , @var{length}[, @var{alignment}]
+Reserve @var{length} (an absolute expression) bytes for a local common
+denoted by @var{symbol}. The section and value of @var{symbol} are
+those of the new local common. The addresses are allocated in the bss
+section, so that at run-time the bytes start off zeroed. @var{Symbol}
+is not declared global (@pxref{Global,,@code{.global}}), so is normally
+not visible to @code{@value{LD}}. The optional third parameter,
+@var{alignment}, specifies the desired alignment of the symbol in the
+bss section.
+
+This directive is only available for COFF based x86 targets.
+
+@c FIXME: Document other x86 specific directives ? Eg: .code16gcc,
+@c .largecomm
+
+@end table
+
@node i386-Syntax
@section AT&T Syntax versus Intel Syntax