Copyright (C) 2000-2012 |
Whole document tree
7.52
|
.section name[, "flags"] .section name[, subsegment] |
If the optional argument is quoted, it is taken as flags to use for the section. Each flag is a single character. The following flags are recognized:
b
n
w
d
r
x
If no flags are specified, the default flags depend upon the section name. If the section name is not recognized, the default will be for the section to be loaded and writable.
If the optional argument to the .section
directive is not quoted, it is
taken as a subsegment number (see section 4.4 Sub-Sections).
For ELF targets, the .section
directive is used like this:
.section name[, "flags"[, @type]] |
a
w
x
The optional type argument may contain one of the following constants:
@progbits
@nobits
If no flags are specified, the default flags depend upon the section name. If the section name is not recognized, the default will be for the section to have none of the above flags: it will not be allocated in memory, nor writable, nor executable. The section will contain data.
For ELF targets, the assembler supports another type of .section
directive for compatibility with the Solaris assembler:
.section "name"[, flags...] |
#alloc
#write
#execinstr
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |