IBM Support

ld: 0711-781 ERROR: TOC overflow

Troubleshooting


Problem

When the linker error "ld: 0711-781 ERROR: TOC overflow" occurs, you have several options to prevent TOC overflow when compile-linking your application.

Resolving The Problem

  • Use the -bbigtoc linker option with either the compile or linker invocation command. One disadvantage of using this option is that it generates extra code if the size of the table of contents
    (TOC) is greater than 64KB. Extra code is needed for every reference to a TOC symbol that cannot be addressed with a 16-bit offset. Because a program containing generated code may have poor
    performance, you should reduce the number of TOC entries needed by the program before using this option.
  • Break up large segments of code into smaller compilation units
  • Reduce the number of variables in the compilation unit

[{"Product":{"code":"SSB259","label":"XL Fortran Advanced Edition for Linux"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Compiler","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
24 February 2022

UID

swg21175442