Segementation fault when linking clang

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.

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