LX51 User's Guide

PUBLICSONLY Linker Directive

Abbreviation

PO

Arguments

PUBLICSONLY (inputfile)

Default

Includes all information from the inputfile.

µVision

Options for Group/File — Properties — Link Publics Only.

Description

The PUBLICSONLY directive includes only public symbol information from the inputfile in the generated object file. Data content and debug symbols are excluded. Since the LX51 Linker supports incremental linkage, this means you may use a linker output file as an inputfile (with the PUBLICSONLY directive).

This directive may be used to create a linker overlay or to obtain public symbol addresses from an object module without including the actual code from that module.

The PUBLICSONLY directive is used in the input file list. It may not be specified in the directives part of the command line.

See Also

MERGEPUBLICS

Example
LX51 f1.obj, PUBLICSONLY (f2.obj, f3.obj)
LX51 PO (f1.obj), f2.obj, PO (ABC.LIB)