HN Hall of Fame Weekly email

Beginner's Guide to Linkers (2010)

www.lurklurk.org Books & learning Tutorials & guides Computer science Candidate
Screenshot of www.lurklurk.org captured 2026-07-20
Page preview · captured 2026-07-20

Submission timeline

2007–2026

One 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.

Top comments

Best 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

plaes·68-point thread·

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.

HN stats

Breakout years
3

100+ points or 50+ comments

Total points
638

reference only — not used in Hall rules or ranking

Total comments
47

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2010-08-22Beginner's Guide to Linkerserent685
2011-11-12Beginner's Guide to Linkersjnhnum130
2014-12-23Beginners' Guide to LinkersFirst breakoutrocky113811112
2016-04-05Beginner's Guide to Linkersadamnemecek20
2016-09-12Beginner's Guide to Linkersingve40
2017-06-14Beginner's Guide to Linkers (2010)antognini22117
2019-09-01Beginner's Guide to Linkers (2010)Best thread · Latest 20+ point returningve22913