Linker and Libraries Guide

Overview

The link-editor automatically and intelligently maps input sections from relocatable objects to segments within the output file object. The -M option with an associated mapfile allows you to change the default mapping provided by the link-editor.

In particular, this mapfile option allows you to:

The mapfile option allows users of ifiles (an option previously available to the link-editor that used command language directives) to convert to mapfiles. All other facilities previously available for ifiles, other than those mentioned above, are not available with the mapfile option.


Note -

When using the mapfile option, be aware that you can easily create a.out files that do not execute. The link-editor knows how to produce a correct a.out without the use of the mapfile option. The mapfile option is intended for system programming use, not application programming use.