Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderBest piece on linkers is in my opinion Ian Lance Taylor's (author of the gold linker) write up[1]. It obviously has been written in a hurry and could need some polish but the content is gold. LWN published an overview with links to the different parts, to make it a little more accessible[2]. I always hoped Ian would turn it into the book he mentioned in the post. [1] https://www.airs.com/blog/archives/38 [2] https://lwn.net/Articles/276782/
One thing I found really interesting while playing around with gdb on a program with dynamic linking is that functions are linked lazily when they're first called. So rather than hooking up calls to printf/fopen when the program starts, those calls instead get hooked up through an intermediate table to jump into the dynamic linker's resolution code. The first time each dynamically-linked function is called, it goes through a process of looking up the symbol. Once it finds the actual…
Wherever the code refers to a variable or function, the compiler only allows this if it has previously seen a declaration for that variable or function—the declaration is a promise that a definition exists somewhere else in the whole program. The notable exception here is implicitly declared functions, but they were dropped in C99 anyway.
My humble suggestion: "How to Write Shared Libraries" by Ulrich Drepper http://www.akkadia.org/drepper/dsohowto.pdf
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 3
- Total points
- 638
- Total comments
- 47
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2010-08-22 | Beginner's Guide to Linkers | erent | 68 | 5 |
| 2011-11-12 | Beginner's Guide to Linkers | jnhnum1 | 3 | 0 |
| 2014-12-23 | Beginners' Guide to LinkersFirst breakout | rocky1138 | 111 | 12 |
| 2016-04-05 | Beginner's Guide to Linkers | adamnemecek | 2 | 0 |
| 2016-09-12 | Beginner's Guide to Linkers | ingve | 4 | 0 |
| 2017-06-14 | Beginner's Guide to Linkers (2010) | antognini | 221 | 17 |
| 2019-09-01 | Beginner's Guide to Linkers (2010)Best thread · Latest 20+ point return | ingve | 229 | 13 |
