My program uses several precompiled static libraries. I wrap malloc and free, but I want one of linked libraries to use 'real' malloc and free. As I run:
gcc [...] -W1, --wrap=malloc -W1, --wrap=free [used libraries]
all libraries would use wrapped functions.
Is partial linking a way here? What if I link this one library dynamically?
Thanks in advance, Jacek