3 ms·
I didn't make precise benchmarking, but when used on a real-world codebases, it speeds up linking about 2x. One trick to know: never make ld.gold the default s
by krasin 11y ago
I didn't make precise benchmarking, but when used on a real-world codebases, it speeds up linking about 2x.
One trick to know: never make ld.gold the default system linker, because there would always be awkward kernel modules which will be corrupted at some point, because they would rely on ld.bfd.
Instead, it's recommended to specify -fuse-ld=gold in the command line for your code, see https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html