DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
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 zero 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 sections describe each directive type. For all syntax discussions, the following apply:


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

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003