📑 Table of Contents
gold
DeveloperIan Lance Taylor
Written inC++
Operating systemGNU
Platformx86, x86-64, ARM, PowerPC, TileGX
TypeLinker
LicenseGNU General Public License version 3
Websitesourceware.org/binutils/

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

Unlike the GNU linker, gold does not 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.[4] This rewrite also fixes some bugs in old ld that break ELF files in various minor ways.[5]

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

Fedora has moved gold from binutils into its own package due to concerns it is suffering from bitrot after Google's interest has moved to LLVM.[6] In particular, gold does not read LDFLAGS variable, so cannot see libraries in folders like /usr/local/lib.

On 2025-02-02 the 2.44 version of GNU Binutils removed gold from the default source distribution and into a separate package, stating that "the gold linker is now deprecated and will eventually be removed unless volunteers step forward and offer to continue development and maintenance".[7]

See also

edit

References

edit
  1. ^ "gold README: Rewrite, with some notes on unsupported features". 2008-03-25. Retrieved 2020-04-28. It is a GNU program, and therefore follows the GNU formatting standards[...]
  2. ^ Ian Lance Taylor (2008-03-22). "New ELF linker code added to GNU binutils". binutils mailing list. Retrieved 2020-04-28.
  3. ^ a b Ian Lance Taylor (2008-04-04). "gold: Google Releases New and Improved GCC Linker". Google Open Source Blog. Retrieved 2020-04-28.
  4. ^ Ian Lance Taylor (2008). A New ELF Linker. GCC Developers' Summit. pp.ย 129โ€“136. Retrieved 2020-04-28.
  5. ^ "ElflintGNU". sourceware.org. Retrieved 2020-04-28. eu-elflint has a flag '--gnu-ld' described as "Binary has been created with GNU ld and is therefore known to be broken in certain ways". Note that by GNU ld the original GNU binutils ld is meant, not the newer GNU binutils gold linker.
  6. ^ Michael Larabel (2019-02-24). "GNU's Gold Linker Is Stagnating, Fedora Looking To Punt It Off Into A Separate Package". Phoronix. Retrieved 2021-02-03.
  7. ^ Nick Clifton (2024-02-02). "GNU Binutils 2.44 Released". LWN.net. Retrieved 2025-02-07.
edit


๐Ÿ“š Artikel Terkait di Wikipedia

GoldLink

D'Anthony William Carlos (born May 17, 1993), better known by his stage name GoldLink, is an American rapper and singer from Washington, D.C. He gained recognition

Linker (computing)

linker is often part of a toolchain that includes a compiler and/or assembler that generates intermediate files that the linker processes. The linker

Gold (disambiguation)

France during World War II Gold (color), shade of the metal gold Gold (linker), a linker designed to be faster than GNU ld Going gold, in a software-release

Gold

Gold is a chemical element; its chemical symbol is Au (from Latin aurum) and atomic number 79. In its pure form, it is a bright-metallic-yellow, dense

G:link

G:link (also known as the Gold Coast Light Rail or the Gold Coast tram) is a light rail system serving the Gold Coast in Queensland, Australia. The system

Loader (computing)

hell Dynamic-link library Dynamic dead-code elimination Dynamic dispatch Dynamic library Dynamic linker Dynamic loading GNU linker gold (linker) Late binding

Diaspora (GoldLink album)

Diaspora is the second studio album by American rapper GoldLink, released on June 12, 2019, by RCA Records. It follows the release of his previous album

CityLink Gold (BaltimoreLink)

CityLink Gold (abbreviated GD) is a bus route operated by the Maryland Transit Administration in Baltimore. It replaced Route 13 in 2017. The line currently