News for hackers. Stuff that matters.
Re:The C standard library function atexit is broken by kazinator on Thursday June 20, 2019 @03:23AM (#20230656)
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.

There are no comments on this comment yet.