Rework dl handling all together
The current design is quite an overkill on a number of levels:
- we use fine grained per-dso allocation for 2x (void *)
- we use fine grained allocation for 3x (void *)
- we have a bunch of memory checking and error handling
Just drop all that and rework the interface. Store the dl specifics in the wcore platform, since they're effectively bound to it. Where the two different users posix (not linux) and win(32) will utilise that storage.
While here, remove the dummy wcore_platform_{init,teardown} return type and further simplify the codebase.
v2 - dropped the last two unrelated commits, split commits, fixed(?) cgl
@yurikoles can you give this a quick test on MacOS, thanks
Edited by Emil Velikov