[cfe-dev] Segementation fault when linking clang

Игорь Пашев pashev.igor at gmail.com
Thu Feb 20 00:46:06 PST 2014


Linking Debug+Asserts give a lot of symbols.

GNU ld has some options to reduce memory usage:

--no-keep-memory
           ld normally optimizes for speed over memory usage by caching the
symbol tables of input files in memory.  This option tells ld to instead
optimize for memory usage, by rereading the symbol tables as necessary.
 This may
           be required if ld runs out of memory space while linking a large
executable.

--hash-size=number
           Set the default size of the linker's hash tables to a prime
number close to number.  Increasing this value can reduce the length of
time it takes the linker to perform its tasks, at the expense of increasing
the
           linker's memory requirements.  Similarly reducing this value can
reduce the memory requirements at the expense of speed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140220/afe49c6d/attachment.html>


More information about the cfe-dev mailing list