60
Chapter 8. Assembler Directives
s
shared section (meaningful for PE targets)
a
ignored. (For compatibility with the ELF version)
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. Note the
n
and
w
flags remove
attributes from the section, rather than adding them, so if they are used on their own it will be as if no
flags had been specified at all.
If the optional argument to the
.section
directive is not quoted, it is taken as a subsegment number
(Section 5.4 Sub Sections).
8.78.2. ELF Version
This is one of the ELF section stack manipulation directives. The others are
.subsection
(Section
8.89
.subsection name
),
.pushsection
(Section 8.73
.pushsection name, subsection
),
.popsection
(Section 8.68
.popsection
), and
.previous
(Section 8.67
.previous
).
For ELF targets, the
.section
directive is used like this:
.section name [, "flags"[, @type[,flag_specific_arguments]]
The optional
flags
argument is a quoted string which may contain any combination of the following
characters:
a
section is allocatable
w
section is writable
x
section is executable
M
section is mergeable
S
section contains zero terminated strings
G
section is a member of a section group
T
section is used for thread local storage
The optional
type
argument may contain one of the following constants:
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved