logoalt Hacker News

Stop Linking by Symbol

14 points • by setheron • yesterday at 11:25 PM • 5 comments • view on HN

Comments

anfilt • today at 3:35 AM

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?

➕ show 1 reply
Panzerschrek • today at 5:23 AM

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