gold (linker)
Developer(s) | Ian Lance Taylor |
---|---|
Written in | C++ |
Operating system | GNU |
Platform | x86, x86-64, ARM, PowerPC |
Type | Linker |
License | GNU General Public License version 3 |
Website | {{ |
gold is a linker for ELF files. It became an official GNU package[1] and was added to binutils on 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 supported formats to ELF only, it's also claimed to result in a cleaner and faster implementation without an additional abstraction layer. Complete removal of BFD was cited as a reason to create a new linker from scratch rather than incrementally improve the GNU linker.[5]
To specify gold in makefile, set the LD environmental variable to ld.gold. To specify gold through a linker option, use an option like ld's -fuse-ld=gold. To specify gold through a compiler driver like GCC, use a command line option -Wl,-fuse-ld=gold.
See also
- GNU binutils
- GNU linker
- Comparison of executable file formats, also for PE/COFF (Windows), and Mach-O (Mac OS X) formats.
References
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ 4.0 4.1 Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
External links
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
<templatestyles src="Asbox/styles.css"></templatestyles>