3 ms·
Modern shared libs load at different addresses in different processes. For that to work, they have to be compiled with relocatable code generation, and mapped r
by kazinator 7y ago
Modern shared libs load at different addresses in different processes. For that to work, they have to be compiled with relocatable code generation, and mapped read-only.
Ancient Linux distributions once had something called "a.out shared libs". These were mapped to fixed addresses. The distribution had to work out non-conflicting addresses for all available libraries. The build procedure for a.out shared libs involved intercepting the assembly output of GCC and doing some text processing on it.