gold (linker)

gold
Developer(s) Ian Lance Taylor
Written in C++
Operating system GNU
Platform x86, x86-64, ARM, PowerPC, TileGX
Type Linker
License GNU General Public License version 3

In software engineering, gold is a linker for ELF files. It became an official GNU package[1] and was added to binutils in March, 2008[2][3] and first released in binutils version 2.19. Gold was developed by Ian Lance Taylor and a small team at Google.[4] The motivation for writing gold was to make a linker that is faster than the GNU linker,[4] especially for large applications coded in C++.

Unlike the GNU linker, gold doesn't use the BFD library to process object files. While this limits the object file formats it can process to ELF only, it is also claimed to result in a cleaner and faster implementation without an additional abstraction layer. The author cited complete removal of BFD as a reason to create a new linker from scratch rather than incrementally improve the GNU linker.[5]

To specify gold in a makefile, one sets the LD or LD environmental variable to ld.gold. To specify gold through a compiler option, one can use the gcc option -fuse-ld=gold.

See also

References

  1. "gold README". 2013-02-06. Retrieved 2017-01-22. It is a GNU program, and therefore follows the GNU formatting standards[...]
  2. "gold/README: Initial CVS checkin of gold". Retrieved 2017-01-22.
  3. Ian Lance Taylor (2008-03-21). "New ELF linker code added to GNU binutils". binutils mailing list. Retrieved 2017-01-22.
  4. 1 2 Ian Lance Taylor (2008-04-04). "gold: Google Releases New and Improved GCC Linker". Google Open Source Blog. Retrieved 2017-01-22.
  5. Ian Lance Taylor (2008). A New ELF Linker. GCC Developers' Summit. pp. 129&ndash, 136. Retrieved 2017-01-22.
  • Ian Lance Taylor (2007-08-22). "Linkers part 1". Retrieved 2017-01-22.
  • Edge, Jake (2008-03-26). "Striking gold in binutils". LWN.net. Retrieved 2017-01-22.
  • "The LLVM gold plugin".
  • Coutant, Cary (2012-04-05). "Incremental Linking with Gold" (PDF). Linux Foundation Collaboration Summit.
  • "Incremental Linking with Gold". 2012 Linux Foundation Collaboration Summit. 2012-04-11.


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.