Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I tell if I'm using the GOLD linker?

Tags:

gcc

Someone else in my group built LD for my team to use. How can I tell if it was built with --enable-gold?

like image 503
dromodel Avatar asked Jun 11 '13 15:06

dromodel


1 Answers

Check the symlink /usr/bin/ld via ls -al, if it links to ld.gold or ld.bfd. The rest should be obvious.

Note: Nameing might be slightly different, the above is true for ArchLinux. On other systems ld.gold might be called gold directly and ld.bfd could be called ld.

like image 54
drahnr Avatar answered Oct 18 '22 02:10

drahnr