my situation is that I created a compile time instrumentation system that inserts code in an application that does some book-keeping of it's internal state for dynamic analysis purposes. The injected code relies on a runtime library that implements the necessary data structures.
In order to improve the accuracy of my tool, I want to track changes to internal state inside calls to libc. To this end, I have compiled an instrumented version of musl.
The problem is that my runtime library relies on glibc for various reasons (can't change this). How do I go about letting the application use the instrumented musl symbols, but let the runtime library use the plain glibc symbols?