News for hackers. Stuff that matters.
Re:Lld - the llvm linker by ColinWright on Monday August 05, 2013 @06:03AM (#6159260)
When this was submitted 11 hours ago[0], amboar[1] commented[2]

    I found the design page[3] to be interesting reading
[0] https://news.ycombinator.com/item?id=6157338

[1] https://news.ycombinator.com/user?id=amboar

[2] https://news.ycombinator.com/item?id=6157776

[3] http://lld.llvm.org/design.html

Re:Lld - the llvm linker by mpweiher on Monday August 05, 2013 @07:37AM (#6159525)
Submitter here: I actually couldn't imagine that this hadn't been submitted before, but a couple of searches didn't turn up anything and the dup-detection also didn't pipe up...no idea why.
Re:Lld - the llvm linker by ColinWright on Monday August 05, 2013 @08:02AM (#6159603)
No idea why the HN dup detector didn't work. This search finds it:

https://www.hnsearch.com/search#request/all&q=title%3Allvm&s...

Re:Lld - the llvm linker by icebraining on Monday August 05, 2013 @11:31AM (#6160675)
No idea why the HN dup detector didn't work.

Inspecting the source, one of the links has a slash at the end and the other doesn't.

Re:Lld - the llvm linker by ColinWright on Monday August 05, 2013 @11:45AM (#6160783)
Curious. That would explain the discrepancy, and indeed, when I look at the source it is as you say. However, when I hover over the links they are identical, including the slash at the end.

Most curious. It seems that FireFox lies.

Re:Lld - the llvm linker by justincormack on Monday August 05, 2013 @09:12AM (#6159852)
Yes the design page is interesting. Implementing as a library not a command has uses in odd environments too, have used parts of llvm in other projects as libraries.
Re:Lld - the llvm linker by octo_t on Monday August 05, 2013 @06:19AM (#6159301)
This is pretty much the last piece in the LLVM "puzzle", they've been relying on the GNU linker up until recently, which has made some optimisations more difficult to implement (notably whole program analysis targeting specific architectures)
Re:Lld - the llvm linker by fiatmoney on Monday August 05, 2013 @12:30PM (#6161088)
"It can currently self host on Linux x86-64 with -static."

Does that mean we can finally build true, 100% static binaries? I dream of being able to scp-and-run on an arbitrary Linux machine.

Re:Lld - the llvm linker by binarycrusader on Monday August 05, 2013 @06:36PM (#6163631)
To the developers: I'd strongly recommend reviewing the Solaris Linkers and Libraries Guide in your quest to create a new linker:

http://docs.oracle.com/cd/E26502_01/html/E26507/index.html

There are loads of generally useful technical details about ELF and linking in general that apply to almost any UNIX-like platform.

For example, full details of the System V Application Binary Interface (ELF):

http://docs.oracle.com/cd/E26502_01/html/E26507/glcfv.html#s...

Rod Evans and Ali Bahrami have decades of experience in this area and often added new functionality to the Solaris linker long before the GNU folks ever considered it.

Rod in particular has a very valuable set of posts with insight into linkers and related vagaries on his blog:

https://blogs.oracle.com/rie/

The Solaris linker was made to deal with crazy things like 4GB+ executables, multiple processor architectures, and hardware capabilities.

Re:Lld - the llvm linker by oscargrouch on Monday August 05, 2013 @01:19PM (#6161393)
from the page:

"End-User Features: ... * Remove clang’s reliance on the system linker"

Very good news! full independency :) i was planning to embed clang in custom c/c++ compiler tools but the lack of a full linker library was odd, and in platforms where you dont know if theres a linker as in windows, it means you would have to distribute a vc redistributable with it, and rely on executing a batch operation for the linking process

Not to mention whatever optimizations that guys will be able to get their hands into in the linking process.

Nice work!

Re:Lld - the llvm linker by marssaxman on Monday August 05, 2013 @04:48PM (#6162901)
It still seems weirdly unix-centric to talk about "the system linker" as though all systems include development tools as a matter of course. I'm glad they are continuing to build all of the pieces they need for a truly independent toolchain.
Re:Lld - the llvm linker by Thev00d00 on Monday August 05, 2013 @07:15AM (#6159462)
People are still using SVN for new stuff?
Re:Lld - the llvm linker by dalke on Monday August 05, 2013 @08:08AM (#6159618)
It's a new subproject, yes, but the llvm project itself is over a decade old, and everything else is under svn.
Re:Lld - the llvm linker by angersock on Monday August 05, 2013 @09:43AM (#6160011)
For certain workflows and types of software projects and teams, Subversion performs admirably well.

There is a world outside of git.

(a world with the saddest, most rage-inducing branching model in existence, but a world nonetheless)

Re:Lld - the llvm linker by dalke on Monday August 05, 2013 @06:04PM (#6163448)
I don't think it's worse than the models for SCCS, RCS, and CVS, which I used in various projects before SVN. ;)
Re:Lld - the llvm linker by angersock on Monday August 05, 2013 @07:06PM (#6163778)
Well bless your kindly heart. :)
Re:Lld - the llvm linker by dalke on Tuesday August 06, 2013 @07:50AM (#6166022)
Thank you for sharing that. :)
Re:Lld - the llvm linker by brettjurgens on Tuesday August 06, 2013 @12:11AM (#6164756)
uiuc loves svn
Re:Lld - the llvm linker by _pmf_ on Monday August 05, 2013 @08:50AM (#6159770)
> People are still using SVN for new stuff?

OMG YES GURLS EVRYBDY SHOULD USE TEH GITHUB LOL!