@regehr Nowadays I would recommend reading the mold source code as a replacement for Levine's book. It also has a lot of explanatory text, e.g. the block comment at the top here is probably the best summary of how LTO works: https://github.com/rui314/mold/blob/main/elf/lto-unix.cc
mold/elf/lto-unix.cc at main · rui314/mold

Mold: A Modern Linker 🦠. Contribute to rui314/mold development by creating an account on GitHub.

GitHub

@pervognsen @regehr I will take this chance to shamelessly plug my former colleagues blogs: http://www.linker-aliens.org/

The Solaris Docs for the linker are also a great reference:

https://docs.oracle.com/en/operating-systems/solaris/oracle-solaris/11.4/linkers-libraries/object-file-format.html

Surfing With The Linker Aliens: Solaris Linking & ELF Blogs

@pervognsen @regehr Wow, that really is some outstanding commentary! The kind of thing you hope you'll find every time you open an unfamiliar source file.