-qweaksymbol

Category

Object code control

Pragma equivalent

None.

Purpose

Enables the generation of weak symbols.

When the -qweaksymbol option is in effect, the compiler generates weak symbols for the following cases:
  • Inline functions with external linkage
  • Identifiers specified as weak with #pragma weak or __attribute__((weak))

Syntax

Read syntax diagramSkip visual syntax diagram
        .-weaksymbol---.   
>>- -q--+-noweaksymbol-+---------------------------------------><

Defaults

-qweaksymbol

Predefined macros

None.

Related information