logoalt Hacker News

201984today at 4:44 PM1 replyview on HN

How do you think position independent code can call functions from other .so's without being patched with their addresses?

They can't, so even PIC code still has to have a relocation table that gets patched. It's in a different page than the code though, so code does still get reused.


Replies

monocasatoday at 5:11 PM

That's not really patching though, any more than any use of function pointers is patching.

show 1 reply