[cfe-users] Coverage instrumentation on a large project
Seboek, Janos via cfe-users
cfe-users at lists.llvm.org
Fri Oct 12 10:37:52 PDT 2018
I am trying to link a very large (3.5 gigabytes) library. This works fine normally. However, when trying to pass -fprofile-instr-generate & -fcoverage-mapping, the compilation now fails during the linking step, complaining about a "relocation overflow: reference to local symbol <x> in <y>" for many, many symbols.
Is there a commandline switch I can pass to prevent this without having to redo the large legacy source code? I have already attempted using a newer clang version (currently using 6.0) and/or passing -mcmodel=large and -mcmodel=medium, but to no avail.
Just helping me try to understand what precisely this means would also be helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users