![]() |
| ||
| Query related to Hiding symbol in Shared Library Hi, I have a question: Suppose i have a source code file as test.c ------------
i make shared library using gcc say named as libhello.so now although the function sayHello is not exported to the libhello.so but when i run this command: shell> nm libhello.so the resultant display shows one of the symbol there as sayHello Is this possible that I completely hide this symbol so that nm doesnt read this local symbol in the library. Kind Regards |
| ||
| Re: Query related to Hiding symbol in Shared Library You can use the strip utility to remove all the symbols from your object file. Alternatively, declare sayHello() to be a static function. |
| All times are GMT -4. The time now is 5:29 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC