diff options
author | Nick Clifton <nickc@redhat.com> | 2021-05-07 17:07:41 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-05-07 17:08:48 +0100 |
commit | 476654beaead1ac1b4322c01722ace865e4adee4 (patch) | |
tree | 0cff4b8486bf8727bef5c7a135d0d169ba2cce45 /gas/doc/as.texi | |
parent | 8a82de5884386be4c10f16eb55a94993ac6ea858 (diff) | |
download | gdb-476654beaead1ac1b4322c01722ace865e4adee4.zip gdb-476654beaead1ac1b4322c01722ace865e4adee4.tar.gz gdb-476654beaead1ac1b4322c01722ace865e4adee4.tar.bz2 |
Add a generic .bss directive for ELF based targets.
PR 3136
* config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
(obj_elf_bss): New function. Change to the .bss section.
Support an optional subsection number.
(obj_elf_change_section): Call obj_elf_section_change_hook.
(obj_elf_section): Likewise.
(obj_elf_data): Likewise.
(obj_elf_text): Likewise.
(obj_elf_struct): Likewise.
(obj_elf_subsection): Likewise.
(obj_elf_previous): Likewise.
* config/obj-elf.h (obj_elf_bss): Prototype.
* doc/as.texi (Bss): New node.
Diffstat (limited to 'gas/doc/as.texi')
-rw-r--r-- | gas/doc/as.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/doc/as.texi b/gas/doc/as.texi index e0559cf..292c4af2 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -4365,6 +4365,7 @@ Some machine configurations provide additional directives. * Asciz:: @code{.asciz "@var{string}"}@dots{} * Attach_to_group:: @code{.attach_to_group @var{name}} * Balign:: @code{.balign [@var{abs-expr}[, @var{abs-expr}]]} +* Bss:: @code{.bss @var{subsection}} * Bundle directives:: @code{.bundle_align_mode @var{abs-expr}}, etc * Byte:: @code{.byte @var{expressions}} * CFI directives:: @code{.cfi_startproc [simple]}, @code{.cfi_endproc}, etc. @@ -4709,6 +4710,18 @@ filled in with the value 0x368d (the exact placement of the bytes depends upon the endianness of the processor). If it skips 1 or 3 bytes, the fill value is undefined. +@node Bss +@section @code{.bss @var{subsection}} +@cindex @code{bss} directive + +@code{.bss} tells @command{@value{AS}} to assemble the following statements +onto the end of the bss section. +@ifset ELF +For ELF based targets an optional @var{subsection} expression (which must +evaluate to a positive integer) can be provided. In this case the statements +are appended to the end of the indicated bss subsection. +@end ifset + @node Bundle directives @section Bundle directives @subsection @code{.bundle_align_mode @var{abs-expr}} |