I am building a cpp project, but the link fails, because the .debug_info
segment is too large, exceeding 2^32-1
. Is there a tool to locate which part of the code has a larger .debug_info
segment, or is there a way to remove this limitation?
compiler version:
g++ (GCC) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
error:
ld.lld: error: thread.cc:(.debug_info+0x90A0): relocation R_X86_64_32 out of range: 4306390516 is not in [0, 4294967295]; consider recompiling with -fdebug-types-section to reduce size of debug sections