relocation

Avoiding Relocation Errors when Building Applications with Large Global or Static Data on Intel64 Linux

Applications with >2GB of static or global data should be built with –mcmodel=medium –shared-intel on Intel64 Linux*. If linked with static libraries, these should also be built with –mcmodel=medium. Else, "relocation truncated to fit" errors may occur.
  • Developers
  • Linux*
  • C/C++
  • Fortran
  • Intel® C++ Compiler
  • Intel® C++ Composer XE
  • Intel® Fortran Compiler
  • Intel® Fortran Composer XE
  • -mcmodel
  • memory model
  • relocation
  • Subscribe to relocation