DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
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

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