<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8">
<title>Gold linker - ArchWiki</title>
<meta name="generator" content="MediaWiki 1.22.7">
<meta name="robots" content="noindex,follow">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="ArchWiki (en)">
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.archlinux.org/api.php?action=rsd">
<link rel="copyright" href="http://www.gnu.org/copyleft/fdl.html">
<link rel="alternate" type="application/atom+xml" title="ArchWiki Atom feed" href="/index.php?title=Special:RecentChanges&amp;feed=atom">
<link rel="stylesheet" href="../ArchWikiOffline.css">
<meta name="ResourceLoaderDynamicStyles" content="">

</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Gold_linker skin-archlinux action-view">

<div id="globalWrapper" style="width: 100%">
<div id="column-content"><div id="content" class="mw-body-primary" role="main" style="margin: 2em; margin-bottom: 0">
	<a id="top"></a>
	
	<h1 id="firstHeading" class="firstHeading" lang="en"><span dir="auto">Gold linker</span></h1>
	<div id="bodyContent" class="mw-body">
		<div id="contentSub"></div>
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="translateme" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-document-new.png" class="image"><img alt="Tango-document-new.png" src="../File:Tango-document-new.png" width="48" height="48"></a>
</td>
<td>  <b>This article is a stub.</b> <div style="font-size: 90%">
<b>Notes:</b> Still very short to stay as a separate page. (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Gold_linker">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-document-new.png" class="image"><img alt="Tango-document-new.png" src="../File:Tango-document-new.png" width="48" height="48"></a>
</td>
</tr>
</table>
</div>
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="merge" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-two-arrows.png" class="image"><img alt="Tango-two-arrows.png" src="../File:Tango-two-arrows.png" width="75" height="48"></a>
</td>
<td>  <b>This article or section is a candidate for merging with <a href="../en/GNU_Project.html#Development_Tools" title="GNU Project">GNU Project#Development Tools</a>.</b> <div style="font-size: 90%">
<b>Notes:</b> <span style="color:red;">please use the second argument of the template to provide more detailed indications.</span> (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Gold_linker">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-two-arrows.png" class="image"><img alt="Tango-two-arrows.png" src="../File:Tango-two-arrows.png" width="75" height="48"></a>
</td>
</tr>
</table>
</div>
<p>The Gold linker is a newer and reportedly faster linker than the standard GNU ld linker. It is included in the <span style="font-family: monospace"><a rel="nofollow" class="external text" href="https://www.archlinux.org/packages/?name=binutils">binutils</a></span> package.
</p>
<p>To use the GOLD linker, simply
</p>
<pre>export LD=ld.gold
</pre>
<p>Alternatively, if your $PATH has /usr/local/bin before /usr/bin, you can do
</p>
<pre>ln -s /usr/bin/ld.gold /usr/local/bin/ld
</pre>
</div>
<div id="catlinks" class="catlinks"><div id="mw-normal-catlinks" class="mw-normal-catlinks">
<a href="../Special:Categories.html" title="Special:Categories">Category</a>: <ul><li><a href="../en/Category:Development.html" title="Category:Development">Development</a></li></ul>
</div></div>		<div class="visualClear"></div>
	</div>
</div></div>
<div class="visualClear"></div>
<div id="footer" role="contentinfo">
	<ul id="f-list" style="margin: 0 2em">
		<li>
Retrieved from "<a href="https://wiki.archlinux.org/index.php?title=Gold_linker&amp;oldid=317916">https://wiki.archlinux.org/index.php?title=Gold_linker&amp;oldid=317916</a>"</li>
		<li id="lastmod"> This page was last modified on 4 June 2014, at 02:15.</li>
		<li id="copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a> unless otherwise noted.</li>
		<br><li id="privacy"><a href="../en/ArchWiki:General_disclaimer.html" title="ArchWiki:Privacy policy">Privacy policy</a></li>
		<li id="about"><a href="../en/ArchWiki:About.html" title="ArchWiki:About">About ArchWiki</a></li>
		<li id="disclaimer"><a href="../en/ArchWiki:General_disclaimer.html" title="ArchWiki:General disclaimer">Disclaimers</a></li>
	</ul>
</div>
</div>
</body>
</html>
