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
Very good question. there is a way, using the memory addresses as input to interface the snippets together. Normally this is to your co-workers to do the code that generates the outputs. After you have to incorporate them into your program.
Hi, Jérôme Décamps. Thanks for your answer.
But honestly, i can not understand your explanation.Could you explain full details about your solution?
If you explain that by using keywords like 'symbols', 'link options', it's would be perfect for me.
from Micheal Kang
I can not provide an example or a guide.
But consider this:
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).
Hi Rohha,
I have never tried this before but it might work.
Consider the file A contains the public symbols which you compile with --debug option.
File B contains the private symbols with no -debug option.
Then finally link both.
Regards,
Techguyz