Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Position independent code and Shared Object

Anyone please explain what Position independent code and Shared Object meant actually. Whether the object code created after compiling is Position independent.

It would be helpful if somebody explain about how the access to local/external variables are handled in a position independent code.

Also looking for some real-life dynamic linking/loading examples/situations.

like image 509
Jestin Joy Avatar asked Nov 28 '25 21:11

Jestin Joy


2 Answers

One good general explanation with lots of examples.

like image 87
Employed Russian Avatar answered Dec 01 '25 12:12

Employed Russian


The link provided by Employed Russian is a good one. However, here's another article on this topic that you may find useful. It assumes less knowledge and perhaps can be easier to understand for a beginner.

like image 29
Eli Bendersky Avatar answered Dec 01 '25 11:12

Eli Bendersky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!