Re:The C standard library function atexit is broken
by derefr on Wednesday June 19, 2019 @09:29PM
(#20229009)
Shared libraries by themselves are not the problem here, so I’m not sure why you bring them up.
The problem described in the article appears when you dynamically load/unload shared libraries. This only comes up in the context of plugin systems, or sometimes hot code reloading, and in those cases there is no alternative; there is nothing you can do with static binaries to emulate this behaviour.
The problem described in the article appears when you dynamically load/unload shared libraries. This only comes up in the context of plugin systems, or sometimes hot code reloading, and in those cases there is no alternative; there is nothing you can do with static binaries to emulate this behaviour.