Query related to Hiding symbol in Shared Library
Please support our C advertiser: Programming Forums
![]() |
•
•
Posts: 25
Reputation:
Solved Threads: 0
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
I have a question:
Suppose i have a source code file as
test.c
------------
#include <stdio.h>
void __attribute__ (( visibility ("hidden") )) sayHello (void)
{
printf("hello");
}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
Last edited by nabilchampion : Dec 31st, 2008 at 8:38 am.
![]() |
Other Threads in the C Forum
- Previous Thread: Project/File design
- Next Thread: variable length array may not be initialized: error
•
•
•
•
Views: 333 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode