SECTIONS

SECTIONS definitions

This statement sets attributes for one or more sections in the image file. It can be used to override the default attributes for each type of section.

SECTIONS marks the beginning of a list of section definitions. Each definition must be on a separate line. The SECTIONS keyword can be on the same line as the first definition or on a preceding line. The .def file can contain one or more SECTIONS statements. The SEGMENTS keyword is supported as a synonym for SECTIONS.

The syntax for a section definition is:

section [CLASS 'classname'] attributes

The section name is case sensitive. The CLASS keyword is supported for compatibility, but is ignored. The attributes are one or more of the following: EXECUTE, READ, SHARED, and WRITE.

An equivalent way to specify section attributes is with the /SECTION option.