-
Notifications
You must be signed in to change notification settings - Fork 32
Description
We're very close to being able to ditch the wrapper script and move to 'toolsub'.
The linker plugin(s) should do the following
-
'link-used-types' fixup of .o files
-
globalize any local-sym wrapped functions
-
post-link metadata build including '-Wl,-q' hackery
-
'allocator mods' including both caller-side and callee-side wrappers/stubs
-
setting the dynamic linker?
It's still nice to have these steps as separate scripts, invokable from the command line. So perhaps keep it structured that way. That means replacing the mess that is objdumpallocs is a separate project.
The linker plugins will get added by a toolsub-style command line rewriter, so anything that is purely a command-line thing (like the dynamic linker) may be best not done in a plugin. We should co-develop this with the necessary toolsub scripts. Similarly, the necessary compile-time interventions (dumpallocs.ml, force-setting '-g' and '-ffunction-sections') will need to be done there.