{"id":66,"date":"2008-04-03T20:44:25","date_gmt":"2008-04-03T19:44:25","guid":{"rendered":"http:\/\/pusling.com\/blog\/?p=66"},"modified":"2008-04-03T20:44:25","modified_gmt":"2008-04-03T19:44:25","slug":"trying-gold","status":"publish","type":"post","link":"https:\/\/pusling.com\/blog\/?p=66","title":{"rendered":"Trying gold"},"content":{"rendered":"<p>I just felt like trying the new experimental linker <a href=\"http:\/\/lwn.net\/Articles\/274859\/\">gold<\/a>. It seems to do c++ stuff quite  fast.<\/p>\n<p>To build it as a debian package, I just took the cvs binutils and the latest debian packaging, removed all the weird archs from the multiarch package and added &#8211;enable-gold to configure and built it.<br \/>\n<code><br \/>\n$ ld --version<br \/>\nGNU gold (GNU Binutils for Debian 2.18.50.20080403) 1.4<br \/>\n<\/code><\/p>\n<p>It seems gold is so much stricter when trying to link something lazy developers have written. Kde3 fails quite heavily with lots of undefined stuff. Like not linking qt when actually using it.<\/p>\n<p>kde4 seems to do a bit better &#8211; this is where I am blaming gold for the modifications required (all in FindKDE4Internal.cmake):<\/p>\n<ul>\n<li>gold doesn&#8217;t like &#8211;no-undefined. but gold understands -z defs. As it is the same, replace it<\/li>\n<li>gold doesn&#8217;t like &#8211;enable-new-dtags &#8211; let us try remove it<\/li>\n<li>gold doesn&#8217;t like &#8211;fatal-warnings &#8211; let us try remove it<\/li>\n<\/ul>\n<p>and then kdelibs from kde4 actually builds.  I haven&#8217;t done any benchmarking, but I have the impression that gold is just so much faster. I wonder when it gets considered stable. And available for all archs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just felt like trying the new experimental linker gold. It seems to do c++ stuff quite fast. To build it as a debian package, I just took the cvs binutils and the latest debian packaging, removed all the weird archs from the multiarch package and added &#8211;enable-gold to configure and built it. $ ld [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3,4],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-debian","category-english","category-kde"],"_links":{"self":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":0,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}