Keil Logo

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 L166 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.

Example
L166 f1.obj, PUBLICSONLY (f2.obj, f3.obj)
L166 PO (f1.obj), f2.obj, PO (ABC.LIB)
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.