logoalt Hacker News

anfilt • today at 3:35 AM • 1 reply • view on HN

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?


Replies

setheron • today at 4:12 AM

If a library changed all downstream dependencies of it (applications) in Nix would need to be rebuilt anyways -- that is the cost of the input-addressed (pessimistic) model.

A perfect fit!

➕ show 1 reply