Skip to content

allocscompilerwrapper.py would be better as one or more linker plugins #69

@stephenrkell

Description

@stephenrkell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions