Mapfile Directives

The following directives are accepted by the link-editor.

Table 10-6 Mapfile Directives

Directive Purpose

ANCILLARY

Create ancillary output objects

CAPABILITY

Hardware, software, machine, and platform capabilities

DEPEND_VERSIONS

Specify allowed versions from sharable object dependencies

FILTER

Specify that object is a shared object filter

HDR_NOALLOC

ELF header and program headers are not allocable

LOAD_SEGMENT

Create new loadable segment, or modify an existing load segment

NOTE_SEGMENT

Create note segment, or modify an existing note segment

NULL_SEGMENT

Create null segment, or modify an existing null segment

PHDR_ADD_NULL

Add Null Program Header Entries

RESERVE_SEGMENT

Create memory reservation segment

SEGMENT_ORDER

Specify the order of segments in the output object and program header array

STACK

Process Stack Attributes

STUB_OBJECT

Specify that object can be built as a stub object

SYMBOL_SCOPE

Set symbol attributes and scope within the unnamed global version

SYMBOL_VERSION

Set symbol attributes and scope within an explicitly named version

The specific syntax for each supported mapfile directive is shown in the sections that follow.