We cannot find how to get the linker to ignore unused functions.
E.g., if we have two functions in a common library file foobar.c, foo() and bar(), and we only use foo(), bar() still seems to be linked when we look at the link map.
We've looked at 'man ld' but we can't see anything that looks likely.
How can we stop this, please...?
Would turning the common files into a 'library.a' file help? We want to avoid this because every project uses its own definitions, etc.