DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Linking with the mapfile option

Mapfile structure and syntax

You can enter three types of directives into a mapfile:

Each directive can span more than one line and can have any amount of white space (including new-lines) as long as it is followed by a semicolon. You can enter 0 (zero) or more directives in a mapfile. (Entering 0 directives causes ld to ignore the mapfile and use its own defaults.) Typically, segment declarations are followed by mapping directives. You would declare a segment and then define the criteria by which a section becomes part of that segment. If you enter a mapping directive or size-symbol declaration without first declaring the segment to which you are mapping (except for built-in segments, explained later), the segment is given default attributes as explained below. This segment is then an ``implicitly declared segment.''

Size-symbol declarations can appear anywhere in a mapfile.

The following subtopics describe each directive type. For all syntax discussions, the following apply:


Next topic: Segment declarations
Previous topic: Using the mapfile option

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005