This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it possible to make binary without symbols except for only one class?

Hi, I'm trying to make binary without symbols because I will give it to co-workers.

I must hide all symbols in binary except for only one class. (i call it A class and co-workers implement this class)

So I make binary file with '--no_debug' options at link process. It looks like all symbols are deleted.

But the problem is the symbols of A class also deleted. So my co workers can't debug their source file.

How can i solve this problem?  Please share your wisdom.

Thanks

from your co-wokrer

Parents
  • I can not provide an example or a guide.

    But consider this:

    1. Build your sources in the usual way as a library, but strip the symbols completely off, leaving only specifically exported symbols.
    2. Build an interface class; for instance a C++ class, which is lightweight and calls functions in your library.
    3. Link your interface class to your library and export all symbols.
    4. Wrap it all in a compressed .zip file and ship to your workers.

    I've done something like this myself once more than 10 years ago, and remember that there is a file you supply externally (a text-file), where you specify a symbol to export on each their own line (I used GCC back then).

Reply
  • I can not provide an example or a guide.

    But consider this:

    1. Build your sources in the usual way as a library, but strip the symbols completely off, leaving only specifically exported symbols.
    2. Build an interface class; for instance a C++ class, which is lightweight and calls functions in your library.
    3. Link your interface class to your library and export all symbols.
    4. Wrap it all in a compressed .zip file and ship to your workers.

    I've done something like this myself once more than 10 years ago, and remember that there is a file you supply externally (a text-file), where you specify a symbol to export on each their own line (I used GCC back then).

Children
No data