[cfe-dev] Segementation fault when linking clang

Grzegorz Bartoszek grze.bartoszek at gmail.com
Thu Feb 20 01:59:29 PST 2014


Release build succeeded so it was probably a memory issue. Thank you for
your help.
Grzegorz


2014-02-20 9:46 GMT+01:00 Игорь Пашев <pashev.igor at gmail.com>:

> 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/6a1d5410/attachment.html>


More information about the cfe-dev mailing list