-qminimaltoc

Description

Avoids toc overflow conditions in 64-bit compilations by placing toc entries into a separate data section for each object file.

Syntax

Read syntax diagramSkip visual syntax diagram        .-nominimaltoc-.
>>- -q--+-minimaltoc---+---------------------------------------><
 

Notes

This compiler option applies to 64-bit compilations only.

Programs compiled in 64-bit mode have a limit of 8192 toc entries. As a result, you may encounter "relocation truncation" error messages when linking large programs in 64-bit mode. You can avoid such toc overflow errors by compiling with the -qminimaltoc option.

Compiling with -qminimaltoc may create slightly slower and larger code for your program. However, these effects may be minimized by specifying optimizing options when compiling your program.

Related information