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

Segment declarations

A segment declaration creates a new segment in the a.out or changes the attribute values of an existing segment. (An existing segment is one that you previously defined or one of the three built-in segments described below.)

A segment declaration has the following syntax:

segment_name <= {segment_attribute_value}*;

For each segment_name, you can specify any number of segment_attribute_values in any order, each separated by a space. (Only one attribute value is allowed for each segment attribute.) The segment attributes and their valid values are as follows:


segment_type:
LOAD
NOTE

segment flags:
?[R][W][X]

virtual_address:
Vnumber

physical_address:
Pnumber

length:
Lnumber

alignment:
Anumber
There are three built-in segments with the following default attribute values: ld behaves as if these segments had been declared before your mapfile is read in. See ``Mapfile option defaults'' for more information.

Note the following when entering segment declarations:


Next topic: Mapping directives
Previous topic: Mapfile structure and syntax

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