New answers tagged libraries
ELF DSOs may use a flag (DF_TEXREL) to announce that they require rellocations by modification of their text section (which is normally read-only). The jump table approach along with PIE position independent code should be more optimal, though. (Found that in http://www.akkadia.org/drepper/dsohowto.pdf, but other resources mention this too).
Top 50 recent answers are included