Check if the elf is linked by lld.
readelf --string-dump .comment <output-file>
By default, ld.lld (version 5) will enable multi-thread to run linking process.
how to enable and disable multithread?
--no-threads Do not run the linker multi-threaded
--threads Run the linker multi-threaded
It would be easier to debug program with only single thread.