Stop Linking by Symbol

setheron 14 points 5 comments December 03, 2026
fzakaria.com · View on Hacker News

Discussion Highlights (2 comments)

anfilt

I have also generally thought for dynamic linking something BASE + Address is better for dynamic linking. It pretty simple and quick as you show. However, I think the reason the for the whole per symbol resolution is, like take a library and it is updated on the system now all your offsets potentially change. You also run into the issue that a symbol may move from one library to an other over time. Plus other things, but that kinda sums up why we have per symbol resolution. Although, I do like what is being proposed. Although it seems to only work if the number of symbols per library stay the same or are not moved to other libraries. Although, it sounds like they are mainly targeting things considering environment is relatively stable. Although I guess what is not clear is where the table they generate lives? Sounds like the executable or their own loader?

Panzerschrek

I suggest going further and just using static linking. It removes so much pain and may improve result performance and decrease program size.

Semantic search powered by Rivestack pgvector
4,908 stories · 45,036 chunks indexed