Hiding names of functions in shared Library

I know that from definition of shared library striping/higing function names is imposible, but the point is....

This whole library is a hook to another program. So let say Mother-program call function

void HOOK_MAIN() from my library (and the name stays, that's ok) but the

HOOK_MAIN() calls other functions that are used ONLY inside of this library. Can i hide them/strip ? I use g++ on FreeBSD.
Declare things you do not wish to appear in the export symbol table as static.

For example:

1
2
3
4
5
6
7
static void foo()
{
}

void baz()
{
}

When compiled, "baz" (or some form of it) will appear in the symbol table, but "foo" will not.

Hope this helps.
Topic archived. No new replies allowed.